/*
Theme Name: Casnezer Forum
Theme URI: https://casnezer.com
Author: Casnezer Team
Author URI: https://casnezer.com
Description: A premium dark-luxury WordPress theme for elite professional forums. Dark design with gold accents, full Elementor + bbPress compatibility, automated page setup on activation.
Version: 2.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casnezer-forum
Tags: dark, two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready, blog, community, forums, bbpress
*/

/* ==========================================================================
   CSS Custom Properties — Design System
   ========================================================================== */

:root {
    /* Color Tokens */
    --cf-background: #131313;
    --cf-surface: #131313;
    --cf-surface-dim: #131313;
    --cf-surface-container-lowest: #0e0e0e;
    --cf-surface-container-low: #1c1b1b;
    --cf-surface-container: #20201f;
    --cf-surface-container-high: #2a2a2a;
    --cf-surface-container-highest: #353535;
    --cf-surface-bright: #393939;
    --cf-surface-variant: #353535;

    --cf-on-surface: #e5e2e1;
    --cf-on-surface-variant: #c4c7c7;
    --cf-on-background: #e5e2e1;
    --cf-inverse-surface: #e5e2e1;
    --cf-inverse-on-surface: #313030;

    --cf-primary: #c9c6c5;
    --cf-primary-container: #0a0a0a;
    --cf-primary-fixed: #e5e2e1;
    --cf-primary-fixed-dim: #c9c6c5;
    --cf-on-primary: #313030;
    --cf-on-primary-container: #7b7979;
    --cf-on-primary-fixed: #1c1b1b;
    --cf-on-primary-fixed-variant: #474646;
    --cf-inverse-primary: #5f5e5e;

    --cf-secondary: #e9c349;
    --cf-secondary-container: #af8d11;
    --cf-secondary-fixed: #ffe088;
    --cf-secondary-fixed-dim: #e9c349;
    --cf-on-secondary: #3c2f00;
    --cf-on-secondary-container: #342800;
    --cf-on-secondary-fixed: #241a00;
    --cf-on-secondary-fixed-variant: #574500;

    --cf-tertiary: #cac6c3;
    --cf-tertiary-container: #0b0a09;
    --cf-tertiary-fixed: #e6e1df;
    --cf-tertiary-fixed-dim: #cac6c3;
    --cf-on-tertiary: #32302f;
    --cf-on-tertiary-container: #7c7977;
    --cf-on-tertiary-fixed: #1d1b1a;
    --cf-on-tertiary-fixed-variant: #484645;

    --cf-error: #ffb4ab;
    --cf-error-container: #93000a;
    --cf-on-error: #690005;
    --cf-on-error-container: #ffdad6;

    --cf-outline: #8e9192;
    --cf-outline-variant: #444748;
    --cf-surface-tint: #c9c6c5;

    /* Spacing */
    --cf-container-max-width: 1200px;
    --cf-margin-desktop: 48px;
    --cf-margin-mobile: 16px;
    --cf-gutter: 24px;
    --cf-stack-unit: 8px;

    /* Border Radius */
    --cf-radius-default: 0.125rem;
    --cf-radius-lg: 0.25rem;
    --cf-radius-xl: 0.5rem;
    --cf-radius-full: 0.75rem;

    /* Typography */
    --cf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cf-font-heading: 'Playfair Display', Georgia, serif;

    /* Shadows */
    --cf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --cf-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --cf-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --cf-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --cf-transition-fast: 150ms ease;
    --cf-transition-normal: 300ms ease;
    --cf-transition-slow: 500ms ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--cf-font-body);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--cf-on-surface);
    background-color: var(--cf-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background-color: rgba(233, 195, 73, 0.3);
    color: var(--cf-secondary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--cf-background);
}
::-webkit-scrollbar-thumb {
    background: var(--cf-surface-container-highest);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cf-secondary);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cf-font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--cf-on-surface);
}

h1, .display-lg {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2, .headline-lg {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

h3, .headline-md {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.headline-lg-mobile {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.body-lg {
    font-family: var(--cf-font-body);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
}

.body-md {
    font-family: var(--cf-font-body);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.label-sm {
    font-family: var(--cf-font-body);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.05em;
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--cf-on-surface-variant);
    text-decoration: none;
    transition: color var(--cf-transition-normal);
}

a:hover {
    color: var(--cf-secondary);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.cf-container {
    max-width: var(--cf-container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--cf-margin-desktop);
    padding-right: var(--cf-margin-desktop);
}

@media (max-width: 768px) {
    .cf-container {
        padding-left: var(--cf-margin-mobile);
        padding-right: var(--cf-margin-mobile);
    }

    h1, .display-lg {
        font-size: 32px;
    }

    h2, .headline-lg {
        font-size: 28px;
    }
}

.cf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--cf-gutter);
}

@media (min-width: 1024px) {
    .cf-grid-main {
        grid-template-columns: 2fr 1fr;
    }
}

.cf-grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--cf-gutter);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.cf-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(19, 19, 19, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(68, 71, 72, 0.3);
    transition: all var(--cf-transition-normal);
}

.cf-header.scrolled {
    background: rgba(19, 19, 19, 0.95);
    box-shadow: var(--cf-shadow-xl);
}

.cf-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: var(--cf-container-max-width);
    margin: 0 auto;
    padding: 0 var(--cf-margin-desktop);
}

.cf-logo {
    font-family: var(--cf-font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--cf-on-surface);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.cf-logo:hover {
    color: var(--cf-on-surface);
}

.cf-logo img {
    max-height: 50px;
    width: auto;
}

.cf-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cf-nav-primary {
    display: none;
    gap: 32px;
}

@media (min-width: 768px) {
    .cf-nav-primary {
        display: flex;
    }
}

.cf-nav-primary a,
.cf-nav-primary .menu-item a {
    font-family: var(--cf-font-body);
    font-size: 16px;
    color: var(--cf-on-surface-variant);
    transition: color var(--cf-transition-normal);
    text-decoration: none;
    padding: 4px 0;
}

.cf-nav-primary a:hover,
.cf-nav-primary .menu-item a:hover {
    color: var(--cf-secondary);
}

.cf-nav-primary .current-menu-item a,
.cf-nav-primary .current_page_item a {
    color: var(--cf-secondary);
    border-bottom: 2px solid var(--cf-secondary);
}

/* WordPress menu reset */
.cf-nav-primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.cf-nav-primary ul ul {
    display: none;
    position: absolute;
    background: var(--cf-surface-container-high);
    border: 1px solid rgba(68, 71, 72, 0.3);
    padding: 8px 0;
    min-width: 200px;
    z-index: 100;
    flex-direction: column;
    gap: 0;
}

.cf-nav-primary ul li:hover > ul {
    display: flex;
}

.cf-nav-primary ul ul li a {
    padding: 10px 20px;
    display: block;
    font-size: 14px;
}

.cf-nav-primary ul ul li a:hover {
    background: var(--cf-surface-container);
}

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

.cf-header-divider {
    height: 24px;
    width: 1px;
    background: rgba(68, 71, 72, 0.3);
}

.cf-search-toggle {
    background: none;
    border: none;
    color: var(--cf-on-surface-variant);
    cursor: pointer;
    padding: 4px;
    transition: color var(--cf-transition-normal), transform var(--cf-transition-fast);
    font-size: 24px;
}

.cf-search-toggle:hover {
    color: var(--cf-secondary);
}

.cf-search-toggle:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.cf-header-login {
    font-family: var(--cf-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cf-on-surface-variant);
    transition: color var(--cf-transition-normal);
}

.cf-header-login:hover {
    color: var(--cf-secondary);
}

.cf-header-cta {
    display: inline-block;
    padding: 8px 24px;
    background: var(--cf-secondary);
    color: var(--cf-on-secondary);
    font-family: var(--cf-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: filter var(--cf-transition-normal);
    text-decoration: none;
}

.cf-header-cta:hover {
    filter: brightness(1.1);
    color: var(--cf-on-secondary);
}

/* Mobile Menu Toggle */
.cf-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

@media (min-width: 768px) {
    .cf-mobile-toggle {
        display: none;
    }
}

.cf-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cf-on-surface);
    transition: all var(--cf-transition-normal);
}

.cf-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cf-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.cf-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.cf-mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cf-surface);
    z-index: 49;
    padding: 32px var(--cf-margin-mobile);
    overflow-y: auto;
}

