/* ==========================================================================
   MC ADMIN - CLEAN WHITE BACKGROUND & BLACK TEXT DESIGN SYSTEM
   Standardized button sizing & typography, functional color coding
   ========================================================================== */

:root {
    /* Admin Clean White / Black Palette */
    --mc-bg: #f8f9fa;
    --mc-surface: #ffffff;
    --mc-surface-elevated: #f3f4f6;
    --mc-surface-card: #ffffff;
    --mc-border: #e5e7eb;
    --mc-border-light: #d1d5db;

    /* Typography colors for Admin */
    --mc-text: #111827;
    --mc-text-muted: #6b7280;
    --mc-text-dark: #111827;

    /* Accents & Statuses */
    --mc-diamond: #2563eb;
    --mc-gold: #d97706;
    --mc-redstone: #dc2626;
    --mc-green: #059669;
    --status-online: #16a34a;
    --status-offline: #dc2626;
    --status-unknown: #d97706;

    /* Typography & Metrics */
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "Consolas", "Courier New", Courier, monospace;
    --radius-sm: 4px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --shadow-block: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Landing Page Dark Scoping */
html.page-landing,
body.page-landing,
.page-landing {
    --mc-bg: #121212;
    --mc-surface: #1e1e1e;
    --mc-surface-elevated: #262626;
    --mc-surface-card: #1e1e1e;
    --mc-border: rgba(255, 255, 255, 0.12);
    --mc-border-light: rgba(255, 255, 255, 0.22);
    --mc-text: #ffffff;
    --mc-text-muted: rgba(255, 255, 255, 0.68);
    background-color: #121212 !important;
    background: #121212 !important;
    color: #ffffff !important;
    color-scheme: dark;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background-color: var(--mc-bg);
}

body {
    min-height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--mc-bg);
    color: var(--mc-text);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

/* Base Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.04);
}

.page-admin .app-container {
    border-left: 1px solid var(--mc-border);
    border-right: 1px solid var(--mc-border);
}

/* Admin App Header */
.app-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--mc-border);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
}

.brand-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111827;
    border: 1px solid #111827;
    border-radius: 4px;
    color: #ffffff;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #111827;
}

.brand-title span {
    color: #6b7280;
    font-weight: 400;
}

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

.user-badge {
    font-size: 0.85rem;
    color: var(--mc-text-muted);
}

.user-badge strong {
    color: #111827;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Flash Messages */
.flash-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash-message {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeIn 0.2s ease-in-out;
}

.flash-message.success {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.flash-message.error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.flash-message.info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Warning Banner */
.card-warning-banner {
    border-left: 4px solid #f59e0b;
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
    padding: 12px 14px;
}

.card-warning-banner strong {
    color: #92400e;
}

/* Single-Page Admin Grid Layout */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
    align-items: start;
}

.admin-main-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-side-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.count-chip {
    font-size: 0.75rem;
    background-color: #e5e7eb;
    color: #1f2937;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.containers-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cards */
.card {
    background-color: var(--mc-surface-card);
    border: 1px solid var(--mc-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-block);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mc-border);
    gap: 12px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.card-subtitle {
    font-size: 0.82rem;
    color: var(--mc-text-muted);
    margin-top: 2px;
}

.card-subtitle code {
    color: #111827;
    background-color: #f3f4f6;
    padding: 1px 5px;
    border-radius: 3px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--mc-border);
    font-size: 0.82rem;
    color: var(--mc-text-muted);
}

.card-actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
}

.badge-online {
    background-color: #16a34a;
    border-color: #15803d;
    color: #ffffff;
}

.badge-offline {
    background-color: #dc2626;
    border-color: #b91c1c;
    color: #ffffff;
}

.badge-dot {
    display: none !important;
}

/* Badge Color Variations */
.badge-gold {
    background-color: #d97706;
    border-color: #b45309;
    color: #ffffff;
}
.badge-gold .badge-dot {
    background-color: var(--mc-gold);
}

.badge-blue {
    background-color: #2563eb;
    border-color: #1d4ed8;
    color: #ffffff;
}
.badge-blue .badge-dot {
    background-color: #2563eb;
}

.badge-purple {
    background-color: #7c3aed;
    border-color: #6d28d9;
    color: #ffffff;
}
.badge-purple .badge-dot {
    background-color: #9333ea;
}

.badge-green {
    background-color: #16a34a;
    border-color: #15803d;
    color: #ffffff;
}
.badge-green .badge-dot {
    background-color: #10b981;
}

.badge-red {
    background-color: #dc2626;
    border-color: #b91c1c;
    color: #ffffff;
}
.badge-red .badge-dot {
    background-color: #ef4444;
}

.badge-gray {
    background-color: #4b5563;
    border-color: #374151;
    color: #ffffff;
}
.badge-gray .badge-dot {
    background-color: #64748b;
}

/* ==========================================================================
   BUTTONS: UNIFORM SIZE, TYPOGRAPHY & FUNCTIONAL COLOR CODING
   All admin buttons share exact height (38px), padding, font-size and weight.
   ========================================================================== */
