/* ============================================
   BUILDORIA Theme Switcher - Light/Dark Mode
   Default: Light Mode
   ============================================ */

/* ---- Light Mode (Default) ---- */
:root {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f9f9fb;
    --bg-navbar: rgba(255, 255, 255, 0.85);
    --bg-navbar-scrolled: rgba(255, 255, 255, 0.95);
    --bg-overlay: rgba(245, 245, 247, 0.8);
    --bg-footer: #1a1a1a;
    --bg-input: #f0f0f2;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --text-inverse: #ffffff;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(255, 165, 0, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
    
    --gradient-main: linear-gradient(180deg, #f5f5f7 0%, #eeeef0 30%, #f0f0f2 60%, #f5f5f7 100%);
    --gradient-hero-overlay: linear-gradient(135deg, rgba(255,165,0,0.25) 0%, rgba(255,140,0,0.15) 25%, rgba(0,0,0,0.55) 50%, rgba(10,10,10,0.8) 100%);
    
    --card-bg-alpha: rgba(255, 255, 255, 0.8);
    --card-border-alpha: rgba(0, 0, 0, 0.06);
    --feature-card-bg: rgba(255, 255, 255, 0.9);
    --feature-card-border: rgba(0, 0, 0, 0.06);
    --eco-tile-text: #1a1a2e;
    
    --divider-gradient: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.3), transparent);
    --divider-bg: rgba(255, 255, 255, 0.6);
    
    --tag-bg: rgba(0, 0, 0, 0.05);
    --tag-border: rgba(0, 0, 0, 0.08);
    --tag-text: #4a4a5a;
    
    --cookie-bg: rgba(255, 255, 255, 0.98);
    --cookie-text: #1a1a2e;
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-navbar: rgba(0, 0, 0, 0.75);
    --bg-navbar-scrolled: rgba(0, 0, 0, 0.9);
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --bg-footer: rgba(0, 0, 0, 0.7);
    --bg-input: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-inverse: #1a1a1a;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 165, 0, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
    
    --gradient-main: linear-gradient(180deg, #000000 0%, #0a0a0f 8%, #0d0d12 15%, #101015 25%, #0e0e13 35%, #0c0c11 45%, #0a0a0f 55%, #0d0d12 65%, #101015 75%, #0c0c10 85%, #080810 95%, #050508 100%);
    --gradient-hero-overlay: linear-gradient(135deg, rgba(255,165,0,0.3) 0%, rgba(255,140,0,0.2) 25%, rgba(0,0,0,0.7) 50%, rgba(10,10,10,0.9) 100%);
    
    --card-bg-alpha: rgba(255, 255, 255, 0.05);
    --card-border-alpha: rgba(255, 255, 255, 0.08);
    --feature-card-bg: rgba(255, 255, 255, 0.03);
    --feature-card-border: rgba(255, 255, 255, 0.08);
    --eco-tile-text: #ffffff;
    
    --divider-gradient: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.3), transparent);
    --divider-bg: rgba(0, 0, 0, 0.4);
    
    --tag-bg: rgba(255, 255, 255, 0.1);
    --tag-border: rgba(255, 255, 255, 0.15);
    --tag-text: rgba(255, 255, 255, 0.85);
    
    --cookie-bg: rgba(18, 18, 18, 0.98);
    --cookie-text: #ffffff;
}

/* ============================================
   GLOBAL OVERRIDES
   ============================================ */

/* Body & HTML */
html {
    background-color: var(--bg-primary) !important;
}

body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

[data-theme="dark"] body {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
}

/* Main container gradient */
main.min-h-screen,
main.min-h-screen.flex.flex-col {
    background: var(--gradient-main) !important;
}

/* Overlay - hide in light mode, show in dark */
.overlay {
    display: none !important;
}