.cf-mobile-menu.active {
    display: block;
}

.cf-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cf-mobile-menu ul li a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    color: var(--cf-on-surface-variant);
    border-bottom: 1px solid rgba(68, 71, 72, 0.2);
}

.cf-mobile-menu ul li a:hover,
.cf-mobile-menu .current-menu-item a {
    color: var(--cf-secondary);
}

.cf-mobile-menu .cf-mobile-actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.cf-footer {
    background: var(--cf-surface-container-lowest);
    border-top: 1px solid rgba(68, 71, 72, 0.2);
    padding: 64px 0;
}

.cf-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    max-width: var(--cf-container-max-width);
    margin: 0 auto;
    padding: 0 var(--cf-margin-desktop);
}

@media (min-width: 768px) {
    .cf-footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cf-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .cf-footer-brand {
        text-align: left;
    }
}

.cf-footer-brand .cf-footer-title {
    font-family: var(--cf-font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--cf-on-surface);
}

.cf-footer-brand .cf-footer-desc {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cf-on-tertiary-fixed-variant);
    max-width: 320px;
    margin: 0;
}

.cf-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.cf-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.cf-footer-nav a,
.cf-footer-nav ul li a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cf-on-tertiary-fixed-variant);
    opacity: 0.8;
    transition: color var(--cf-transition-normal), opacity var(--cf-transition-normal);
}

.cf-footer-nav a:hover,
.cf-footer-nav ul li a:hover {
    color: var(--cf-secondary);
    opacity: 1;
}

.cf-footer-social {
    display: flex;
    gap: 16px;
}

.cf-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(68, 71, 72, 0.2);
    color: var(--cf-on-surface-variant);
    transition: all var(--cf-transition-normal);
}

.cf-footer-social a:hover {
    border-color: var(--cf-secondary);
    color: var(--cf-secondary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.cf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-family: var(--cf-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--cf-transition-normal);
    text-decoration: none;
    line-height: 1;
}

.cf-btn-primary {
    background: var(--cf-secondary);
    color: var(--cf-on-secondary);
}

.cf-btn-primary:hover {
    transform: scale(1.05);
    color: var(--cf-on-secondary);
}

.cf-btn-outline {
    background: transparent;
    color: var(--cf-on-surface);
    border: 1px solid rgba(68, 71, 72, 0.3);
}

.cf-btn-outline:hover {
    border-color: var(--cf-secondary);
    color: var(--cf-secondary);
}

.cf-btn-ghost {
    background: transparent;
    color: var(--cf-on-surface);
    padding: 12px 0;
}

.cf-btn-ghost:hover {
    color: var(--cf-secondary);
}

.cf-btn-ghost .material-symbols-outlined {
    transition: transform var(--cf-transition-normal);
}

.cf-btn-ghost:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.cf-btn-sm {
    padding: 8px 20px;
    font-size: 11px;
}

.cf-btn-lg {
    padding: 20px 48px;
    font-size: 12px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.cf-card {
    background: var(--cf-surface-container-low);
    border: 1px solid rgba(68, 71, 72, 0.1);
    transition: all var(--cf-transition-normal);
}

.cf-card:hover {
    background: var(--cf-surface-container);
}

.cf-card-glass {
    background: rgba(19, 19, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cf-card-lowest {
    background: var(--cf-surface-container-lowest);
    border: 1px solid rgba(68, 71, 72, 0.2);
}

/* Gold Glow Effect */
.gold-glow:hover {
    box-shadow: 0 0 20px rgba(233, 195, 73, 0.15);
    border-color: var(--cf-secondary) !important;
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    background: var(--cf-surface-container-lowest);
    border: 1px solid rgba(68, 71, 72, 0.3);
    color: var(--cf-on-surface);
    font-family: var(--cf-font-body);
    font-size: 16px;
    padding: 12px 20px;
    transition: border-color var(--cf-transition-normal);
    outline: none;
    border-radius: var(--cf-radius-default);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--cf-secondary);
    box-shadow: 0 0 0 1px rgba(233, 195, 73, 0.2);
}

::placeholder {
    color: var(--cf-on-tertiary-fixed-variant);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* WPForms Styling Override */
.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form textarea,
.wpforms-container .wpforms-form select {
    background: var(--cf-surface-container-lowest) !important;
    border: 1px solid rgba(68, 71, 72, 0.3) !important;
    color: var(--cf-on-surface) !important;
    padding: 12px 20px !important;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form textarea:focus {
    border-color: var(--cf-secondary) !important;
}

.wpforms-container .wpforms-form .wpforms-submit {
    background: var(--cf-secondary) !important;
    color: var(--cf-on-secondary) !important;
    font-family: var(--cf-font-body) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 16px 40px !important;
    border: none !important;
    cursor: pointer !important;
}

.wpforms-container .wpforms-form label {
    color: var(--cf-on-surface-variant) !important;
    font-family: var(--cf-font-body) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.cf-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cf-on-surface-variant);
}

.cf-breadcrumbs a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cf-on-surface-variant);
    transition: color var(--cf-transition-normal);
}

.cf-breadcrumbs a:hover {
    color: var(--cf-secondary);
}

.cf-breadcrumbs .cf-breadcrumb-current {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cf-secondary);
}

.cf-breadcrumbs .cf-breadcrumb-sep {
    font-size: 14px;
    color: var(--cf-on-surface-variant);
}

/* ==========================================================================
   Forum Specific Styles
   ========================================================================== */

/* Category Header */
.cf-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cf-category-header .cf-category-bar {
    width: 32px;
    height: 2px;
    background: var(--cf-secondary);
}

/* Forum Row */
.cf-forum-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding: 32px;
    transition: background-color var(--cf-transition-normal);
    border-bottom: 1px solid rgba(68, 71, 72, 0.1);
}

