body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2a 50%, #2a2a4a 100%);
    min-height: 100vh;
    color: #e0e0e0;
} 
html, body {
    overflow-x: hidden;
}
.main-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* restore original simple main-container behavior */
.main-container {
    min-height: 100vh;
}

.card,
.form-control,
.btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-primary {
    background: linear-gradient(45deg, #d4af37, #ffd700) !important;
    border: none !important;
    color: #000 !important;
    font-weight: bold;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #ffd700, #d4af37) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}
/* Gold outline button for Statistics */
.btn-outline-gold {
    color: #d4af37 !important;
    border-color: #d4af37 !important;
    background: transparent !important;
}
.btn-outline-gold:hover,
.btn-outline-gold:focus {
    color: #000 !important;
    background: linear-gradient(45deg, #d4af37, #ffd700) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3) !important;
}

/* Red outline for Logout - ensure transparent background despite generic .btn override */
.btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
    background: transparent !important;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}
/* Price modal: mimic default Bootstrap secondary like Manage Versions modal */
/* Price modal close only: force classic Bootstrap secondary; leave export (outline-gold) untouched */
#priceModal .btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    box-shadow: none !important;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
#priceModal .btn-secondary:hover,
#priceModal .btn-secondary:focus {
    background-color: #5c636a !important;
    border-color: #565e64 !important;
    color: #fff !important;
}
#priceModal .btn-secondary:focus {
    box-shadow: 0 0 0 0.25rem rgba(130, 138, 145, 0.5) !important;
}
#priceModal .btn-secondary:active {
    background-color: #565e64 !important;
    border-color: #51585e !important;
}
/* Pretty Interdiction toggle */
.form-switch .form-check-input {
    width: 3rem;
    height: 1.6rem;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.form-switch .form-check-input:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}
#interdiction.form-check-input:checked {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
}
.form-switch .form-check-label {
    margin-left: 0.5rem;
    user-select: none;
}
.badge-gold {
    background: linear-gradient(45deg, #d4af37, #ffd700) !important;
    color: #000 !important;
}
/* Compact elegant Interdiction button */
.btn-interdict {
    padding: 0.55rem 1rem !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: box-shadow 0.2s ease, transform 0.06s ease;
}
.btn-interdict:hover {
    transform: translateY(-1px);
}
.btn-interdict:active {
    transform: translateY(0);
}
/* subtle glow only when active */
.btn-interdict--active {
    box-shadow: 0 0 0.6rem rgba(212, 175, 55, 0.35) !important;
}
.form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #d4af37 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}
/* Highlight for autocomplete selection */
#nationality-dropdown .dropdown-item.active {
    background-color: #d4af37 !important;
    color: #000 !important;
}
#cargo-dropdown .dropdown-item.active {
    background-color: #d4af37 !important;
    color: #000 !important;
}
#ship-dropdown .dropdown-item.active {
    background-color: #d4af37 !important;
    color: #000 !important;
}
/* Prevent dropdown content from causing horizontal scroll */
.dropdown-item {
    white-space: normal;
    word-break: break-word;
}
.position-relative > .dropdown-menu {
    left: 0 !important;
    right: 0 !important;
}
.auto-fill-highlight {
    background-color: rgba(25, 135, 84, 0.15) !important;
    border-color: #198754 !important;
}
/* Preserve rounded corners for trailing auto-toggle buttons */
.input-group > .btn.rounded-end {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}
/* Tighter footer spacing to keep "A service by" visible */
@media (max-width: 576px) {
    footer {
        margin-top: 1rem !important;
    }
}

/* Access note styling */
.access-note {
    color: #d4af37; /* gold */
    display: block; /* ensure it sits below the button */
    width: 100%;
    margin-top: 4rem; /* increased space from button */
    margin-bottom: 2rem; /* breathing room before promo */
    transition: transform 0.25s ease;
    animation: access-pulse 1.8s ease-in-out infinite;
} 

@keyframes access-pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 8px 14px rgba(212,175,55,0.12)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
}

@media (prefers-reduced-motion: reduce) {
    .access-note { animation: none; }
}

.access-note.small {
    font-size: 0.875rem;
}

/* Promotional block (Umbra Sumus) */
.promo-block {
    max-width: 720px;
    margin: 2.5rem auto 0; /* larger top gap from access note */
    padding: 1.25rem 1rem;
    /* removed left border for cleaner layout; use subtle top separator */
    border-top: 1px solid rgba(212,175,55,0.06);
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    color: #cfcfcf;
}

/* Join CTA column for landing page */
.join-card { padding: 0.5rem 0.5rem; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.2rem; }