.btn,
.btn-sm,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-action,
.btn-warning,
.btn-neutral,
.btn-edit,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    height: 38px;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    user-select: none;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* 1. Primary actions (Save, Add, Submit, Log in): Royal Blue */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.btn-primary:active {
    background-color: #1e40af;
    border-color: #1e40af;
}

/* 2. Action / Refresh / Activate whitelist: Emerald Green */
.btn-success,
.btn-action {
    background-color: #059669;
    border-color: #059669;
    color: #ffffff;
}

.btn-success:hover,
.btn-action:hover {
    background-color: #047857;
    border-color: #047857;
    color: #ffffff;
}

.btn-success:active,
.btn-action:active {
    background-color: #065f46;
    border-color: #065f46;
}

/* 3. Feature / Main Server mark: Amber Gold */
.btn-warning {
    background-color: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #b45309;
    border-color: #b45309;
    color: #ffffff;
}

.btn-warning:active {
    background-color: #92400e;
    border-color: #92400e;
}

/* 4. Edit / Rename: Slate Gray */
.btn-neutral,
.btn-edit {
    background-color: #4b5563;
    border-color: #4b5563;
    color: #ffffff;
}

.btn-neutral:hover,
.btn-edit:hover {
    background-color: #374151;
    border-color: #374151;
    color: #ffffff;
}

.btn-neutral:active,
.btn-edit:active {
    background-color: #1f2937;
    border-color: #1f2937;
}