.cf-forum-row:last-child {
    border-bottom: none;
}

.cf-forum-row:hover {
    background: var(--cf-surface-container);
}

.cf-forum-row:hover .cf-forum-icon {
    border-color: rgba(233, 195, 73, 0.5);
}

.cf-forum-row:hover .cf-forum-title {
    color: var(--cf-secondary);
}

.cf-forum-info {
    grid-column: span 12;
    display: flex;
    gap: 24px;
}

@media (min-width: 768px) {
    .cf-forum-info {
        grid-column: span 7;
    }
}

.cf-forum-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cf-surface-container-highest);
    border: 1px solid rgba(68, 71, 72, 0.2);
    transition: border-color var(--cf-transition-normal);
    margin-top: 4px;
}

.cf-forum-icon .material-symbols-outlined {
    color: var(--cf-secondary);
    font-variation-settings: 'FILL' 1;
}

.cf-forum-title {
    font-family: var(--cf-font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--cf-on-surface);
    transition: color var(--cf-transition-normal);
    text-decoration: none;
    display: block;
}

.cf-forum-desc {
    font-size: 16px;
    color: var(--cf-on-surface-variant);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.cf-forum-stats {
    display: none;
    grid-column: span 2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .cf-forum-stats {
        display: flex;
    }
}

.cf-forum-stats-number {
    font-family: var(--cf-font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--cf-on-surface);
}

.cf-forum-stats-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cf-on-tertiary-fixed-variant);
}

.cf-forum-latest {
    display: none;
    grid-column: span 3;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    border-left: 1px solid rgba(68, 71, 72, 0.1);
    padding-left: 24px;
}

@media (min-width: 768px) {
    .cf-forum-latest {
        display: flex;
    }
}

.cf-forum-latest-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cf-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    margin: 0;
}

.cf-forum-latest-meta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cf-on-tertiary-fixed-variant);
    margin: 0;
}

.cf-forum-latest-meta span {
    color: var(--cf-on-surface);
}

.cf-forum-latest-avatar {
    width: 40px;
    height: 40px;
    background: var(--cf-surface-container-highest);
    overflow: hidden;
    flex-shrink: 0;
}

.cf-forum-latest-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all var(--cf-transition-normal);
}

.cf-forum-row:hover .cf-forum-latest-avatar img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   Topic Row (Category Page)
   ========================================================================== */

.cf-topic-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 32px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .cf-topic-row {
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }
}

.cf-topic-row:hover {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: var(--cf-secondary);
}

/* ==========================================================================
   Thread / Post Styles
   ========================================================================== */

.cf-post {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
    border-bottom: 1px solid rgba(68, 71, 72, 0.1);
}

@media (min-width: 768px) {
    .cf-post {
        grid-template-columns: 200px 1fr;
    }
}

.cf-post-author {
    text-align: center;
}

.cf-post-author-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.cf-post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cf-post-content {
    color: var(--cf-on-surface-variant);
    line-height: 1.8;
}

.cf-post-content p {
    margin-bottom: 16px;
}

.cf-post-content blockquote {
    border-left: 2px solid var(--cf-secondary);
    padding: 16px 24px;
    margin: 16px 0;
    background: var(--cf-surface-container-lowest);
    color: var(--cf-on-surface-variant);
    font-style: italic;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */

.cf-widget {
    background: var(--cf-surface-container-lowest);
    border: 1px solid rgba(68, 71, 72, 0.2);
    padding: 32px;
    margin-bottom: var(--cf-gutter);
}

.cf-widget-title {
    font-family: var(--cf-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cf-on-tertiary-fixed-variant);
    margin-bottom: 24px;
}

.cf-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cf-widget ul li a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--cf-on-surface-variant);
    border-bottom: 1px solid rgba(68, 71, 72, 0.1);
}

.cf-widget ul li a:hover {
    color: var(--cf-secondary);
}

/* Active Members Widget */
.cf-active-members {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cf-active-members .cf-member-avatar {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(68, 71, 72, 0.3);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--cf-transition-normal);
}

.cf-active-members .cf-member-avatar:hover {
    border-color: var(--cf-secondary);
}

.cf-active-members .cf-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--cf-transition-normal);
}

.cf-active-members .cf-member-avatar:hover img {
    filter: grayscale(0%);
}

/* Trending Tags */
.cf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cf-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--cf-surface-container-low);
    border: 1px solid rgba(68, 71, 72, 0.1);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cf-on-surface-variant);
    transition: all var(--cf-transition-normal);
}

.cf-tag:hover {
    border-color: var(--cf-secondary);
    color: var(--cf-secondary);
}

/* Online Indicator */
.cf-online-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cf-secondary);
}

.cf-online-dot {
    width: 8px;
    height: 8px;
    background: var(--cf-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Newbie Guide CTA Widget */
.cf-guide-widget {
    position: relative;
    overflow: hidden;
    border-color: rgba(233, 195, 73, 0.2);
}

.cf-guide-widget::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 128px;
    background: rgba(233, 195, 73, 0.05);
    transform: rotate(45deg) translate(64px, -64px);
    transition: transform var(--cf-transition-normal);
}

.cf-guide-widget:hover::after {
    transform: rotate(45deg) translate(64px, -64px) scale(1.1);
}

.cf-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--cf-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: gap var(--cf-transition-normal);
}