/* Discord icon-only, prominent (straight, larger) - enforce purple, no gold */
.discord-btn { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 12px; background: linear-gradient(45deg,#5865f2,#4756d8) !important; color: #fff !important; box-shadow: 0 8px 24px rgba(87,101,255,0.18); font-size: 2.2rem; border: none; padding: 0; transform: none; }
.discord-btn .join-icon { font-size: 1.4em; color: #fff !important; }
.discord-btn:hover { transform: scale(1.06); box-shadow: 0 14px 36px rgba(87,101,255,0.28); }
.discord-btn:focus { outline: none; box-shadow: 0 0 0 0.25rem rgba(87,101,255,0.18); }

/* Move Discord icon further down and center in its column */
@media (min-width: 768px) {
    .join-card { margin-top: 4rem !important; }
    .discord-btn { width: 100px; height: 100px; font-size: 2.6rem; border-radius: 14px; transform: none; }
    /* place promo-block visually aligned to the right column by removing extra top spacing */
    .promo-block { margin-top: 0; }
}

@media (max-width: 767px) {
    .join-card { margin-top: 2rem !important; }
    .promo-block { margin-top: 1.75rem; padding: 1rem; }
    .access-note { margin-top: 2rem; margin-bottom: 1.5rem; text-align: center; }
    .discord-btn { width: 72px; height: 72px; font-size: 1.6rem; }
}

/* YouTube embed styles for landing page */
.youtube-container { margin-top: 1.5rem; text-align: center; }
.youtube-embed { width: 220px; max-width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; border: 1px solid rgba(255,255,255,0.04); background: #000; margin: 0 auto; display:flex; align-items:center; justify-content:center; box-sizing: border-box; }
.youtube-embed iframe { width: 100%; height: 100%; display: block; }
.youtube-fallback { display:inline-flex; align-items:center; gap:0.6rem; color:#fff; text-decoration:none; font-weight:700; padding:0.6rem 0.8rem; }
.youtube-fallback i { font-size:1.4rem; color:#ff0000; }
.youtube-link a { color: #cfcfcf; text-decoration: underline; }

/* Adjustments for mid-size responsive step to prevent overlaps and large buttons */
@media (max-width: 991.98px) and (min-width: 576px) {
    /* make hero buttons slightly more compact and consistent */
    .hero-card .btn.btn-outline-gold {
        padding-top: 0.45rem !important;
        padding-bottom: 0.45rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
    }
    .hero-card { min-height: 160px; }
    /* constrain youtube width so it never intrudes into promo column */
    .youtube-embed { width: 240px; max-width: 45%; }
    .join-card { gap: 1rem; }
    /* ensure promo block sits clearly below if space is tight */
    .promo-block { margin-top: 1.75rem; }
}

@media (min-width: 768px) {
    .youtube-embed { width: 320px; }
    .youtube-container { margin-top: 2rem; }
}
@media (max-width: 420px) {
    .youtube-embed { width: 180px; }
}

/* Slanted decorative 'Join now' tag under the Discord icon */
.join-card { position: relative; }
.join-tag { position: relative; transform: rotate(-15deg); pointer-events: none; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); padding: 4px 10px; border-radius: 4px; color: #fff; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; margin-top: 0.25rem; }
.join-tag .join-tag-text { display: inline-block; transform: none; }
@media (min-width: 768px) { .join-tag { font-size: 1rem; margin-top: 0.6rem; } }
@media (max-width: 576px) { .join-tag { font-size: 0.82rem; margin-top: 0.35rem; } }
.promo-heading {
    text-align: center;
    color: #d4af37; /* Umbra Sumus gold */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
}


.promo-block a { color: #d4af37; text-decoration: underline; }
.promo-block a:hover { color: #ffd700; }

/* Summary tiles styling (Umbra landing) */
.summary-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #e0e0e0 !important;
    border-radius: 8px;
}
.summary-card .stat-number {
    text-shadow: 0 0 10px rgba(212,175,55,0.12);
}
.summary-card .stat-label {
    color: #cfcfcf;
}
#umbra-summary-note {
    color: #9ca3af;
    font-size: 0.82rem;
}

/* Hero card (refined, adult look) */
.hero-card {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: #e0e0e0 !important;
    border-radius: 8px;
    box-shadow: none !important;
    transition: box-shadow 0.18s ease, transform 0.12s ease, border-color 0.12s ease;
}

/* Header branding and claims */
.header-brand {
    display: inline-flex;
    align-items: flex-end; /* align claim to bottom of logo */
    gap: 0.5rem; /* small gap to keep items close */
}
.header-claim {
    font-size: 0.95rem;
    font-weight: 600;
    color: #cfcfcf;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-left: 0.15rem;
    text-align: left;
}
.header-claim small {
    display: block;
    margin-top: 0.05rem;
    color: #9ca3af;
    font-weight: 400;
}

/* Landing-specific header color (beige like in the logo) */
.umbra-landing .header-claim,
.umbra-landing .header-main-claim { color: var(--ums-cream); }
.umbra-landing .header-claim small,
.umbra-landing .header-main-claim small { color: var(--ums-planet-light); opacity: 0.95; }
.header-logo {
    height: 86px; /* slightly smaller so text aligns better */
    width: auto;
    display: inline-block;
}
.header-main-claim { font-size: 0.95rem; }

/* Desktop: keep claim next to logo; Mobile: stack and center */
@media (max-width: 767px) {
    .header-main-claim { display: block; }
    .header-brand { justify-content: center; align-items: center; }
    /* Mobile claim should match desktop colors (cream + subtle planet-light for the small text) */
    .umbra-landing .header-main-claim.text-muted,
    .umbra-landing .header-main-claim.text-muted small {
        color: var(--ums-cream) !important;
    }
    .umbra-landing .header-main-claim.text-muted small { color: var(--ums-planet-light) !important; opacity: 0.95; }
}
@media (min-width: 768px) {
    .header-main-claim { display: none; }
}
.hero-card h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.hero-card .btn {
    font-weight: 600;
}
.hero-card .text-muted {
    color: #bfc3c7 !important;
}
.hero-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    transform: none;
    border-color: rgba(212,175,55,0.03);
}
.hero-logo {
    max-width: 120px;
    height: auto;
    display: block;
}
.hero-card .btn.btn-outline-gold {
    border-width: 1px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    max-width: 240px;
    margin: 0 auto;
    width: 100%;
}
.hero-card { min-height: 160px; }
/* Ensure the button does not shrink and sits at the bottom of the card */
.hero-card {
    display: flex !important;
    flex-direction: column !important;
}
.hero-card .mt-auto { margin-top: auto !important; }

/* Mobile: compact hero cards and smaller buttons for better fit and clarity */
@media (max-width: 576px) {
    .hero-card { min-height: 140px; padding: 1rem !important; }
    .hero-card h5 { font-size: 1rem; margin-bottom: 0.25rem; }
    .hero-card .text-muted { font-size: 0.85rem; }
    .hero-card .btn.btn-outline-gold {
        font-size: 0.92rem;
        min-height: 40px;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
        max-width: none;
    }
    .hero-card .hero-logo { max-width: 80px; }
    /* Slightly reduce overall internal padding of hero cards used in markup */
    .card.hero-card.h-100.p-4 { padding: 1rem !important; }
}

/* Live indicator and shimmer/update animations for summary tiles */
.live-indicator { display: inline-block; width: 8px; height: 8px; background-color: #10b981; border-radius: 50%; animation: live-pulse 2s ease-in-out infinite; margin-right: 0.5rem; box-shadow: 0 0 0 0 rgba(16,185,129,0.12); }
.live-indicator-dim { background-color: #9ca3af; animation-duration: 3s; box-shadow: 0 0 0 0 rgba(156,163,175,0.12); }
@keyframes live-pulse { 0%, 100% { opacity: 0.5; transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,0.0); } 50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 4px rgba(16,185,129,0.08); } }

/* one-shot pulse when actual update happens */
.stat-updated { animation: stat-pulse 1.2s cubic-bezier(.2,.9,.2,1) both; }
@keyframes stat-pulse { 0% { transform: scale(1); text-shadow: 0 0 8px rgba(255,255,255,0.12); } 40% { transform: scale(1.05); text-shadow: 0 0 20px rgba(255,215,0,0.22); } 100% { transform: scale(1); text-shadow: 0 0 8px rgba(255,255,255,0.12); } }

/* shimmer sweep for subtle live effect (non-intrusive) */
.summary-card.shimmer { position: relative; overflow: hidden; }
.summary-card.shimmer::after { content: ''; position: absolute; left: -45%; top: 0; height: 100%; width: 70%; background: linear-gradient(90deg, rgba(255,255,255,0.00), rgba(255,255,255,0.10), rgba(255,255,255,0.00)); transform: translateX(-100%); pointer-events: none; animation: shimmer-sweep 1.15s cubic-bezier(.2,.9,.2,1) both; }
@keyframes shimmer-sweep { 0% { transform: translateX(-100%); } 30% { transform: translateX(10%); } 100% { transform: translateX(220%); } }

/* Disable hover effects for the live summary tiles to keep them visually stable */
.summary-card:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    cursor: default !important;
    box-shadow: none !important;
    transform: none !important;
}




/* Warmer landing palette (Umbra) - scoped to .umbra-landing */
.umbra-landing {
    --ums-planet-light: #D64614; /* Tiefes Orange (Planetenhell) */
    --ums-planet-dark:  #8B1C0F; /* Dunkles Rot-Orange (Planetendunkel) */
    --ums-cream:        #F1E1B5; /* Cremiges Beige (Text-Akzent) */
    --ums-accent-strong: rgba(214,70,20,0.12);
    --ums-accent-subtle: rgba(214,70,20,0.04);

    /* Keep the existing moody background but explicit here */
    background: linear-gradient(135deg, #0a0a0a 0%, #141217 40%, #201520 100%);
    color: #e0e0e0;
}

/* Header / brand accents */
.umbra-landing .promo-heading { color: var(--ums-planet-light); text-shadow: 0 2px 6px rgba(214,70,20,0.06); }

/* Landing buttons: use cream as primary outline color and a stronger cream hover wash */
.umbra-landing .btn-outline-gold {
    color: var(--ums-cream) !important;
    border-color: rgba(241,225,181,0.36) !important; /* visible cream border */
    background: transparent !important;
}
.umbra-landing .btn-outline-gold:hover,
.umbra-landing .btn-outline-gold:focus {
    color: var(--ums-planet-dark) !important; /* darker text on hover for contrast */
    /* stronger cream wash so hover matches the new accent */
    background: rgba(241,225,181,0.16) !important; /* --ums-cream at higher opacity */
    border-color: var(--ums-cream) !important;
    box-shadow: 0 6px 14px rgba(139,28,15,0.06) !important;
}

/* Cards: warm subtle borders and hover glow */
.umbra-landing .hero-card,
.umbra-landing .summary-card {
    border-color: rgba(139,28,15,0.12) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.03)) !important;
}
.umbra-landing .hero-card:hover { border-color: var(--ums-accent-strong); box-shadow: 0 8px 22px rgba(139,28,15,0.06); }

/* Summary visuals */
.umbra-landing .summary-card .stat-number { text-shadow: 0 0 10px rgba(0,0,0,0.08); color: inherit !important; }
.umbra-landing .summary-card .stat-number.text-warning { color: var(--ums-planet-light) !important; text-shadow: 0 0 14px rgba(214,70,20,0.08); }
.umbra-landing .summary-card .stat-number.text-success { color: #10b981 !important; text-shadow: 0 0 12px rgba(16,185,129,0.06); }

/* Decorative elements */
.join-tag { background: rgba(214,70,20,0.06); border-color: rgba(139,28,15,0.06); color: var(--ums-planet-light); }
.youtube-embed { border-color: rgba(214,70,20,0.05); }
.umbra-landing .live-indicator { background-color: var(--ums-planet-light); box-shadow: 0 0 10px rgba(214,70,20,0.12); }

/* Landing-specific primary buttons: cream base, darker text for contrast */
.umbra-landing .btn-primary {
    background: linear-gradient(45deg, rgba(241,225,181,1), rgba(241,225,181,0.94)) !important;
    border: none !important;
    color: var(--ums-planet-dark) !important;
    font-weight: 700;
}
.umbra-landing .btn-primary:hover,
.umbra-landing .btn-primary:focus {
    background: rgba(241,225,181,0.98) !important;
    box-shadow: 0 6px 16px rgba(139,28,15,0.06) !important;
    transform: translateY(-1px);
}

/* Ensure Discord button keeps its brand look on the Landing page even though .btn-primary was changed */
.umbra-landing .discord-btn {
    background: linear-gradient(45deg,#5865f2,#4756d8) !important; /* Discord brand purple */
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(87,101,255,0.18) !important;
    border: none !important;
}
.umbra-landing .discord-btn .join-icon { color: #fff !important; }
.umbra-landing .discord-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 36px rgba(87,101,255,0.28) !important;
}

@media (prefers-reduced-motion: reduce) {
    .umbra-landing .btn-outline-gold, .umbra-landing .hero-card { transition: none !important; }
}

/* Language switch active state */
.language-switch .lang-btn { transition: box-shadow 0.15s ease, transform 0.08s ease; }
.language-switch .lang-btn.active img { box-shadow: 0 0 0 3px rgba(212,175,55,0.14); border-radius: 4px; }
.language-switch .lang-btn:focus { outline: none; transform: translateY(-1px); }