/* 5. Danger / Delete / Deactivate whitelist: Crimson Red */
.btn-danger {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

.btn-danger:active {
    background-color: #991b1b;
    border-color: #991b1b;
}

/* 6. Secondary / Cancel / Logout / Auxiliary: Neutral Light Gray with Dark Text */
.btn-secondary,
.btn-logout {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

.btn-secondary:hover,
.btn-logout:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
}

.btn-secondary:active,
.btn-logout:active {
    background-color: #d1d5db;
    border-color: #6b7280;
}

/* Sizing modifiers: Keep height 38px for all, icon-only is square */
.btn-icon-only {
    width: 38px;
    min-width: 38px;
    padding: 0;
    flex-shrink: 0;
}

.btn-block {
    width: 100%;
}

/* Whitelist Section */
.whitelist-section {
    background-color: #f9fafb;
    border: 1px solid var(--mc-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whitelist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whitelist-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}

.whitelist-toggle-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whitelist-status-pill {
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.whitelist-on {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.whitelist-off {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Player List & Chips */
.players-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.player-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.88rem;
    color: #111827;
    transition: background-color 0.15s;
}

.player-chip:hover {
    background-color: #f3f4f6;
}

.player-chip .player-name {
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
}

.player-remove-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #dc2626;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    font-weight: bold;
    transition: all 0.15s;
}

.player-remove-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.player-add-form {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

/* Console & Logs Accordion */
.console-logs-details {
    background-color: #f9fafb;
    border: 1px solid var(--mc-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.console-logs-summary {
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f3f4f6;
    user-select: none;
    transition: background-color 0.15s;
}

.console-logs-summary:hover {
    background-color: #e5e7eb;
}

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

.summary-toggle-label {
    font-size: 0.75rem;
    color: var(--mc-text-muted);
    font-weight: normal;
}

.console-logs-content {
    padding: 14px;
    border-top: 1px solid var(--mc-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
}

.quick-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-cmd-btn {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.quick-cmd-btn:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.terminal-body {
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.45;
    color: #f1f5f9;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 4px;
    max-height: 220px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Forms & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    min-height: 38px;
    height: 38px;
    padding: 8px 12px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #111827;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
    background-color: #ffffff;
}

textarea.form-control {
    height: auto;
    min-height: 72px;
}

/* Detected Containers & Edit Boxes */
.detected-containers-box,
.custom-badge-config-box,
.inline-edit-box {
    background-color: #f9fafb;
    border: 1px solid var(--mc-border);
    border-radius: 4px;
    padding: 12px;
}

.detected-chip {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.detected-chip:hover {
    background-color: #f3f4f6;
    border-color: #2563eb;
    color: #2563eb;
}

/* Login Page Styling */
.login-wrap {
    margin: auto;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-card {
    background-color: var(--mc-surface-card);
    border: 1px solid var(--mc-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.login-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}

.forgot-box {
    background-color: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.85rem;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forgot-box strong,
.forgot-box span {
    color: #111827;
}

/* Responsive Grids & Media Queries */
@media (max-width: 960px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .main-content {
        padding: 24px;
    }
    .app-header {
        padding: 14px 28px;
    }
}

/* SVG Icon Helper */
.icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Landing Page Container & Main Overrides */
.app-container-landing,
.page-landing .app-container {
    background-color: #121212 !important;
    background: #121212 !important;
    box-shadow: none !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 36px 44px 54px 44px;
    padding-bottom: max(54px, env(safe-area-inset-bottom, 36px));
    max-width: 960px;
    box-sizing: border-box;
}

.main-content-landing,
.page-landing .main-content {
    background-color: #121212 !important;
    background: #121212 !important;
    padding: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Landing / Splash Page Card Layout */
.landing-wrap {
    width: 100%;
    max-width: 860px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-headline {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 #000;
    line-height: 1.25;
    margin: 0;
    z-index: 3;
}

.landing-card {
    background-color: var(--mc-surface-card);
    border: 2px solid var(--mc-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-block);
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 30px 36px 28px 28px;
    box-sizing: border-box;
    overflow: visible;
    transition: border-color 0.2s;
}

.landing-body {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end; /* Logo anchored in the lower left of card */
    gap: 32px;
    position: relative;
    box-sizing: border-box;
}

.landing-logo-wrap {
    flex-shrink: 0;
    width: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-left: -58px;   /* Sitter i kanten och sticker ut till vänster */
    margin-bottom: -68px; /* Underkanten på kroppen i linje med kortet, handen sticker ut nedanför */
}

.landing-logo-img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    object-position: bottom left;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.85));
    display: block;
    user-select: none;
    pointer-events: none;
    transform: none !important;
    transition: none !important;
}

.landing-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    z-index: 2;
    width: 100%;
}


.landing-message {
    font-size: 1.05rem;
    color: #d1d5db;
    line-height: 1.6;
    max-width: 520px;
    white-space: pre-wrap;
    word-break: break-word;
}

.landing-status-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 4px;
}

.landing-status-badge {
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
}

.landing-servers {
    margin-top: 6px;
    width: 100%;
    border-top: 1px solid var(--mc-border);
    padding-top: 14px;
}

.landing-servers-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--mc-text-muted);
    margin-bottom: 8px;
}

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

.landing-server-badge {
    width: auto !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}

.btn-discord {
    background-color: #5865F2;
    border-color: #4752C4;
    color: #fff !important;
    font-weight: 700;
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 0 #3b429f;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background-color 0.15s, transform 0.1s;
}

.btn-discord:hover {
    background-color: #4752C4;
}

.btn-discord:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #3b429f;
}

/* Live Polling Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #16241b;
    border: 1px solid var(--mc-border);
    padding: 2px 7px;
    border-radius: 10px;
}

.live-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--status-online);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--status-online);
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.25);
        opacity: 1;
        box-shadow: 0 0 8px var(--status-online);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Landing Card for Tablet & Mobile */
@media (max-width: 768px) {
    .app-container-landing {
        padding: 28px 36px;
    }
    .landing-card {
        padding: 26px 24px 24px 20px;
        gap: 16px;
    }
    .landing-body {
        gap: 20px;
    }
    .landing-logo-wrap {
        width: 185px;
        margin-left: -44px;   /* Sticker ut till vänster */
        margin-bottom: -54px; /* Underkanten på kroppen i linje med kortet */
    }
    .landing-logo-img {
        max-height: 230px;
    }
    .landing-headline {
        font-size: 1.55rem;
    }
    .landing-message {
        font-size: 0.95rem;
    }
}

@media (max-width: 580px) {
    .app-container-landing,
    .page-landing .app-container {
        padding: 24px 28px 56px 28px;
        padding-bottom: max(56px, env(safe-area-inset-bottom, 36px));
    }
    .landing-card {
        padding: 20px 18px 18px 16px;
        gap: 14px;
    }
    .landing-body {
        gap: 14px;
        align-items: flex-end;
    }
    .landing-logo-wrap {
        width: 140px;
        margin-left: -34px;   /* Sticker ut till vänster */
        margin-bottom: -44px; /* Underkanten på kroppen i linje med kortet */
    }
    .landing-logo-img {
        max-height: 185px;
    }
    .landing-headline {
        font-size: 1.35rem;
    }
    .landing-message {
        font-size: 0.88rem;
    }
    .landing-status-row {
        gap: 8px 10px;
    }
    .landing-status-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
        white-space: nowrap;
        word-break: keep-all;
    }
    .btn-discord {
        padding: 10px 18px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    .landing-servers-title {
        font-size: 0.72rem;
    }
    .landing-server-badge {
        font-size: 0.8rem !important;
        padding: 4px 8px !important;
    }
}

@media (max-width: 400px) {
    .app-container-landing,
    .page-landing .app-container {
        padding: 18px 20px 48px 20px;
        padding-bottom: max(48px, env(safe-area-inset-bottom, 28px));
    }
    .landing-card {
        padding: 16px 14px 14px 12px;
        gap: 10px;
    }
    .landing-body {
        gap: 10px;
        align-items: flex-end;
    }
    .landing-logo-wrap {
        width: 110px;
        margin-left: -24px;   /* Sticker ut till vänster */
        margin-bottom: -36px; /* Underkanten på kroppen i linje med kortet */
    }
    .landing-logo-img {
        max-height: 145px;
    }
    .landing-headline {
        font-size: 1.15rem;
    }
    .landing-message {
        font-size: 0.82rem;
    }
    .landing-status-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
        white-space: nowrap;
        word-break: keep-all;
    }
}

/* Mobile & Portrait Optimizations */
@media (max-width: 600px) {
    .containers-grid {
        grid-template-columns: 1fr;
    }
    .nav-link {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    .main-content {
        padding: 12px;
    }
    .card {
        padding: 14px;
    }
}