.cf-guide-link:hover {
    gap: 24px;
    color: var(--cf-secondary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.cf-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.cf-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.cf-hero-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.cf-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 var(--cf-margin-mobile);
    max-width: 896px;
}

@media (min-width: 768px) {
    .cf-hero-content {
        padding: 0 var(--cf-margin-desktop);
    }
}

.cf-hero-content h1 {
    margin-bottom: 32px;
}

.cf-hero-content .cf-hero-subtitle {
    color: var(--cf-on-surface-variant);
    font-family: var(--cf-font-body);
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    max-width: 640px;
    margin: 0 auto 48px;
}

.cf-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

@media (min-width: 768px) {
    .cf-hero-actions {
        flex-direction: row;
    }
}

/* Stats Bar */
.cf-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(68, 71, 72, 0.2);
    border: 1px solid rgba(68, 71, 72, 0.2);
    margin-top: 48px;
}

@media (min-width: 768px) {
    .cf-stats-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cf-stat {
    padding: 24px;
    text-align: center;
    background: var(--cf-surface-container-lowest);
}

.cf-stat-number {
    font-family: var(--cf-font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--cf-on-surface);
    display: block;
}

.cf-stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cf-on-tertiary-fixed-variant);
    margin-top: 8px;
    display: block;
}

/* ==========================================================================
   Success Stories / Testimonials
   ========================================================================== */

.cf-testimonial {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cf-testimonial-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    padding: 4px;
    border: 1px solid var(--cf-secondary);
    margin-bottom: 32px;
}

.cf-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cf-testimonial-name {
    font-family: var(--cf-font-heading);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.cf-testimonial-role {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cf-secondary);
    margin-bottom: 16px;
}

.cf-testimonial-quote {
    color: var(--cf-on-surface-variant);
    font-size: 16px;
    line-height: 1.6;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cf-cta-section {
    padding: 96px var(--cf-margin-desktop);
    background: var(--cf-surface-container-lowest);
}

.cf-cta-box {
    max-width: var(--cf-container-max-width);
    margin: 0 auto;
    border: 1px solid rgba(233, 195, 73, 0.3);
    padding: 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

@media (min-width: 768px) {
    .cf-cta-box {
        padding: 96px;
    }
}

.cf-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: radial-gradient(circle at center, var(--cf-secondary), transparent, transparent);
}

.cf-cta-box > * {
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Profile Page
   ========================================================================== */

.cf-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(68, 71, 72, 0.2);
}

@media (min-width: 768px) {
    .cf-profile-header {
        flex-direction: row;
        align-items: flex-start;
    }
}

.cf-profile-avatar {
    width: 120px;
    height: 120px;
    border: 2px solid var(--cf-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

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

.cf-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .cf-profile-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cf-profile-stat {
    text-align: center;
    padding: 16px;
    background: var(--cf-surface-container-lowest);
    border: 1px solid rgba(68, 71, 72, 0.1);
}

/* ==========================================================================
   Shop / Product Cards
   ========================================================================== */

.cf-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--cf-gutter);
}

@media (min-width: 640px) {
    .cf-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cf-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cf-product-card {
    background: var(--cf-surface-container-low);
    border: 1px solid rgba(68, 71, 72, 0.1);
    overflow: hidden;
    transition: all var(--cf-transition-normal);
}

.cf-product-card:hover {
    border-color: rgba(233, 195, 73, 0.3);
    box-shadow: 0 0 20px rgba(233, 195, 73, 0.05);
}

.cf-product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.cf-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--cf-transition-slow);
}

.cf-product-card:hover .cf-product-image img {
    transform: scale(1.05);
}

.cf-product-body {
    padding: 24px;
}

.cf-product-price {
    font-family: var(--cf-font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--cf-secondary);
}

/* ==========================================================================
   Login / Auth Page
   ========================================================================== */

.cf-auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--cf-margin-mobile);
}

.cf-auth-box {
    width: 100%;
    max-width: 480px;
    background: var(--cf-surface-container-lowest);
    border: 1px solid rgba(68, 71, 72, 0.2);
    padding: 48px;
}

.cf-auth-box h2 {
    text-align: center;
    margin-bottom: 8px;
}

.cf-auth-box .cf-auth-subtitle {
    text-align: center;
    color: var(--cf-on-surface-variant);
    font-size: 16px;
    margin-bottom: 32px;
}

.cf-form-group {
    margin-bottom: 24px;
}

.cf-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cf-on-surface-variant);
    margin-bottom: 8px;
}

/* ==========================================================================
   Rules / Accordion
   ========================================================================== */

.cf-accordion {
    border: 1px solid rgba(68, 71, 72, 0.1);
}

.cf-accordion-item {
    border-bottom: 1px solid rgba(68, 71, 72, 0.1);
}

.cf-accordion-item:last-child {
    border-bottom: none;
}

.cf-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    cursor: pointer;
    background: var(--cf-surface-container-low);
    transition: background var(--cf-transition-normal);
    border: none;
    width: 100%;
    text-align: left;
    color: var(--cf-on-surface);
    font-family: var(--cf-font-heading);
    font-size: 20px;
    font-weight: 500;
}

.cf-accordion-header:hover {
    background: var(--cf-surface-container);
}

.cf-accordion-header .material-symbols-outlined {
    transition: transform var(--cf-transition-normal);
    color: var(--cf-secondary);
}

.cf-accordion-item.active .cf-accordion-header .material-symbols-outlined {
    transform: rotate(180deg);
}

.cf-accordion-body {
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--cf-transition-normal), padding var(--cf-transition-normal);
}

.cf-accordion-item.active .cf-accordion-body {
    padding: 24px 32px;
    max-height: 1000px;
}

/* ==========================================================================
   Search Results
   ========================================================================== */

.cf-search-form {
    position: relative;
    margin-bottom: 48px;
}

.cf-search-form input {
    padding-right: 48px;
}

.cf-search-form button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cf-on-surface-variant);
    cursor: pointer;
    transition: color var(--cf-transition-normal);
}

.cf-search-form button:hover {
    color: var(--cf-secondary);
}

.cf-search-result {
    padding: 24px 0;
    border-bottom: 1px solid rgba(68, 71, 72, 0.1);
}

.cf-search-result-title {
    font-family: var(--cf-font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--cf-on-surface);
    transition: color var(--cf-transition-normal);
    margin-bottom: 8px;
}