[data-theme="dark"] .overlay {
    display: block !important;
    background: radial-gradient(circle at center top, rgba(18, 18, 18, 0.5) 0%, rgba(0, 0, 0, 1) 70%) !important;
    opacity: 1;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background-color: var(--bg-navbar) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.navbar.scrolled {
    background-color: var(--bg-navbar-scrolled) !important;
    box-shadow: var(--shadow-md) !important;
}

.navbar-logo {
    color: var(--text-primary) !important;
}

.navbar-link {
    color: var(--text-secondary) !important;
}

.navbar-link:hover,
.navbar-link:focus,
.navbar-link.link-focused {
    color: var(--primary) !important;
}

/* Shop Button - Kastenförmig */
.shop-button,
.navbar-links .shop-button {
    border-radius: 8px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* CTA Button - Kastenförmig */
.cta-button,
.cta-button2 {
    border-radius: 8px !important;
}

/* All .btn elements - Kastenförmig */
.btn {
    border-radius: 8px !important;
}

.btn-primary {
    border-radius: 8px !important;
}

.btn-outline {
    border-radius: 8px !important;
}

.btn-primary-simple {
    border-radius: 8px !important;
}

.btn-secondary-simple {
    border-radius: 8px !important;
}

/* Small links */
.small-link {
    color: var(--text-muted) !important;
}

.small-link:hover {
    color: var(--text-primary) !important;
}

/* Menu icon color */
.menu-icon,
.menu-icon::before,
.menu-icon::after {
    background-color: var(--text-primary) !important;
}

.toggle-bar {
    background: var(--primary) !important;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.1rem;
    position: relative;
    z-index: 1010;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: rgba(255, 165, 0, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.15);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section::before {
    background: var(--gradient-hero-overlay) !important;
}

.server-status {
    background: var(--card-bg-alpha) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
}

.status-text {
    color: var(--text-inverse) !important;
}

/* Info Cards in Hero */
.info-card {
    background: var(--card-bg-alpha) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: 16px !important;
}

.info-card:hover {
    border-color: var(--border-color-hover) !important;
    box-shadow: var(--shadow-lg) !important;
    background: var(--bg-card-hover) !important;
}

/* Hero buttons - kastenförmig */
.hero-buttons-simple {
    gap: 0.75rem !important;
}

.btn-primary-simple {
    border-radius: 8px !important;
    padding: 12px 24px !important;
}

.btn-secondary-simple {
    border-radius: 8px !important;
    padding: 12px 24px !important;
}

/* ============================================
   FEATURES / ECONOMY BENTO SECTION
   ============================================ */
.features-section {
    background: transparent !important;
}

.features-section .section-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 60%, #ff8c00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="dark"] .features-section .section-title {
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 40%, #ffa500 80%, #ff8c00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Eco tiles - Light mode adjustments */
.eco-tile h3 {
    color: var(--eco-tile-text) !important;
}

.eco-tile p {
    color: var(--text-secondary) !important;
}

.eco-tag {
    background: var(--tag-bg) !important;
    border: 1px solid var(--tag-border) !important;
    color: var(--tag-text) !important;
}

/* Light mode eco tiles get lighter backgrounds */
.eco-tile-hero {
    background: linear-gradient(135deg, #fef9e7 0%, #fff8e1 50%, #fffde7 100%) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
    box-shadow: var(--shadow-card) !important;
}

.eco-tile-firmen {
    background: linear-gradient(160deg, #f3e5f5 0%, #ede7f6 50%, #f3e5f5 100%) !important;
    border: 1px solid rgba(156, 39, 176, 0.2) !important;
    box-shadow: var(--shadow-card) !important;
}

.eco-tile-wirtschaft {
    background: linear-gradient(145deg, #e8f5e9 0%, #f1f8e9 50%, #e8f5e9 100%) !important;
    border: 1px solid rgba(76, 175, 80, 0.2) !important;
    box-shadow: var(--shadow-card) !important;
}

.eco-tile-city {
    background: linear-gradient(150deg, #e3f2fd 0%, #e8eaf6 50%, #e3f2fd 100%) !important;
    border: 1px solid rgba(33, 150, 243, 0.2) !important;
    box-shadow: var(--shadow-card) !important;
}

.eco-tile-community {
    background: linear-gradient(155deg, #fbe9e7 0%, #fff3e0 50%, #fbe9e7 100%) !important;
    border: 1px solid rgba(255, 87, 34, 0.2) !important;
    box-shadow: var(--shadow-card) !important;
}

.eco-tile-cta {
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.06) 0%, rgba(255, 152, 0, 0.04) 50%, rgba(255, 165, 0, 0.06) 100%) !important;
    border: 1px solid rgba(255, 165, 0, 0.15) !important;
    box-shadow: var(--shadow-card) !important;
}

/* Eco tile icon backgrounds - keep colored in light mode */
.eco-tile-hero .eco-tile-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #1a1a1a !important;
}

.eco-tile-firmen .eco-tile-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%) !important;
    color: white !important;
}

.eco-tile-wirtschaft .eco-tile-icon {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%) !important;
    color: white !important;
}

.eco-tile-city .eco-tile-icon {
    background: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%) !important;
    color: white !important;
}

.eco-tile-community .eco-tile-icon {
    background: linear-gradient(135deg, #FF5722 0%, #D84315 100%) !important;
    color: white !important;
}

/* Eco tile ::before - hide radial glow in light mode */
.eco-tile::before {
    opacity: 0 !important;
}

.eco-tile:hover::before {
    opacity: 0.3 !important;
}

[data-theme="dark"] .eco-tile::before {
    opacity: 0 !important;
}

[data-theme="dark"] .eco-tile:hover::before {
    opacity: 1 !important;
}

/* Eco tile icon ::after glow - subtle in light */
.eco-tile-icon::after {
    opacity: 0.3 !important;
}

[data-theme="dark"] .eco-tile-icon::after {
    opacity: 1 !important;
}

.eco-cta-text h4 {
    color: var(--text-primary) !important;
}

.eco-cta-text p {
    color: var(--text-secondary) !important;
}

/* Dark mode eco tiles - restore original dark backgrounds */
[data-theme="dark"] .eco-tile-hero {
    background: linear-gradient(135deg, rgba(255,193,7,0.15), rgba(255,193,7,0.05)) !important;
    border: 1px solid rgba(255, 193, 7, 0.25) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .eco-tile-firmen {
    background: linear-gradient(135deg, rgba(156,39,176,0.15), rgba(156,39,176,0.05)) !important;
    border: 1px solid rgba(156, 39, 176, 0.25) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .eco-tile-wirtschaft {
    background: linear-gradient(135deg, rgba(76,175,80,0.15), rgba(76,175,80,0.05)) !important;
    border: 1px solid rgba(76, 175, 80, 0.25) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .eco-tile-city {
    background: linear-gradient(135deg, rgba(33,150,243,0.15), rgba(33,150,243,0.05)) !important;
    border: 1px solid rgba(33, 150, 243, 0.25) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .eco-tile-community {
    background: linear-gradient(135deg, rgba(233,30,99,0.15), rgba(233,30,99,0.05)) !important;
    border: 1px solid rgba(233, 30, 99, 0.25) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .eco-tile-cta {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 152, 0, 0.05) 50%, rgba(255, 193, 7, 0.08) 100%) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
    box-shadow: none !important;
}

/* Dark mode eco tile icons - restore white */
[data-theme="dark"] .eco-tile-icon {
    color: white !important;
}

[data-theme="dark"] .eco-cta-text h4 {
    color: white !important;
}

[data-theme="dark"] .eco-cta-text p {
    color: rgba(255,255,255,0.7) !important;
}

[data-theme="dark"] .eco-tile h3 {
    color: white !important;
}

[data-theme="dark"] .eco-tile p {
    color: rgba(255,255,255,0.7) !important;
}

[data-theme="dark"] .eco-tag {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.85) !important;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-new-title {
    color: var(--text-primary) !important;
}

.about-new-subtitle {
    color: var(--text-secondary) !important;
}

.about-new-text h3 {
    color: var(--text-primary) !important;
}

.about-new-text p {
    color: var(--text-secondary) !important;
}

.about-new-highlight {
    background: rgba(255, 165, 0, 0.06) !important;
}

.about-new-highlight span {
    color: var(--text-secondary) !important;
}

.about-new-stat-value {
    color: var(--primary) !important;
}

.about-new-stat-label {
    color: var(--text-muted) !important;
}

/* About Feature Cards */
.about-new-feature {
    background: var(--feature-card-bg) !important;
    border: 1px solid var(--feature-card-border) !important;
    box-shadow: var(--shadow-card) !important;
}

.about-new-feature:hover {
    background: var(--bg-card-hover) !important;
    border-color: rgba(255, 165, 0, 0.2) !important;
    box-shadow: var(--shadow-md) !important;
}

.about-new-feature h4 {
    color: var(--text-primary) !important;
}

.about-new-feature p {
    color: var(--text-secondary) !important;
}

.about-new-badge {
    background: rgba(255, 165, 0, 0.08) !important;
    border: 1px solid rgba(255, 165, 0, 0.2) !important;
}

/* About Image */
.about-new-image {
    box-shadow: var(--shadow-lg) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}

.about-new-image::after {
    border: 2px solid rgba(255, 165, 0, 0.15) !important;
}

/* ============================================
   JOIN SERVER / CTA SECTION
   ============================================ */
.join-server-section .section-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 60%, #ff8c00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="dark"] .join-server-section .section-title {
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 40%, #ffa500 80%, #ff8c00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Join Cards - Modern Light */
.join-card-java {
    background: linear-gradient(145deg, #fff8f0 0%, #fff3e0 50%, #fff8f0 100%) !important;
    border: 1px solid rgba(255, 140, 0, 0.2) !important;
    box-shadow: var(--shadow-card) !important;
}

.join-card-bedrock {
    background: linear-gradient(145deg, #f0faf0 0%, #e8f5e9 50%, #f0faf0 100%) !important;
    border: 1px solid rgba(76, 175, 80, 0.2) !important;
    box-shadow: var(--shadow-card) !important;
}

.join-card-title {
    color: var(--text-primary) !important;
}

.join-card-subtitle {
    color: var(--text-secondary) !important;
}

.server-address-box {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--border-color) !important;
}

.server-address-label {
    color: var(--text-muted) !important;
}

.server-address-text {
    color: var(--text-primary) !important;
}

.join-card-java .server-address-text {
    color: #e67e00 !important;
}

.join-card-bedrock .server-address-text {
    color: #2e7d32 !important;
}

/* Dark mode join cards */
[data-theme="dark"] .join-card-java {
    background: linear-gradient(145deg, #1a0f0a 0%, #2d1810 50%, #1a0a05 100%) !important;
    border: 1px solid rgba(255, 140, 0, 0.25) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .join-card-bedrock {
    background: linear-gradient(145deg, #0a1a0f 0%, #102818 50%, #051a0a 100%) !important;
    border: 1px solid rgba(76, 175, 80, 0.25) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .join-card-title {
    color: white !important;
}

[data-theme="dark"] .join-card-subtitle {
    color: rgba(255,255,255,0.6) !important;
}

[data-theme="dark"] .server-address-box {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .server-address-label {
    color: rgba(255,255,255,0.5) !important;
}

[data-theme="dark"] .join-card-java .server-address-text {
    color: #ffa726 !important;
}

[data-theme="dark"] .join-card-bedrock .server-address-text {
    color: #66bb6a !important;
}

/* ============================================
   PORTAL SECTION
   ============================================ */
.portal-feature-section h2 {
    color: var(--text-primary) !important;
}

.portal-feature-section h2 span {
    color: var(--primary) !important;
}

.portal-feature-section p {
    color: var(--text-secondary) !important;
}

.portal-feature-section h4 {
    color: var(--text-primary) !important;
}

/* Portal feature grid items */
.portal-feature-section [style*="background: rgba(255,255,255,0.04)"] {
    background: var(--feature-card-bg) !important;
    border: 1px solid var(--feature-card-border) !important;
}

/* ============================================
   DISCORD / COMMUNITY SECTION
   ============================================ */
.discord-cta-title {
    color: var(--text-primary) !important;
}

.discord-cta-text {
    color: var(--text-secondary) !important;
}

.social-icon-btn {
    border: 1px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.divider-line {
    background: var(--divider-gradient) !important;
}

.divider-icon {
    background: var(--divider-bg) !important;
    border: 1px solid rgba(255, 165, 0, 0.2) !important;
}

.section-subtitle {
    color: var(--text-secondary) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-footer) !important;
    border-top: 1px solid var(--border-color) !important;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-consent-banner {
    background: var(--cookie-bg) !important;
}

.cookie-consent-header h3 {
    color: var(--cookie-text) !important;
}

.cookie-description {
    color: var(--text-secondary) !important;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-to-top {
    border-radius: 12px !important;
}

/* ============================================
   COPY NOTIFICATION
   ============================================ */
.copy-notification {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
}

[data-theme="dark"] .copy-notification {
    background: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    border: none !important;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-container {
    background: rgba(255, 255, 255, 0.97) !important;
}

.mobile-menu-link {
    color: var(--text-primary) !important;
}

.mobile-menu-link:hover {
    color: var(--primary) !important;
}

.mobile-menu-link::after {
    background: linear-gradient(90deg, var(--primary), #ff9900) !important;
}

[data-theme="dark"] .mobile-menu-container {
    background: rgba(44, 44, 44, 0.95) !important;
}

[data-theme="dark"] .mobile-menu-link {
    color: #e7e7e7 !important;
}

[data-theme="dark"] .mobile-menu-link:hover {
    color: #ffc800 !important;
}

/* ============================================
   SECTION TITLES - LIGHT MODE
   ============================================ */
.section-title {
    color: var(--text-primary) !important;
}

.section-subtitle {
    color: var(--text-secondary) !important;
}

.section-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .section-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .section-description {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Features section subtitle override */
.features-section .section-subtitle {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .features-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* About section title gradient */
.about-section .section-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 60%, #ff8c00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="dark"] .about-section .section-title {
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 40%, #ffa500 80%, #ff8c00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8c00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Feature title gradient - light */
.feature-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="dark"] .feature-title {
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 50%, #ffa500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.feature-description {
    color: var(--text-secondary) !important;
}

.feature-list li {
    color: var(--text-secondary) !important;
}

/* ============================================
   GENERAL TEXT OVERRIDES
   ============================================ */
.value-title {
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background: none !important;
}

.value-desc {
    color: var(--text-secondary) !important;
}

/* About section text */
.about-text {
    color: var(--text-secondary) !important;
}

.about-section .about-text p {
    color: var(--text-secondary) !important;
}

.about-section .about-text h3 {
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background: none !important;
}

/* CTA section */
.cta-title {
    color: var(--text-primary) !important;
}

.cta-description {
    color: var(--text-secondary) !important;
}

.countdown-value {
    color: var(--text-primary) !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

.countdown-label {
    color: var(--text-muted) !important;
}

/* ============================================
   JOIN CARD HELPER CLASSES
   ============================================ */
.copy-hint-icon {
    color: var(--text-muted) !important;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.join-card:hover .copy-hint-icon {
    opacity: 0.8;
}

[data-theme="dark"] .copy-hint-icon {
    color: rgba(255,255,255,0.4) !important;
}

.copy-hint-text {
    color: var(--text-muted) !important;
    opacity: 0.6;
}

[data-theme="dark"] .copy-hint-text {
    color: rgba(255,255,255,0.4) !important;
}

.port-hint {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .port-hint {
    color: rgba(255,255,255,0.5) !important;
}

/* ============================================
   SMOOTH TRANSITIONS (only for theme switch)
   Do NOT use !important here - it breaks hover animations
   ============================================ */

/* ============================================
   RESPONSIVE - MOBILE THEME TOGGLE
   ============================================ */
@media (max-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Portal section inline style overrides for light mode */
.portal-feature-section [style*="color: rgba(255,255,255,0.75)"] {
    color: var(--text-secondary) !important;
}

.portal-feature-section [style*="color: rgba(255,255,255,0.6)"] {
    color: var(--text-muted) !important;
}

.portal-feature-section [style*="color: white"] {
    color: var(--text-primary) !important;
}

.portal-feature-section [style*="background: rgba(255,255,255,0.04)"] {
    background: var(--feature-card-bg) !important;
    border-color: var(--feature-card-border) !important;
}

/* Portal image border */
.portal-feature-section [style*="border: 2px solid rgba(255,165,0,0.2)"] {
    border: 2px solid rgba(255, 165, 0, 0.15) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Portal CTA button - kastenförmig */
.portal-feature-section a[style*="border-radius: 50px"] {
    border-radius: 10px !important;
}

/* ============================================
   INLINE COLOR OVERRIDES (for elements with style attrs)
   ============================================ */

/* Generic white text in sections */
.about-new h2,
.about-new h3,
.about-new h4 {
    color: var(--text-primary) !important;
}

.about-new p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .about-new h2,
[data-theme="dark"] .about-new h3,
[data-theme="dark"] .about-new h4 {
    color: white !important;
}

[data-theme="dark"] .about-new p {
    color: rgba(255,255,255,0.7) !important;
}

/* About title span stays orange */
.about-new-title span {
    color: #ffa500 !important;
}

/* Eco tile icon colors stay the same */
.eco-tile-icon {
    color: white !important;
}

/* Join card inner text */
.join-card-inner .join-badge {
    color: white !important;
}

/* CTA section background */
.cta-section {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] .cta-section {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

/* Features section decorations - subtle in light */
.features-decoration {
    opacity: 0.3 !important;
}

[data-theme="dark"] .features-decoration {
    opacity: 0.6 !important;
}

/* Eco float elements - subtle in light */
.eco-tile .eco-float {
    opacity: 0.3;
}

[data-theme="dark"] .eco-tile .eco-float {
    opacity: 1;
}

/* Chart SVG in light mode */
.eco-tile-hero .eco-chart-svg {
    opacity: 0.15;
}

[data-theme="dark"] .eco-tile-hero .eco-chart-svg {
    opacity: 0.2;
}

/* Server status in hero - keep readable on hero bg */
.hero-section .server-status {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.hero-section .status-text {
    color: #ffffff !important;
}

.hero-section .hero-title {
    color: #ffffff !important;
}

.hero-section .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Hero info cards stay dark-themed since they're on the hero bg image */
.hero-section .info-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 165, 0, 0.2) !important;
    color: white !important;
}

.hero-section .info-card:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 165, 0, 0.4) !important;
}

.hero-section .join-text,
.hero-section .if-small {
    color: white !important;
}

.hero-section .btn-primary {
    color: var(--dark) !important;
}

/* Hero buttons stay light-on-dark since hero has bg image */
.hero-section .btn-primary-simple {
    color: white !important;
}

.hero-section .btn-secondary-simple {
    color: white !important;
}

.hero-section .scroll-indicator-simple span {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Discord section */
.discord-cta-section .discord-cta-title {
    color: var(--text-primary) !important;
}

.discord-cta-section .discord-cta-title span {
    color: var(--primary) !important;
}

/* Allay shadow */
.allay-img {
    filter: drop-shadow(0 15px 40px rgba(88,101,242,0.4)) !important;
}

[data-theme="dark"] .allay-img {
    filter: drop-shadow(0 15px 40px rgba(88,101,242,0.7)) !important;
}

/* ============================================
   PORTAL SECTION - LIGHT MODE GRID ITEMS
   ============================================ */
.portal-feature-section div[style*="background: rgba(255,255,255,0.04)"] {
    background: var(--feature-card-bg) !important;
    border: 1px solid var(--feature-card-border) !important;
    box-shadow: var(--shadow-card) !important;
}

.portal-feature-section div[style*="background: rgba(255,255,255,0.04)"] h4 {
    color: var(--text-primary) !important;
}

.portal-feature-section div[style*="background: rgba(255,255,255,0.04)"] p {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .portal-feature-section div[style*="background: rgba(255,255,255,0.04)"] {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .portal-feature-section div[style*="background: rgba(255,255,255,0.04)"] h4 {
    color: white !important;
}

[data-theme="dark"] .portal-feature-section div[style*="background: rgba(255,255,255,0.04)"] p {
    color: rgba(255,255,255,0.6) !important;
}

/* ============================================
   FOOTER - LIGHT MODE
   ============================================ */
.footer p,
.footer span {
    color: rgba(255, 255, 255, 0.8);
}

.footer a {
    color: var(--primary) !important;
}

/* ============================================
   SECTION TITLE UNDERLINE
   ============================================ */
.section-title::after {
    background: linear-gradient(90deg, var(--primary) 0%, #ff8c00 100%) !important;
}

/* ============================================
   JOIN CARD COPY ICON
   ============================================ */
.join-card .fas.fa-copy {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .join-card .fas.fa-copy {
    color: rgba(255,255,255,0.4) !important;
}

/* ============================================
   BTN ENHANCEMENTS
   ============================================ */
.btn-primary.btn-glow {
    border-radius: 8px !important;
}

.btn-outline.btn-pulse {
    border-radius: 8px !important;
}

.enhanced-btn {
    border-radius: 8px !important;
}

/* ============================================
   ABOUT NEW IMAGE SHADOW - LIGHT
   ============================================ */
.about-new-image {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="dark"] .about-new-image {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

/* ============================================
   ABOUT FEATURE ICON BG
   ============================================ */
.about-new-feature-icon {
    background: rgba(255, 165, 0, 0.1) !important;
}

/* ============================================
   CROSSPLAY BANNER
   ============================================ */
.crossplay-banner {
    background: linear-gradient(90deg, rgba(255,193,7,0.06) 0%, rgba(76,175,80,0.06) 100%) !important;
    border: 1px solid var(--border-color) !important;
}

.crossplay-banner span {
    color: var(--text-secondary) !important;
}

.crossplay-banner strong {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .crossplay-banner {
    background: linear-gradient(90deg, rgba(255,193,7,0.08) 0%, rgba(76,175,80,0.08) 100%) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .crossplay-banner span {
    color: rgba(255,255,255,0.85) !important;
}

[data-theme="dark"] .crossplay-banner strong {
    color: white !important;
}

[data-theme="dark"] .portal-feature-section [style*="color: rgba(255,255,255,0.75)"] {
    color: rgba(255,255,255,0.75) !important;
}

[data-theme="dark"] .portal-feature-section [style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(255,255,255,0.6) !important;
}

[data-theme="dark"] .portal-feature-section [style*="color: white"] {
    color: white !important;
}

[data-theme="dark"] .portal-feature-section [style*="background: rgba(255,255,255,0.04)"] {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

/* Join card click hint text */
.join-card p[style*="color: rgba(255,255,255,0.4)"] {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .join-card p[style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(255,255,255,0.4) !important;
}

/* Economy section subtitle */
.features-section p[style*="color: rgba(255,255,255,0.55)"] {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .features-section p[style*="color: rgba(255,255,255,0.55)"] {
    color: rgba(255,255,255,0.55) !important;
}

/* Section title text-white spans */
.section-title .text-white {
    -webkit-text-fill-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .section-title .text-white {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

/* Bedrock notice text */
.server-address-label[style*="color: #ffc107"] {
    color: #e6a800 !important;
}

/* Portal CTA button override for light mode */
.portal-feature-section a[style*="border-radius: 50px"] {
    border-radius: 8px !important;
}

/* Discord btn main - kastenförmig */
.discord-btn-main {
    border-radius: 10px !important;
}

.discord-join-btn {
    border-radius: 10px !important;
}

/* Social buttons kastenförmig */
.social-btn {
    border-radius: 10px !important;
}

/* Join badge */
.join-badge {
    border-radius: 8px !important;
}

/* Watch full btn */
.watch-full-btn {
    border-radius: 10px !important;
}

/* About new badge */
.about-new-badge {
    border-radius: 8px !important;
}

/* Navbar backdrop for light mode */
.navbar {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* Server address box */
.server-address-box {
    border-radius: 12px !important;
}

/* Scroll indicator */
.scroll-indicator-simple span {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .scroll-indicator-simple span {
    color: #888 !important;
}

/* ============================================
   PORTAL SECTION - FORCE OVERRIDE INLINE STYLES
   ============================================ */
.portal-feature-section h2[style] {
    color: var(--text-primary) !important;
}

.portal-feature-section h2[style] span[style] {
    color: var(--primary) !important;
}

.portal-feature-section p[style*="color: rgba(255,255,255"] {
    color: var(--text-secondary) !important;
}

.portal-feature-section h4[style*="color: white"] {
    color: var(--text-primary) !important;
}

.portal-feature-section p[style*="color: rgba(255,255,255,0.6)"] {
    color: var(--text-muted) !important;
}

.portal-feature-section div[style*="background: rgba(255,255,255,0.04)"] {
    background: var(--feature-card-bg) !important;
    border: 1px solid var(--feature-card-border) !important;
    box-shadow: var(--shadow-card) !important;
}

/* Portal CTA button */
.portal-feature-section a[style*="border-radius: 50px"] {
    border-radius: 10px !important;
}

/* Dark mode restore portal */
[data-theme="dark"] .portal-feature-section h2[style] {
    color: white !important;
}

[data-theme="dark"] .portal-feature-section p[style*="color: rgba(255,255,255"] {
    color: rgba(255,255,255,0.75) !important;
}

[data-theme="dark"] .portal-feature-section h4[style*="color: white"] {
    color: white !important;
}

[data-theme="dark"] .portal-feature-section p[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(255,255,255,0.6) !important;
}

[data-theme="dark"] .portal-feature-section div[style*="background: rgba(255,255,255,0.04)"] {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
}

/* ============================================
   VALUE CARDS (About Section)
   ============================================ */
.value-card {
    background: var(--feature-card-bg) !important;
    border: 1px solid var(--feature-card-border) !important;
    box-shadow: var(--shadow-card) !important;
}

.value-card-title {
    color: var(--text-primary) !important;
}

.value-card-desc {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .value-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .value-card-title {
    color: white !important;
}

[data-theme="dark"] .value-card-desc {
    color: rgba(255,255,255,0.65) !important;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    background: var(--feature-card-bg) !important;
    border: 1px solid rgba(255, 165, 0, 0.12) !important;
    box-shadow: var(--shadow-card) !important;
}

.stat-card-number {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

.stat-card-label {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .stat-card {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,165,0,0.15) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .stat-card-number {
    color: #ffffff !important;
    text-shadow: 0 0 25px rgba(255,165,0,0.5), 0 0 50px rgba(255,165,0,0.25) !important;
}

[data-theme="dark"] .stat-card-label {
    color: rgba(255,255,255,0.6) !important;
}

/* ============================================
   ECO TILE INNER TEXT - LIGHT MODE
   ============================================ */
.eco-tile-inner h3 {
    color: var(--text-primary) !important;
}

.eco-tile-inner p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .eco-tile-inner h3 {
    color: white !important;
}

[data-theme="dark"] .eco-tile-inner p {
    color: rgba(255,255,255,0.7) !important;
}

/* ============================================
   STEP ITEMS (Join Section)
   ============================================ */
.step-item {
    background: var(--feature-card-bg) !important;
    border: 1px solid var(--feature-card-border) !important;
}

.step-title {
    color: var(--text-primary) !important;
}

.step-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .step-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .step-title {
    color: white !important;
}

[data-theme="dark"] .step-description {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   EDITION TABS
   ============================================ */
.edition-tabs {
    background: var(--feature-card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

.edition-tab {
    color: var(--text-secondary) !important;
}

.edition-tab.active {
    color: #1a1a1a !important;
}

[data-theme="dark"] .edition-tabs {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .edition-tab {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .edition-tab.active {
    color: #1a1a1a !important;
}

/* ============================================
   SERVER ADDRESS IN STEPS
   ============================================ */
.server-address {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(255, 165, 0, 0.15) !important;
}

[data-theme="dark"] .server-address {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 165, 0, 0.2) !important;
}

/* ============================================
   COOKIE MODAL - LIGHT MODE
   ============================================ */
.cookie-modal-content {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.cookie-modal-content h3,
.cookie-modal-content h4 {
    color: var(--text-primary) !important;
}

.cookie-modal-content p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .cookie-modal-content {
    background: #1a1a1a !important;
    color: white !important;
}

[data-theme="dark"] .cookie-modal-content h3,
[data-theme="dark"] .cookie-modal-content h4 {
    color: white !important;
}

[data-theme="dark"] .cookie-modal-content p {
    color: rgba(255,255,255,0.7) !important;
}

/* ============================================
   MOBILE TOGGLE BTN - LIGHT MODE
   ============================================ */
.mobile-toggle-btn .toggle-bar {
    background: var(--text-primary) !important;
}

[data-theme="dark"] .mobile-toggle-btn .toggle-bar {
    background: var(--primary) !important;
}

/* ============================================
   JOIN DECORATION ORBS - SUBTLE IN LIGHT
   ============================================ */
.join-decoration {
    opacity: 0.2 !important;
}

[data-theme="dark"] .join-decoration {
    opacity: 0.4 !important;
}

/* ============================================
   ABOUT HIGHLIGHT BOX
   ============================================ */
.about-highlight {
    background: linear-gradient(135deg, rgba(255,165,0,0.08) 0%, rgba(255,165,0,0.02) 100%) !important;
}

[data-theme="dark"] .about-highlight {
    background: linear-gradient(135deg, rgba(255,165,0,0.12) 0%, rgba(255,165,0,0.04) 100%) !important;
}

.about-highlight span,
.about-highlight p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .about-highlight span,
[data-theme="dark"] .about-highlight p {
    color: rgba(255,255,255,0.95) !important;
}

/* ============================================
   ABOUT LABEL
   ============================================ */
.about-label {
    background: linear-gradient(135deg, rgba(255,165,0,0.1), rgba(255,165,0,0.03)) !important;
    border: 1px solid rgba(255,165,0,0.2) !important;
}

[data-theme="dark"] .about-label {
    background: linear-gradient(135deg, rgba(255,165,0,0.15), rgba(255,165,0,0.05)) !important;
    border: 1px solid rgba(255,165,0,0.35) !important;
}

/* ============================================
   ABOUT TITLE
   ============================================ */
.about-title {
    color: var(--text-primary) !important;
}

.about-title span {
    color: #ffd700 !important;
}

[data-theme="dark"] .about-title {
    color: white !important;
}

/* ============================================
   ABOUT TEXT
   ============================================ */
.about-text {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .about-text {
    color: rgba(255,255,255,0.75) !important;
}

/* ============================================
   ABOUT CONTENT
   ============================================ */
.about-content h3,
.about-content h4 {
    color: var(--text-primary) !important;
}

.about-content p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .about-content h3,
[data-theme="dark"] .about-content h4 {
    color: white !important;
}

[data-theme="dark"] .about-content p {
    color: rgba(255,255,255,0.75) !important;
}

/* ============================================
   IMAGE FRAME
   ============================================ */
.about-image-frame {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="dark"] .about-image-frame {
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 80px rgba(255,165,0,0.1) !important;
}

/* ============================================
   ABOUT IMAGE BADGE
   ============================================ */
.about-image-badge {
    box-shadow: 0 8px 25px rgba(255,140,0,0.35) !important;
}

[data-theme="dark"] .about-image-badge {
    box-shadow: 0 10px 30px rgba(255,140,0,0.5), 0 0 20px rgba(255,165,0,0.3) !important;
}