.cf-search-result-title:hover {
    color: var(--cf-secondary);
}

.cf-search-result-excerpt {
    color: var(--cf-on-surface-variant);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.cf-search-result-meta {
    font-size: 12px;
    color: var(--cf-on-tertiary-fixed-variant);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.cf-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.cf-pagination a,
.cf-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(68, 71, 72, 0.2);
    color: var(--cf-on-surface-variant);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--cf-transition-normal);
}

.cf-pagination a:hover {
    border-color: var(--cf-secondary);
    color: var(--cf-secondary);
}

.cf-pagination .current {
    background: var(--cf-secondary);
    color: var(--cf-on-secondary);
    border-color: var(--cf-secondary);
}

/* WordPress default pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.nav-links .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(68, 71, 72, 0.2);
    color: var(--cf-on-surface-variant);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--cf-transition-normal);
}

.nav-links .page-numbers:hover {
    border-color: var(--cf-secondary);
    color: var(--cf-secondary);
}

.nav-links .page-numbers.current {
    background: var(--cf-secondary);
    color: var(--cf-on-secondary);
    border-color: var(--cf-secondary);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.cf-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px var(--cf-margin-mobile);
}

.cf-404-code {
    font-family: var(--cf-font-heading);
    font-size: 120px;
    font-weight: 700;
    color: var(--cf-secondary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.cf-comments {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(68, 71, 72, 0.1);
}

.cf-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cf-comment {
    padding: 24px 0;
    border-bottom: 1px solid rgba(68, 71, 72, 0.1);
}

.cf-comment .children {
    list-style: none;
    padding-left: 48px;
    margin: 0;
}

.cf-comment-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.cf-comment-avatar {
    width: 48px;
    height: 48px;
    overflow: hidden;
    flex-shrink: 0;
}

.cf-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cf-comment-author {
    font-family: var(--cf-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--cf-on-surface);
}

.cf-comment-date {
    font-size: 12px;
    color: var(--cf-on-tertiary-fixed-variant);
}

.cf-comment-body {
    color: var(--cf-on-surface-variant);
    line-height: 1.8;
}

.cf-comment-reply a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cf-secondary);
    margin-top: 8px;
    display: inline-block;
}

/* Comment Form */
.cf-comment-form .comment-respond {
    margin-top: 48px;
}

.cf-comment-form .comment-reply-title {
    font-family: var(--cf-font-heading);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
}

.cf-comment-form .comment-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cf-on-surface-variant);
    margin-bottom: 8px;
}

.cf-comment-form .comment-form .form-submit input {
    background: var(--cf-secondary);
    color: var(--cf-on-secondary);
    font-family: var(--cf-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 16px 40px;
    border: none;
    cursor: pointer;
    transition: transform var(--cf-transition-normal);
}

.cf-comment-form .comment-form .form-submit input:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Elementor Overrides
   ========================================================================== */

.elementor-page .cf-header + .site-main,
.elementor-page .cf-header + main {
    padding-top: 80px;
}

.elementor-section {
    background-color: var(--cf-background);
}

.elementor-widget-text-editor {
    color: var(--cf-on-surface-variant);
}

/* Elementor full-width */
body.elementor-template-full-width .site-main,
body.elementor-template-canvas .site-main {
    max-width: 100%;
    padding: 0;
}

/* ==========================================================================
   WordPress Core Overrides
   ========================================================================== */

/* Images */
img {
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: var(--cf-on-tertiary-fixed-variant);
    margin-top: 8px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Block Editor */
.wp-block-quote {
    border-left: 2px solid var(--cf-secondary);
    padding: 16px 24px;
    margin: 16px 0;
    background: var(--cf-surface-container-lowest);
}

.wp-block-code {
    background: var(--cf-surface-container-lowest);
    border: 1px solid rgba(68, 71, 72, 0.2);
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
    padding: 12px 16px;
    border: 1px solid rgba(68, 71, 72, 0.2);
    text-align: left;
}

.wp-block-table th {
    background: var(--cf-surface-container-high);
    font-weight: 600;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--cf-surface-container-high);
    clip: auto !important;
    clip-path: none;
    color: var(--cf-on-surface);
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Utility Classes (Prefix-free)
   ========================================================================== */

.cf-text-secondary { color: var(--cf-secondary); }
.cf-text-muted { color: var(--cf-on-surface-variant); }
.cf-text-label { color: var(--cf-on-tertiary-fixed-variant); }
.cf-bg-surface { background: var(--cf-surface); }
.cf-bg-lowest { background: var(--cf-surface-container-lowest); }
.cf-border-subtle { border: 1px solid rgba(68, 71, 72, 0.1); }
.cf-border-gold { border: 1px solid rgba(233, 195, 73, 0.3); }
.cf-uppercase { text-transform: uppercase; letter-spacing: 0.2em; }
.cf-tracking-wide { letter-spacing: 0.05em; }

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

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ==========================================================================
   Tailwind-Compatible Utility Layer
   All utility classes used by theme templates are defined here
   ========================================================================== */

/* --- Display --- */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-4 { top: 16px; }
.right-4 { right: 16px; }
.left-4 { left: 16px; }
.bottom-1 { bottom: 4px; }
.bottom-2 { bottom: 8px; }
.right-1 { right: 4px; }
.right-2 { right: 8px; }
.right-3 { right: 12px; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-48 { z-index: 48; }
.z-50 { z-index: 50; }

/* --- Flexbox --- */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.self-center { align-self: center; }

/* --- Grid --- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-7 { grid-column: span 7 / span 7; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-9 { grid-column: span 9 / span 9; }
.col-span-12 { grid-column: span 12 / span 12; }

/* --- Gap / Spacing Utilities --- */
.gap-1 { gap: 4px; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-gutter { gap: var(--cf-gutter); }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-8 > * + * { margin-top: 32px; }
.space-y-12 > * + * { margin-top: 48px; }

/* --- Width --- */
.w-2 { width: 8px; }
.w-5 { width: 20px; }
.w-6 { width: 24px; }
.w-8 { width: 32px; }
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.w-20 { width: 80px; }
.w-24 { width: 96px; }
.w-32 { width: 128px; }
.w-64 { width: 256px; }
.w-full { width: 100%; }
.w-px { width: 1px; }
.min-w-\[160px\] { min-width: 160px; }

/* --- Height --- */
.h-1 { height: 4px; }
.h-1\.5 { height: 6px; }
.h-2 { height: 8px; }
.h-4 { height: 4px; }
.h-5 { height: 20px; }
.h-6 { height: 24px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-20 { height: 80px; }
.h-32 { height: 128px; }
.h-64 { height: 256px; }
.h-full { height: 100%; }
.h-px { height: 1px; }
.h-\[2px\] { height: 2px; }
.h-\[30\%\] { height: 30%; }
.h-\[40\%\] { height: 40%; }
.h-\[45\%\] { height: 45%; }
.h-\[60\%\] { height: 60%; }
.h-\[85\%\] { height: 85%; }
.h-\[95\%\] { height: 95%; }
.h-\[100\%\] { height: 100%; }
.min-h-\[50px\] { min-height: 50px; }
.min-h-\[60vh\] { min-height: 60vh; }
.min-h-\[120px\] { min-height: 120px; }
.min-h-\[400px\] { min-height: 400px; }
.min-h-\[500px\] { min-height: 500px; }
.min-h-screen { min-height: 100vh; }

/* --- Aspect Ratio --- */
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }

/* --- Padding --- */
.p-0 { padding: 0; }
.p-0\.5 { padding: 2px; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-margin-desktop { padding-left: var(--cf-margin-desktop); padding-right: var(--cf-margin-desktop); }
.px-margin-mobile { padding-left: var(--cf-margin-mobile); padding-right: var(--cf-margin-mobile); }
.py-0\.5 { padding-top: 2px; padding-bottom: 2px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.pt-2 { padding-top: 8px; }
.pt-4 { padding-top: 16px; }
.pt-6 { padding-top: 24px; }
.pt-8 { padding-top: 32px; }
.pt-12 { padding-top: 48px; }
.pt-20 { padding-top: 80px; }
.pt-28 { padding-top: 112px; }
.pt-32 { padding-top: 128px; }
.pb-2 { padding-bottom: 8px; }
.pb-8 { padding-bottom: 32px; }
.pb-16 { padding-bottom: 64px; }
.pb-24 { padding-bottom: 96px; }
.pl-6 { padding-left: 24px; }

/* --- Margin --- */
.m-0 { margin: 0; }
.mx-2 { margin-left: 8px; margin-right: 8px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-10 { margin-top: 40px; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.ml-auto { margin-left: auto; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-y-16 { transform: translateY(-64px); }
.translate-x-16 { transform: translateX(64px); }

/* --- Max Width --- */
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }
.max-w-md { max-width: 448px; }
.max-w-sm { max-width: 384px; }
.max-w-container-max-width { max-width: var(--cf-container-max-width); }
.max-w-\[120px\] { max-width: 120px; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* --- Border --- */
.border { border-width: 1px; border-style: solid; border-color: rgba(68, 71, 72, 0.3); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-outline-variant\/10 { border-color: rgba(68, 71, 72, 0.1); }
.border-outline-variant\/20 { border-color: rgba(68, 71, 72, 0.2); }
.border-outline-variant\/30 { border-color: rgba(68, 71, 72, 0.3); }
.border-secondary { border-color: var(--cf-secondary); }
.border-secondary\/20 { border-color: rgba(233, 195, 73, 0.2); }
.border-secondary\/30 { border-color: rgba(233, 195, 73, 0.3); }
.border-secondary\/50 { border-color: rgba(233, 195, 73, 0.5); }
.border-error { border-color: var(--cf-error); }
.border-\[#1a1a1a\] { border-color: #1a1a1a; }
.divide-y > * + * { border-top-width: 1px; border-top-style: solid; }
.divide-outline-variant\/10 > * + * { border-top-color: rgba(68, 71, 72, 0.1); }

/* --- Border Radius --- */
.rounded { border-radius: var(--cf-radius-default); }
.rounded-sm { border-radius: 0.125rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* --- Typography --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: 400; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.italic { font-style: italic; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.leading-tight { line-height: 1.25; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.line-through { text-decoration: line-through; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Font size shortcuts */
.text-xs { font-size: 12px; line-height: 1; }
.text-sm { font-size: 14px; line-height: 1.4; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[18px\] { font-size: 18px; }
.text-\[20px\] { font-size: 20px; }
.text-\[28px\] { font-size: 28px; }
.text-\[36px\] { font-size: 36px; }
.text-\[40px\] { font-size: 40px; }
.text-\[48px\] { font-size: 48px; }
.text-\[64px\] { font-size: 64px; }
.text-\[96px\] { font-size: 96px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }

/* Design system font families */
.font-body-md { font-family: var(--cf-font-body); }
.font-body-lg { font-family: var(--cf-font-body); }
.font-headline-md { font-family: var(--cf-font-heading); }
.font-headline-lg { font-family: var(--cf-font-heading); }
.font-headline-lg-mobile { font-family: var(--cf-font-heading); }
.font-display-lg { font-family: var(--cf-font-heading); }
.font-label-sm { font-family: var(--cf-font-body); font-weight: 600; }

/* Design system font sizes */
.text-body-md { font-size: 16px; line-height: 1.5; font-weight: 400; }
.text-body-lg { font-size: 18px; line-height: 1.6; font-weight: 400; }
.text-headline-md { font-size: 24px; line-height: 1.3; font-weight: 500; }
.text-headline-lg { font-size: 32px; line-height: 1.2; font-weight: 600; }
.text-headline-lg-mobile { font-size: 28px; line-height: 1.2; font-weight: 600; }
.text-display-lg { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.text-label-sm { font-size: 12px; line-height: 1; letter-spacing: 0.05em; font-weight: 600; }

/* --- Theme Color Utilities --- */
.text-on-surface { color: var(--cf-on-surface); }
.text-on-surface-variant { color: var(--cf-on-surface-variant); }
.text-on-background { color: var(--cf-on-background); }
.text-secondary { color: var(--cf-secondary); }
.text-secondary-fixed-dim { color: var(--cf-secondary-fixed-dim); }
.text-primary { color: var(--cf-primary); }
.text-on-secondary { color: var(--cf-on-secondary); }
.text-on-tertiary-fixed-variant { color: var(--cf-on-tertiary-fixed-variant); }
.text-on-tertiary-container { color: var(--cf-on-tertiary-container); }
.text-error { color: var(--cf-error); }
.text-outline { color: var(--cf-outline); }
.text-outline-variant { color: var(--cf-outline-variant); }
.text-on-primary-container { color: var(--cf-on-primary-container); }

.bg-background { background-color: var(--cf-background); }
.bg-surface { background-color: var(--cf-surface); }
.bg-surface-container { background-color: var(--cf-surface-container); }
.bg-surface-container-low { background-color: var(--cf-surface-container-low); }
.bg-surface-container-lowest { background-color: var(--cf-surface-container-lowest); }
.bg-surface-container-high { background-color: var(--cf-surface-container-high); }
.bg-surface-container-highest { background-color: var(--cf-surface-container-highest); }
.bg-surface-variant { background-color: var(--cf-surface-variant); }
.bg-secondary { background-color: var(--cf-secondary); }
.bg-secondary-container { background-color: var(--cf-secondary-container); }
.bg-secondary\/5 { background-color: rgba(233, 195, 73, 0.05); }
.bg-secondary-container\/20 { background-color: rgba(175, 141, 17, 0.2); }
.bg-secondary\/40 { background-color: rgba(233, 195, 73, 0.4); }
.bg-\[#0e0e0e\] { background-color: #0e0e0e; }
.bg-\[#111111\] { background-color: #111111; }
.bg-\[#1c1b1b\] { background-color: #1c1b1b; }

/* --- Opacity --- */
.opacity-20 { opacity: 0.2; }
.opacity-25 { opacity: 0.25; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }

/* --- Transitions --- */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

/* --- Transform --- */
.scale-95 { transform: scale(0.95); }
.rotate-45 { transform: rotate(45deg); }

/* --- Filters --- */
.grayscale { filter: grayscale(100%); }
.filter { filter: var(--tw-filter); }
.drop-shadow-\[0_0_15px_rgba\(233\,195\,73\,0\.3\)\] { filter: drop-shadow(0 0 15px rgba(233, 195, 73, 0.3)); }
.drop-shadow-\[0_0_15px_rgba\(233\,195\,73\,0\.5\)\] { filter: drop-shadow(0 0 15px rgba(233, 195, 73, 0.5)); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* --- Pointer / Cursor --- */
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

/* --- Selection Color --- */
.selection\:bg-secondary\/30 ::selection { background-color: rgba(233, 195, 73, 0.3); }
.selection\:text-secondary ::selection { color: var(--cf-secondary); }

/* --- Background Utilities --- */
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-l { background-image: linear-gradient(to left, var(--tw-gradient-stops)); }
.from-background { --tw-gradient-from: var(--cf-background); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-secondary\/5 { --tw-gradient-from: rgba(233,195,73,0.05); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-background\/60 { --tw-gradient-via: rgba(19,19,19,0.6); }
.to-transparent { --tw-gradient-to: transparent; }

/* --- Animation --- */
.animate-pulse {
    animation: tw-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.animate-ping {
    animation: tw-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes tw-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes tw-ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* --- Object Fit --- */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* --- Ring --- */
.focus\:ring-0:focus { box-shadow: none; }

/* ==========================================================================
   Hover Utilities (applied via CSS :hover)
   ========================================================================== */

.hover\:text-secondary:hover { color: var(--cf-secondary); }
.hover\:text-on-surface:hover { color: var(--cf-on-surface); }
.hover\:bg-surface-container:hover { background-color: var(--cf-surface-container); }
.hover\:bg-surface-container-high:hover { background-color: var(--cf-surface-container-high); }
.hover\:bg-secondary:hover { background-color: var(--cf-secondary); }
.hover\:border-secondary:hover { border-color: var(--cf-secondary); }
.hover\:border-secondary\/30:hover { border-color: rgba(233, 195, 73, 0.3); }
.hover\:border-secondary\/50:hover { border-color: rgba(233, 195, 73, 0.5); }
.hover\:brightness-110:hover { filter: brightness(1.1); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:grayscale-0:hover { filter: grayscale(0%); }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:gap-6:hover { gap: 24px; }
.hover\:scale-100:hover { transform: scale(1); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.active\:opacity-80:active { opacity: 0.8; }

/* Group hover utilities */
.group:hover .group-hover\:text-secondary { color: var(--cf-secondary); }
.group:hover .group-hover\:border-secondary\/50 { border-color: rgba(233, 195, 73, 0.5); }
.group:hover .group-hover\:grayscale-0 { filter: grayscale(0%); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* Focus utilities */
.focus\:border-secondary:focus { border-color: var(--cf-secondary); }
.group-focus-within\:text-secondary { }
.group:focus-within .group-focus-within\:text-secondary { color: var(--cf-secondary); }

/* Shadow utilities for hover */
.hover\:shadow-\[0_0_20px_rgba\(233\,195\,73\,0\.05\)\]:hover {
    box-shadow: 0 0 20px rgba(233, 195, 73, 0.05);
}

/* ==========================================================================
   Responsive Breakpoint: md (768px)
   ========================================================================== */

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid { display: grid; }
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
    .md\:col-span-7 { grid-column: span 7 / span 7; }
    .md\:items-center { align-items: center; }
    .md\:items-start { align-items: flex-start; }
    .md\:items-end { align-items: flex-end; }
    .md\:text-left { text-align: left; }
    .md\:text-\[64px\] { font-size: 64px; }
    .md\:text-display-lg { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
    .md\:w-96 { width: 384px; }
    .md\:w-32 { width: 128px; }
    .md\:w-40 { width: 160px; }
    .md\:w-1\/2 { width: 50%; }
    .md\:h-32 { height: 128px; }
    .md\:h-40 { height: 160px; }
    .md\:p-10 { padding: 40px; }
    .md\:p-12 { padding: 48px; }
    .md\:py-32 { padding-top: 128px; padding-bottom: 128px; }
    .md\:px-margin-desktop { padding-left: var(--cf-margin-desktop); padding-right: var(--cf-margin-desktop); }
    .md\:justify-start { justify-content: flex-start; }
}

/* ==========================================================================
   Responsive Breakpoint: lg (1024px)
   ========================================================================== */

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:grid { display: grid; }
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:col-span-4 { grid-column: span 4 / span 4; }
    .lg\:col-span-8 { grid-column: span 8 / span 8; }
    .lg\:col-span-9 { grid-column: span 9 / span 9; }
}

/* ==========================================================================
   Footer Layout (structural classes used in footer.php)
   ========================================================================== */

.cf-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--cf-gutter);
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(68, 71, 72, 0.1);
}

@media (min-width: 768px) {
    .cf-footer-top {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.cf-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cf-footer-col ul li a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--cf-on-surface-variant);
    transition: color 0.3s ease;
}

.cf-footer-col ul li a:hover {
    color: var(--cf-secondary);
}

.cf-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .cf-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cf-copyright {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cf-on-tertiary-fixed-variant);
    margin: 0;
}

.cf-footer-meta { }

.cf-scroll-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cf-on-surface-variant);
    transition: color 0.3s ease;
}

.cf-scroll-top:hover {
    color: var(--cf-secondary);
}

/* Social Links in Footer */
.cf-social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.cf-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(68, 71, 72, 0.2);
    color: var(--cf-on-surface-variant);
    transition: all 0.3s ease;
}

.cf-social-icon:hover {
    border-color: var(--cf-secondary);
    color: var(--cf-secondary);
}

/* ==========================================================================
   Responsive Helpers
   ========================================================================== */

.cf-hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .cf-hide-mobile {
        display: flex;
    }

    .cf-hide-desktop {
        display: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .cf-header,
    .cf-footer,
    .cf-sidebar,
    .cf-mobile-menu {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}


/* Added custom styles from true home page */
.glass-panel { background: rgba(19, 19, 19, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.05); }
.gold-glow:hover { box-shadow: 0 0 20px rgba(233, 195, 73, 0.1); border-color: #e9c349; }
.text-gold { color: #e9c349; }
.bg-gold { background-color: #e9c349; }

/* ==========================================================================
   bbPress Integration Styles
   ========================================================================== */

#bbpress-forums { font-family: var(--cf-font-body) !important; color: var(--cf-on-surface) !important; }

#bbpress-forums .bbp-forum-title a,
#bbpress-forums .bbp-topic-title a {
    color: var(--cf-on-surface) !important;
    font-family: var(--cf-font-display) !important;
    font-size: 17px; font-weight: 500; text-decoration: none;
    transition: color 0.2s ease;
}
#bbpress-forums .bbp-forum-title a:hover,
#bbpress-forums .bbp-topic-title a:hover { color: var(--cf-secondary) !important; }

#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer {
    background: var(--cf-surface-container-low) !important;
    border-color: rgba(68,71,72,0.2) !important;
    color: var(--cf-on-surface-variant) !important;
    font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
}

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies { background: transparent !important; border: none !important; }

#bbpress-forums li.bbp-forum,
#bbpress-forums li.bbp-topic,
#bbpress-forums li.bbp-reply {
    background: var(--cf-surface-container-lowest) !important;
    border: 1px solid rgba(68,71,72,0.15) !important;
    border-left: 2px solid transparent !important;
    margin-bottom: 2px !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
    border-radius: 0 !important;
}
#bbpress-forums li.bbp-forum:hover,
#bbpress-forums li.bbp-topic:hover {
    border-left-color: var(--cf-secondary) !important;
    background: var(--cf-surface-container) !important;
}

#bbpress-forums .bbp-forum-info, #bbpress-forums .bbp-topic-meta,
#bbpress-forums .bbp-reply-meta, #bbpress-forums .bbp-author-name {
    color: var(--cf-on-surface-variant) !important; font-size: 13px !important;
}
#bbpress-forums .bbp-author-name a { color: var(--cf-secondary) !important; }

#bbpress-forums .bbp-pagination a, #bbpress-forums .bbp-pagination span {
    background: var(--cf-surface-container) !important;
    border: 1px solid var(--cf-outline-variant) !important;
    color: var(--cf-on-surface-variant) !important; font-size: 13px;
}
#bbpress-forums .bbp-pagination a:hover,
#bbpress-forums .bbp-pagination span.current {
    background: var(--cf-secondary) !important;
    border-color: var(--cf-secondary) !important;
    color: var(--cf-on-secondary) !important;
}

#bbpress-forums #new-post, #bbpress-forums .bbp-the-form,
#bbpress-forums #bbp-your-profile {
    background: var(--cf-surface-container-lowest) !important;
    border: 1px solid rgba(68,71,72,0.2) !important;
    padding: 24px !important; border-radius: 0 !important;
}

#bbpress-forums input[type="text"], #bbpress-forums input[type="email"],
#bbpress-forums input[type="password"], #bbpress-forums textarea,
#bbpress-forums select {
    background: var(--cf-surface-container) !important;
    border: 1px solid var(--cf-outline-variant) !important;
    color: var(--cf-on-surface) !important;
    font-family: var(--cf-font-body) !important;
    font-size: 15px !important; padding: 10px 14px !important;
    border-radius: 0 !important; outline: none !important;
    width: 100% !important; transition: border-color 0.2s !important;
}
#bbpress-forums input[type="text"]:focus,
#bbpress-forums textarea:focus { border-color: var(--cf-secondary) !important; }

#bbpress-forums input[type="submit"],
#bbpress-forums .bbp-submit-wrapper .button {
    background: var(--cf-secondary) !important; color: var(--cf-on-secondary) !important;
    border: none !important; padding: 12px 28px !important;
    font-family: var(--cf-font-body) !important;
    font-size: 11px !important; font-weight: 700 !important;
    letter-spacing: 0.1em !important; text-transform: uppercase !important;
    cursor: pointer !important; border-radius: 0 !important;
    transition: filter 0.2s !important;
}
#bbpress-forums input[type="submit"]:hover { filter: brightness(1.1) !important; }

#bbpress-forums label {
    font-family: var(--cf-font-body) !important; font-size: 11px !important;
    font-weight: 700 !important; letter-spacing: 0.1em !important;
    text-transform: uppercase !important; color: var(--cf-on-surface-variant) !important;
    margin-bottom: 6px !important; display: block !important;
}

#bbpress-forums .bbp-breadcrumb { color: var(--cf-on-surface-variant) !important; font-size: 12px !important; }
#bbpress-forums .bbp-breadcrumb a { color: var(--cf-secondary) !important; }

#bbpress-forums .bbp-user-keymaster,
#bbpress-forums .bbp-user-moderator { color: var(--cf-secondary) !important; font-weight: 700; }

#bbpress-forums .status-closed::before { color: var(--cf-error) !important; }
#bbpress-forums .status-sticky::before,
#bbpress-forums .status-super-sticky::before { color: var(--cf-secondary) !important; }

.bbp-reply-content, .bbp-topic-content {
    color: var(--cf-on-surface-variant) !important;
    font-size: 15px !important; line-height: 1.75 !important;
}

/* Wrap bbPress index in theme container */
.cf-bbpress-wrapper { padding-top: calc(var(--cf-header-height) + 32px); padding-bottom: 64px; }
