/* LiteByte Tools */

.tools-page {
    background: var(--dark-bg);
}

.tools-hero {
    padding: 2.5rem 0 2rem;
    background: linear-gradient(180deg, rgba(62, 207, 142, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tools-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--lb-accent-muted, rgba(62, 207, 142, 0.1));
    border: 1px solid var(--lb-accent-border, rgba(62, 207, 142, 0.28));
    color: var(--lb-accent, #3ecf8e);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tools-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.tools-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0;
}

.tools-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.tools-breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tools-breadcrumb a:hover {
    color: var(--lb-accent, #3ecf8e);
}

.tools-breadcrumb span {
    color: rgba(255, 255, 255, 0.35);
}

.tools-breadcrumb strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.tools-section {
    padding: 2.5rem 0 4rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tool-card:hover {
    border-color: var(--lb-accent-border, rgba(62, 207, 142, 0.28));
    background: rgba(62, 207, 142, 0.05);
    transform: translateY(-3px);
    color: inherit;
}

.tool-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--lb-accent-muted, rgba(62, 207, 142, 0.1));
    color: var(--lb-accent, #3ecf8e);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tool-card__category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.35rem;
}

.tool-card h3,
.tool-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #fff;
}

.tools-seo-copy {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.tools-seo-copy h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: #fff;
}

.tools-seo-copy p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.6;
}

.tools-seo-copy__list {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
}

.tools-seo-copy__list li + li {
    margin-top: 0.45rem;
}

.tools-seo-copy__list strong {
    color: rgba(255, 255, 255, 0.88);
}

.tools-seo-copy code {
    font-size: 0.85em;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.tool-api {
    margin-top: 2rem;
    display: grid;
    gap: 0.85rem;
}

.tool-api__head-text {
    max-width: 760px;
}

.tool-api__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.tool-api__title i {
    color: var(--lb-accent, #3ecf8e);
}

.tool-api__intro {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.tool-api__card {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.tool-api__card--example,
.tool-api__card--docs {
    background: rgba(0, 0, 0, 0.16);
}

.tool-api__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.tool-api__key-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.tool-api__key {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
    color: #e2e8f0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.82rem;
    line-height: 1.4;
    word-break: break-all;
}

.tool-api__key-note {
    margin: 0.55rem 0 0.85rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.48);
}

.tool-api__limits {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
    line-height: 1.55;
}

.tool-api__limits li + li {
    margin-top: 0.35rem;
}

.tool-api__limits strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.tool-api__subtitle {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.tool-api__example-note,
.tool-api__docs {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

.tool-api__code {
    margin: 0 0 0.65rem;
    padding: 0.85rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.32);
    overflow-x: auto;
}

.tool-api__code code {
    display: block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #dbeafe;
    white-space: pre-wrap;
    word-break: break-word;
}

.tool-api__code--compact code {
    font-size: 0.8rem;
}

.tool-seo {
    margin-top: 1rem;
    padding: 1.5rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(62, 207, 142, 0.07), transparent 55%),
        rgba(255, 255, 255, 0.02);
}

.tool-seo__header {
    max-width: 720px;
    margin-bottom: 1.35rem;
}

.tool-seo__title {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.tool-seo__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
}

.tool-seo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.tool-seo__block {
    padding: 1rem 1.05rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.18);
}

.tool-seo__block h3 {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
}

.tool-seo__block p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.58);
}

.tool-seo__block p + p {
    margin-top: 0.65rem;
}

.tool-seo__faq {
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tool-seo__faq-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.tool-seo__faq-list {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.tool-seo__faq-item {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.tool-seo__faq-item dt {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.tool-seo__faq-item dd {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 640px) {
    .tool-seo {
        padding: 1.15rem 1rem;
    }

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

.tool-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.62);
    margin: 0 0 1rem;
    flex: 1;
    line-height: 1.5;
}

.tool-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lb-accent, #3ecf8e);
}

.tool-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.tool-panel h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #fff;
}

.tool-form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .tool-form-row {
        grid-template-columns: 1fr;
    }
}

.tool-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.4rem;
}

.tool-input,
.tool-textarea,
.tool-select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.tool-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.tool-select option {
    background: #0f172a;
    color: #fff;
}

.tool-select-wrap {
    position: relative;
}

.tool-select-wrap::after {
    content: '\ea4e';
    font-family: 'remixicon';
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    line-height: 1;
}

.tool-select-wrap:hover .tool-select {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.32);
}

.tool-select-wrap:focus-within::after {
    color: var(--lb-accent, #3ecf8e);
}

.tool-input:focus,
.tool-textarea:focus,
.tool-select:focus {
    outline: none;
    border-color: var(--lb-accent-border, rgba(62, 207, 142, 0.4));
}

.tool-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--lb-accent-soft, #2eb87a), #268f5e);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    white-space: nowrap;
}

.tool-btn:hover {
    background: linear-gradient(135deg, var(--lb-accent, #3ecf8e), var(--lb-accent-soft, #2eb87a));
    color: #fff;
    box-shadow: 0 4px 16px var(--lb-accent-glow, rgba(46, 184, 122, 0.22));
}

.tool-btn:active {
    filter: brightness(0.95);
}

.tool-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tool-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
}

.tool-btn--compact {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 8px;
    gap: 0.35rem;
}

.tool-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.tool-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.tool-alert--success {
    background: rgba(62, 207, 142, 0.1);
    border: 1px solid var(--lb-accent-border);
    color: #86efac;
}

.tool-alert--info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.tool-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.tool-stat {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tool-stat__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tool-stat__value {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}

.tool-stat__value--online {
    color: #4ade80;
}

.tool-stat__value--offline {
    color: #f87171;
}

.motd-preview {
    padding: 1.25rem;
    border-radius: 10px;
    background: #2d2d2d;
    border: 3px solid #1a1a1a;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    line-height: 1.45;
    min-height: 80px;
    word-break: break-word;
}

.motd-preview--server-list {
    text-align: center;
}

.motd-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.motd-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.motd-swatch:hover {
    transform: scale(1.1);
}

.motd-format-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.motd-format-btn {
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
}

.motd-format-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mc-black { color: #000000; }
.mc-dark_blue { color: #0000AA; }
.mc-dark_green { color: #00AA00; }
.mc-dark_aqua { color: #00AAAA; }
.mc-dark_red { color: #AA0000; }
.mc-dark_purple { color: #AA00AA; }
.mc-gold { color: #FFAA00; }
.mc-minecoin_gold { color: #DDD605; }
.mc-gray { color: #AAAAAA; }
.mc-dark_gray { color: #555555; }
.mc-blue { color: #5555FF; }
.mc-green { color: #55FF55; }
.mc-aqua { color: #55FFFF; }
.mc-red { color: #FF5555; }
.mc-light_purple { color: #FF55FF; }
.mc-yellow { color: #FFFF55; }
.mc-white { color: #FFFFFF; }
.mc-bold { font-weight: bold; }
.mc-italic { font-style: italic; }
.mc-underline { text-decoration: underline; }
.mc-strikethrough { text-decoration: line-through; }
.mc-obfuscated {
    background: linear-gradient(90deg, #fff 0%, #888 50%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: mcObf 0.5s linear infinite;
}

@keyframes mcObf {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
}

.color-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    text-align: left;
}

.color-chip:hover {
    border-color: var(--lb-accent-border);
    background: var(--lb-accent-muted);
}

.color-chip__swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.color-chip__code {
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.color-chip__name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Color code generator */
.cc-panel {
    padding: 1.25rem;
}

.cc-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cc-block {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.cc-subsection--formats {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cc-block__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.cc-block__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cc-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.45rem;
}

.cc-editor {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    resize: vertical;
}

.cc-preview {
    margin-top: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 1.75rem;
    font-size: 0.95rem;
}

.cc-preview--effect {
    min-height: 2rem;
    margin-bottom: 0.55rem;
}

.cc-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 0.3rem;
}

.cc-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.cc-color:hover {
    border-color: var(--lb-accent-border, rgba(62, 207, 142, 0.28));
    background: var(--lb-accent-muted, rgba(62, 207, 142, 0.1));
    transform: translateY(-1px);
}

.cc-color__dot {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.35);
}

.cc-color__code {
    font-family: monospace;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.55);
}

.cc-formats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 0.35rem;
}

.cc-format {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-height: 0;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cc-format:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.cc-format__code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.cc-format__name {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.2;
}

.cc-format--bold .cc-format__name {
    font-weight: 700;
}

.cc-format--italic .cc-format__name {
    font-style: italic;
}

.cc-format--underline .cc-format__name {
    text-decoration: underline;
}

.cc-format--strikethrough .cc-format__name {
    text-decoration: line-through;
}

.cc-effect-input {
    margin-bottom: 0.75rem;
}

.cc-effect-tabs {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.cc-effect-tab {
    padding: 0.45rem 0.85rem;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.cc-effect-tab:last-child {
    border-right: 0;
}

.cc-effect-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.cc-effect-tab.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--lb-accent, #3ecf8e);
}

.cc-effect-panel {
    display: none;
    margin-bottom: 0.75rem;
}

.cc-effect-panel.is-active {
    display: block;
}

.cc-color-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.cc-color-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.cc-color-picker input[type="color"] {
    width: 42px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.cc-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
}

.cc-preset {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.cc-preset:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.cc-preset__bar {
    width: 24px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.cc-preset__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-effect-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

.cc-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.cc-effect-output {
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-output {
    width: 100%;
    min-height: 3.5rem;
    margin-bottom: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    resize: vertical;
}

.cc-effect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

@media (max-width: 720px) {
    .cc-presets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.player-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(62, 207, 142, 0.1);
    border: 1px solid var(--lb-accent-border);
    color: #fff;
    font-size: 0.875rem;
}

.dns-output {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* DNS generator */
.dns-generator {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dns-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dns-form-section {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dns-form-section__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.dns-form-section__lead {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
}

.dns-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.dns-field--wide {
    grid-column: 1 / -1;
}

.dns-field__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.3rem;
}

.dns-field__optional {
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.38);
    margin-left: 0.35rem;
}

.dns-field__hint {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.48);
}

.dns-field__hint code {
    font-size: 0.78rem;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
}

.dns-field--toggle {
    display: flex;
    align-items: stretch;
}

.dns-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dns-toggle:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.28);
}

.dns-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.dns-toggle__box {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dns-toggle input:checked + .dns-toggle__box {
    border-color: var(--lb-accent-border, rgba(62, 207, 142, 0.5));
    background: var(--lb-accent-muted, rgba(62, 207, 142, 0.2));
}

.dns-toggle input:checked + .dns-toggle__box::after {
    content: '';
    position: absolute;
    left: 0.28rem;
    top: 0.12rem;
    width: 0.28rem;
    height: 0.55rem;
    border: solid var(--lb-accent, #3ecf8e);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dns-toggle__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.dns-toggle__text strong {
    font-size: 0.86rem;
    color: #fff;
}

.dns-toggle__text small {
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.48);
}

.dns-toggle__text code {
    font-size: 0.74rem;
}

.dns-form-actions {
    margin-top: 1.25rem;
}

.dns-generator-output__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.dns-generator-output__head h2 {
    margin: 0;
}

.dns-generator-output__head .tool-panel__lead {
    margin-bottom: 0;
}

.dns-generator-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 180px;
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.55);
}

.dns-generator-empty i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.22);
}

.dns-generator-empty p {
    margin: 0;
    max-width: 26rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dns-generator-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dns-connect-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.dns-connect-summary__item {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(62, 207, 142, 0.08);
    border: 1px solid rgba(62, 207, 142, 0.2);
}

.dns-connect-summary__label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 0.35rem;
}

.dns-connect-summary__item code {
    display: block;
    font-size: 0.92rem;
    color: #fff;
    word-break: break-all;
}

.dns-record-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dns-record-card {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dns-record-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.dns-record-card__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    min-width: 0;
}

.dns-record-card__title strong {
    color: #fff;
    font-size: 0.92rem;
}

.dns-record-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6afaa6;
    background: rgba(62, 207, 142, 0.12);
    border: 1px solid rgba(62, 207, 142, 0.28);
}

.dns-record-card__rows {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dns-record-row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dns-record-row dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.dns-record-row dt span {
    display: block;
    margin-top: 0.15rem;
    font-weight: 400;
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.4);
}

.dns-record-row dd {
    margin: 0;
    min-width: 0;
}

.dns-record-row dd code {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #e2e8f0;
    word-break: break-all;
}

@media (max-width: 768px) {
    .dns-form-grid,
    .dns-connect-summary {
        grid-template-columns: 1fr;
    }

    .dns-record-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .dns-generator-output__head {
        flex-direction: column;
    }
}

.tool-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .tool-split {
        grid-template-columns: 1fr;
    }
}

.tool-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.tool-loading i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RAM calculator */
.ram-calculator {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}

.ram-calculator-section {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ram-calculator-section + .ram-calculator-section {
    margin-top: 1rem;
}

.ram-calculator-section__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.ram-calculator-section__lead {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
}

.ram-slider {
    padding: 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ram-slider + .ram-slider {
    margin-top: 0.65rem;
}

.ram-slider__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ram-slider__intro {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.ram-slider__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    flex-shrink: 0;
    color: var(--lb-accent, #3ecf8e);
    background: rgba(62, 207, 142, 0.1);
    border: 1px solid rgba(62, 207, 142, 0.2);
    font-size: 1rem;
}

.ram-slider__label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.15rem;
}

.ram-slider__hint {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.45);
}

.ram-slider__value {
    flex-shrink: 0;
    min-width: 2.5rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ram-slider input[type="range"] {
    --fill: 50%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--lb-accent, #3ecf8e) 0%,
        var(--lb-accent-soft, #2eb87a) var(--fill),
        rgba(255, 255, 255, 0.1) var(--fill),
        rgba(255, 255, 255, 0.1) 100%
    );
    outline: none;
    cursor: pointer;
}

.ram-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 0;
    border-radius: 50%;
    border: 2px solid var(--lb-accent, #3ecf8e);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(62, 207, 142, 0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ram-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--lb-accent, #3ecf8e);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(62, 207, 142, 0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ram-slider input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: transparent;
}

.ram-slider input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 0 5px rgba(62, 207, 142, 0.22);
}

.ram-slider input[type="range"]:hover::-moz-range-thumb {
    transform: scale(1.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 0 5px rgba(62, 207, 142, 0.22);
}

.ram-slider input[type="range"]:focus-visible {
    outline: none;
}

.ram-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.25), 0 0 0 7px rgba(62, 207, 142, 0.18);
}

.ram-slider__scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
}

.ram-calculator-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.ram-field__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.3rem;
}

.ram-field__hint {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.45);
}

.ram-calculator-result {
    position: sticky;
    top: 1rem;
    overflow: hidden;
}

.ram-calculator-result__hero {
    position: relative;
    text-align: center;
    padding: 1.75rem 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(62, 207, 142, 0.2);
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(62, 207, 142, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.22));
}

.ram-calculator-result__glow {
    position: absolute;
    inset: auto 20% 8%;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(62, 207, 142, 0.35), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.ram-calculator-result__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.48);
}

.ram-calculator-result__amount {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 24px rgba(62, 207, 142, 0.35);
}

.ram-calculator-result__label {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.62);
}

.ram-calculator-result__minimum {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.ram-calculator-breakdown {
    margin-top: 1.25rem;
}

.ram-calculator-breakdown h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.ram-calculator-breakdown__lead {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.48);
}

.ram-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ram-breakdown-row {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ram-breakdown-row__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.ram-breakdown-row__label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
}

.ram-breakdown-row__value {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.ram-breakdown-row__bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ram-breakdown-row__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lb-accent-soft, #2eb87a), var(--lb-accent, #3ecf8e));
    transition: width 0.25s ease;
}

.ram-breakdown-row--total {
    margin-top: 0.25rem;
    border-color: rgba(62, 207, 142, 0.25);
    background: rgba(62, 207, 142, 0.08);
}

.ram-breakdown-row--total .ram-breakdown-row__label,
.ram-breakdown-row--total .ram-breakdown-row__value {
    color: #fff;
}

.ram-calculator-note {
    margin-top: 1.25rem;
}

.ram-calculator-cta {
    margin-top: 1rem;
    text-decoration: none;
    display: inline-flex;
}

@media (max-width: 960px) {
    .ram-calculator {
        grid-template-columns: 1fr;
    }

    .ram-calculator-result {
        position: static;
    }
}

@media (max-width: 640px) {
    .ram-calculator-fields {
        grid-template-columns: 1fr;
    }

    .ram-slider__header {
        flex-direction: column;
    }

    .ram-slider__value {
        align-self: flex-start;
    }
}

.icon-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    box-sizing: border-box;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.icon-dropzone__title {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.icon-dropzone__hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.icon-converter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.icon-converter-stage {
    width: 100%;
}

.icon-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    box-sizing: border-box;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.icon-result:hover {
    border-color: var(--lb-accent-border);
    background: var(--lb-accent-muted);
}

.icon-result canvas {
    width: 128px;
    height: 128px;
    border-radius: 4px;
    image-rendering: pixelated;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.icon-result__hint {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.icon-dropzone:hover,
.icon-dropzone.is-dragover {
    border-color: var(--lb-accent-border);
    background: var(--lb-accent-muted);
}

.icon-dropzone i {
    font-size: 2.5rem;
    color: var(--lb-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.tool-hidden {
    display: none !important;
}

.tool-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tool-tab {
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tool-tab.is-active,
.tool-tab:hover {
    background: var(--lb-accent-muted, rgba(62, 207, 142, 0.1));
    border-color: var(--lb-accent-border);
    color: #fff;
}

.tool-chip {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tool-chip:hover {
    background: var(--lb-accent-muted);
    border-color: var(--lb-accent-border);
}

.tool-recent {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tool-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.tool-meta-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

.tool-line-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.tool-line-stat {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
}

.tool-line-stat--warn {
    border-color: rgba(251, 191, 36, 0.35);
    color: #fcd34d;
}

.tool-record-card {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
}

.tool-record-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tool-record-card__head strong {
    color: #fff;
    font-size: 0.9rem;
}

.tool-record-card code {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.25rem;
    word-break: break-all;
}

.player-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 0.75rem 0;
}

.player-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lb-accent-soft), var(--lb-accent));
    border-radius: 999px;
    transition: width 0.3s ease;
}

.server-icon-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.server-icon-row img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    image-rendering: pixelated;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.tool-search {
    margin-bottom: 1rem;
}

.uuid-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.uuid-profile img {
    border-radius: 8px;
    image-rendering: pixelated;
}

.tool-panel__lead {
    margin: -0.35rem 0 1.25rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    line-height: 1.55;
}

.player-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 1.25rem;
}

/* Player lookup — hero layout with 3D viewer */
.player-lookup-panel {
    overflow: hidden;
}

.player-lookup-results {
    margin-top: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(62, 207, 142, 0.12), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
    position: relative;
}

.player-lookup-results--loading {
    min-height: 260px;
}

.player-lookup-results__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 260px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.player-lookup-results__loading i {
    font-size: 1.75rem;
    animation: lb-spin 1s linear infinite;
    color: var(--lb-accent, #3ecf8e);
}

.player-lookup-results--loading .player-lookup-results__content {
    display: none;
}

.player-lookup-results:not(.player-lookup-results--loading) .player-lookup-results__loading {
    display: none;
}

.player-lookup-results__content {
    padding: 1rem;
}

.player-lookup-hero__main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.player-lookup-hero__side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.player-lookup-hero__identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-lookup-hero__identity-text {
    flex: 1;
    min-width: 0;
}

.player-lookup-hero__downloads {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
}

.player-lookup-hero__downloads .tool-btn {
    white-space: nowrap;
}

.player-lookup-hero__avatar {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    image-rendering: pixelated;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .player-lookup-hero__downloads {
        width: 100%;
        margin-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .player-lookup-hero__downloads .tool-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.player-lookup-hero__name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.player-lookup-hero__uuid {
    margin: 0.25rem 0 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    word-break: break-all;
    line-height: 1.35;
}

.player-lookup-viewer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.player-lookup-viewer__stage {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(62, 207, 142, 0.14), transparent 55%),
        linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.3);
}

.player-lookup-viewer__stage canvas {
    display: block;
    width: 100%;
    height: 300px;
    cursor: grab;
}

.player-lookup-viewer__stage canvas:active {
    cursor: grabbing;
}

.player-lookup-viewer__glow {
    position: absolute;
    inset: auto 10% 8%;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(62, 207, 142, 0.35), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.player-lookup-viewer__hint {
    margin: 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.42);
}

/* 5 cards: 3 equal on row 1, 2 equal on row 2 */
.player-lookup-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
}

.player-lookup-stat {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.player-lookup-stat:nth-child(1),
.player-lookup-stat:nth-child(2),
.player-lookup-stat:nth-child(3) {
    grid-column: span 2;
}

.player-lookup-stat:nth-child(4),
.player-lookup-stat:nth-child(5) {
    grid-column: span 3;
}

.player-lookup-stat__label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.2rem;
}

.player-lookup-stat__value {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

/* 5 buttons: 3 on row 1, 2 on row 2 — same proportions as stats */
.player-lookup-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
}

.player-lookup-actions .tool-btn,
.player-lookup-actions a.tool-btn {
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

#copyPlayerUsername { grid-column: 1 / span 2; }
#copyPlayerUuid { grid-column: 3 / span 2; }
#copyPlayerUuidCompact { grid-column: 5 / span 2; }
#copyPlayerSkinUrl { grid-column: 1 / span 3; }
#playerLookupNameMcLink { grid-column: 4 / span 3; }

.player-lookup-actions--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-lookup-actions--four #copyPlayerUsername,
.player-lookup-actions--four #copyPlayerUuid,
.player-lookup-actions--four #copyPlayerUuidCompact,
.player-lookup-actions--four #playerLookupNameMcLink {
    grid-column: auto;
}

.player-lookup-actions .tool-hidden {
    display: none;
}

.player-lookup-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.player-lookup-section__head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.player-lookup-section__lead {
    margin: 0.4rem 0 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.5;
}

.player-lookup-section__loading {
    margin-top: 0.9rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

.player-lookup-section__loading i {
    animation: lb-spin 1s linear infinite;
    margin-right: 0.35rem;
}

.player-lookup-section__empty {
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.player-lookup-section__note {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.player-lookup-servers {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.player-lookup-server {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.player-lookup-server__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.player-lookup-server.is-online .player-lookup-server__icon {
    color: var(--lb-accent, #3ecf8e);
    background: rgba(62, 207, 142, 0.12);
}

.player-lookup-server.is-offline .player-lookup-server__icon {
    color: rgba(248, 113, 113, 0.9);
    background: rgba(248, 113, 113, 0.1);
}

.player-lookup-server__body {
    min-width: 0;
    flex: 1;
}

.player-lookup-server__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.player-lookup-server__name {
    font-size: 0.98rem;
    color: #fff;
}

.player-lookup-server__status {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
}

.player-lookup-server.is-online .player-lookup-server__status {
    color: var(--lb-accent, #3ecf8e);
}

.player-lookup-server.is-offline .player-lookup-server__status {
    color: rgba(248, 113, 113, 0.85);
}

.player-lookup-server__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.player-lookup-server__meta code {
    font-family: 'Consolas', 'Monaco', monospace;
    color: rgba(255, 255, 255, 0.72);
}

.player-lookup-server__motd {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.4;
}

.player-lookup-server__version {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.player-lookup-server__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.45rem;
    font-size: 0.78rem;
}

.player-lookup-server__links a {
    color: var(--lb-accent, #3ecf8e);
    text-decoration: none;
}

.player-lookup-server__links a:hover {
    text-decoration: underline;
}

@keyframes lb-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
    .player-lookup-hero__main {
        grid-template-columns: 1fr;
    }

    .player-lookup-viewer__stage canvas {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .player-lookup-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-lookup-stat:nth-child(1),
    .player-lookup-stat:nth-child(2),
    .player-lookup-stat:nth-child(3),
    .player-lookup-stat:nth-child(4),
    .player-lookup-stat:nth-child(5) {
        grid-column: auto;
    }

    .player-lookup-stat:last-child:nth-child(5) {
        grid-column: 1 / -1;
    }

    .player-lookup-actions,
    .player-lookup-actions--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-lookup-actions #copyPlayerUsername,
    .player-lookup-actions #copyPlayerUuid,
    .player-lookup-actions #copyPlayerUuidCompact,
    .player-lookup-actions #copyPlayerSkinUrl,
    .player-lookup-actions #playerLookupNameMcLink {
        grid-column: auto;
    }

    .player-lookup-actions #playerLookupNameMcLink:last-child:nth-child(5) {
        grid-column: 1 / -1;
    }

    .player-lookup-actions--four #playerLookupNameMcLink {
        grid-column: 1 / -1;
    }
}

/* Minecraft skin downloader */
.skin-download-results {
    margin-top: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(ellipse 80% 60% at 80% 0%, rgba(62, 207, 142, 0.1), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
    position: relative;
}

.skin-download-results--loading {
    min-height: 220px;
}

.skin-download-results__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 220px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.skin-download-results__loading i {
    font-size: 1.75rem;
    animation: lb-spin 1s linear infinite;
    color: var(--lb-accent, #3ecf8e);
}

.skin-download-results--loading .skin-download-results__content {
    display: none;
}

.skin-download-results:not(.skin-download-results--loading) .skin-download-results__loading {
    display: none;
}

.skin-download-results__content {
    padding: 1rem;
}

.skin-download-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.skin-download-preview {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.skin-download-preview__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skin-download-preview__card img {
    image-rendering: pixelated;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
}

.skin-download-preview__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.45);
}

.skin-download-hero__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.skin-download-hero__name {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.skin-download-hero__uuid {
    margin: 0.25rem 0 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    word-break: break-all;
}

.skin-download-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}

.skin-download-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.skin-download-meta__item {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.skin-download-meta__label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.2rem;
}

.skin-download-meta__value {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
}

.skin-download-footnote {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.skin-download-footnote a {
    color: var(--lb-accent, #3ecf8e);
    text-decoration: none;
}

.skin-download-footnote a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .skin-download-hero {
        grid-template-columns: 1fr;
    }

    .skin-download-preview {
        justify-content: center;
    }

    .skin-download-meta {
        grid-template-columns: 1fr;
    }
}

.player-profile__renders {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.player-profile__renders img {
    border-radius: 8px;
    image-rendering: pixelated;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-profile__cape {
    object-fit: contain;
    background: rgba(0, 0, 0, 0.35);
}

.player-profile__main {
    flex: 1;
    min-width: min(100%, 280px);
}

.player-profile__name {
    font-size: 1.65rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.player-profile__stats {
    margin-top: 0;
}

.player-profile__uuid {
    font-size: 0.82rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 500;
}

.player-profile__actions {
    margin-top: 1rem;
}

.player-history {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.player-history h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.player-history__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.player-history__list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.player-history__name {
    font-weight: 600;
    color: #fff;
}

.player-history__current {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lb-accent, #3ecf8e);
}

.player-history__date {
    margin-left: auto;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.tool-export-pane {
    display: none;
}

.tool-export-pane.is-active {
    display: block;
}

.motd-server-frame {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.motd-server-frame__icon {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    image-rendering: pixelated;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.motd-server-frame__icon--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.5rem;
}

.plugin-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.plugin-tag {
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 576px) {
    .tool-line-stats {
        grid-template-columns: 1fr;
    }
}

/* ── MOTD Editor ── */

@import url('https://fonts.cdnfonts.com/css/minecraft-4');

.motd-editor {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.motd-editor__top {
    display: flex;
    justify-content: flex-start;
}

.motd-platform-toggle {
    display: inline-flex;
    padding: 0.25rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.25rem;
}

.motd-platform-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.motd-platform-toggle__btn:hover {
    color: rgba(255, 255, 255, 0.88);
}

.motd-platform-toggle__btn.is-active {
    background: linear-gradient(135deg, rgba(62, 207, 142, 0.22), rgba(46, 184, 122, 0.12));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(62, 207, 142, 0.28);
}

.motd-editor[data-platform="geyser"] .motd-platform-toggle__btn.is-active {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(59, 130, 246, 0.12));
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.32);
}

.motd-preview-pane {
    display: none;
}

.motd-preview-pane.is-active {
    display: block;
}

.motd-editor[data-platform="java"] .motd-preview-pane--java,
.motd-editor[data-platform="geyser"] .motd-preview-pane--geyser {
    display: block;
}

.motd-editor[data-platform="java"] .motd-preview-pane--geyser,
.motd-editor[data-platform="geyser"] .motd-preview-pane--java {
    display: none;
}

.motd-export-tabs,
.motd-export-panes {
    display: none;
}

.motd-export-tabs.is-active {
    display: flex;
}

.motd-export-panes.is-active {
    display: block;
}

.motd-editor[data-platform="java"] .motd-export-tabs--java,
.motd-editor[data-platform="java"] .motd-export-panes--java {
    display: block;
}

.motd-editor[data-platform="java"] .motd-export-tabs--java {
    display: flex;
}

.motd-editor[data-platform="geyser"] .motd-export-tabs--geyser,
.motd-editor[data-platform="geyser"] .motd-export-panes--geyser {
    display: block;
}

.motd-editor[data-platform="geyser"] .motd-export-tabs--geyser {
    display: flex;
}

.motd-editor[data-platform="java"] .motd-export-tabs--geyser,
.motd-editor[data-platform="java"] .motd-export-panes--geyser,
.motd-editor[data-platform="geyser"] .motd-export-tabs--java,
.motd-editor[data-platform="geyser"] .motd-export-panes--java {
    display: none;
}

.motd-color-swatch--bedrock {
    display: none;
}

.motd-editor[data-platform="geyser"] .motd-color-swatch--bedrock {
    display: flex;
}

.motd-editor__preview {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem 1.5rem 1.5rem;
}

.motd-editor__preview-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.motd-mc-window {
    width: 100%;
    max-width: 640px;
    border: 2px solid #000;
    background: #c6c6c6;
    box-shadow:
        inset 2px 2px 0 #fff,
        inset -2px -2px 0 #555,
        0 10px 28px rgba(0, 0, 0, 0.35);
    image-rendering: pixelated;
}

.motd-mc-window__title {
    padding: 0.45rem 0.75rem;
    background: linear-gradient(180deg, #6f6f6f 0%, #4a4a4a 100%);
    border-bottom: 2px solid #2a2a2a;
    color: #e0e0e0;
    font-family: 'Minecraft', 'Courier New', monospace;
    font-size: 0.95rem;
    text-shadow: 2px 2px 0 #2a2a2a;
    text-align: left;
}

.motd-mc-window__body {
    padding: 0.5rem;
    background: linear-gradient(180deg, #8b8b8b 0%, #6e6e6e 100%);
}

.motd-mc-list {
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid #1a1a1a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.motd-mc-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 68px;
    padding: 0.35rem 0.45rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.motd-mc-row:last-child {
    border-bottom: none;
}

.motd-mc-row--dim {
    opacity: 0.55;
}

.motd-mc-row--selected {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.motd-mc-row__icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #2a2a2a;
    border: 2px solid #141414;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    image-rendering: pixelated;
}

.motd-mc-row__icon--placeholder {
    background:
        linear-gradient(135deg, #3a3a3a 25%, transparent 25%) -4px 0 / 8px 8px,
        linear-gradient(225deg, #3a3a3a 25%, transparent 25%) -4px 0 / 8px 8px,
        linear-gradient(315deg, #3a3a3a 25%, transparent 25%) 0 0 / 8px 8px,
        linear-gradient(45deg, #3a3a3a 25%, transparent 25%) 0 0 / 8px 8px,
        #1e1e1e;
}

.motd-mc-row__icon-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, #5c8fd6 0%, #5c8fd6 35%, #3d6cb5 35%, #3d6cb5 100%);
    position: relative;
}

.motd-mc-row__icon-fallback::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 42%;
    width: 18px;
    height: 14px;
    transform: translate(-50%, -50%);
    background: #8ec0ff;
    box-shadow:
        -10px 6px 0 -2px #6aa8f0,
        10px 6px 0 -2px #6aa8f0,
        0 12px 0 -2px #4a88d0;
}

.motd-mc-row__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 0.15rem 2.75rem 0.15rem 0.15rem;
    text-align: left;
}

.motd-mc-row__meta {
    position: absolute;
    top: 50%;
    right: 0.15rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.motd-mc-row__ping {
    display: block;
    width: 10px;
    height: 8px;
    position: relative;
}

.motd-mc-row__ping::before,
.motd-mc-row__ping::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 2px;
    background: #555;
    border-radius: 1px 1px 0 0;
}

.motd-mc-row__ping::before {
    left: 0;
    height: 4px;
    box-shadow: 4px 0 0 #555, 8px 0 0 #555;
}

.motd-mc-row__ping--mid::before {
    height: 5px;
    background: #55ff55;
    box-shadow:
        4px 0 0 #55ff55,
        8px 0 0 #555;
}

.motd-mc-row__ping--full::before {
    height: 8px;
    background: #55ff55;
    box-shadow:
        4px 0 0 #55ff55,
        8px 0 0 #55ff55;
}

.motd-mc-row__players {
    font-family: 'Minecraft', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #a0a0a0;
    text-shadow: 1px 1px 0 #212121;
    line-height: 1;
}

.motd-mc-row__line1,
.motd-mc-row__line2 {
    font-family: 'Minecraft', 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.15;
    white-space: pre;
    overflow-x: auto;
    word-break: normal;
    text-align: left;
    text-shadow: 2px 2px 0 #3f3f3f;
    letter-spacing: 0.02em;
}

.motd-mc-row__line1 {
    color: #fff;
}

.motd-mc-row__line2 {
    color: #fff;
    margin-top: 0.12rem;
}

.motd-mc-row__line1 .mc-bold,
.motd-mc-row__line2 .mc-bold {
    font-weight: 700;
}

.motd-mc-row__line1 .mc-italic,
.motd-mc-row__line2 .mc-italic {
    font-style: italic;
}

/* Geyser / Bedrock preview (Ore UI style) */

.motd-bedrock-ui {
    width: 100%;
    max-width: 640px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.015) 0,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px,
            transparent 4px
        ),
        #2f2f2f;
    border: 2px solid #111;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 12px 32px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.motd-bedrock-ui__tabs {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.55rem 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.45);
    background: rgba(0, 0, 0, 0.28);
}

.motd-bedrock-ui__tab {
    padding: 0.45rem 0.8rem 0.55rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Minecraft', 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    text-shadow: 1px 1px 0 #1a1a1a;
    border-bottom: 2px solid transparent;
}

.motd-bedrock-ui__tab.is-active {
    color: #fff;
    border-bottom-color: #3ecf8e;
}

.motd-bedrock-ui__panel {
    padding: 0.65rem 0.75rem 0.85rem;
}

.motd-bedrock-ui__toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.motd-bedrock-ui__back {
    width: 11px;
    height: 11px;
    border-left: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    transform: rotate(45deg);
}

.motd-bedrock-ui__heading {
    color: #fff;
    font-family: 'Minecraft', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    text-shadow: 2px 2px 0 #1f1f1f;
}

.motd-bedrock-ui__add {
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    background: linear-gradient(180deg, #5dce4f 0%, #43a838 100%);
    border: 1px solid #2d7a24;
    color: #fff;
    font-family: 'Minecraft', 'Segoe UI', sans-serif;
    font-size: 0.72rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.motd-bedrock-ui__list {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(0, 0, 0, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.motd-bedrock-entry {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    min-height: 68px;
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}

.motd-bedrock-entry:last-child {
    border-bottom: none;
}

.motd-bedrock-entry--dim {
    opacity: 0.55;
}

.motd-bedrock-entry--selected {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.motd-bedrock-entry__icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 2px solid #141414;
    background: #1a1a1a;
    image-rendering: pixelated;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.motd-bedrock-entry__icon--empty {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%) 0 0 / 8px 8px,
        #242424;
}

.motd-bedrock-entry__icon-art {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #6ec6ff 0%, #6ec6ff 36%, #3f8fd9 36%, #3f8fd9 100%);
    position: relative;
}

.motd-bedrock-entry__icon-art::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 42%;
    width: 16px;
    height: 12px;
    transform: translate(-50%, -50%);
    background: #b9e8ff;
    box-shadow:
        -9px 6px 0 -2px #89c8f2,
        9px 6px 0 -2px #89c8f2,
        0 11px 0 -2px #5ea8e0;
}

.motd-bedrock-entry__content {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 3.25rem;
    text-align: left;
}

.motd-bedrock-entry__side {
    position: absolute;
    top: 0.1rem;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.motd-bedrock-entry__bars {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 12px;
}

.motd-bedrock-entry__bars span {
    display: block;
    width: 2px;
    background: #4a4a4a;
    border-radius: 1px 1px 0 0;
}

.motd-bedrock-entry__bars span:nth-child(1) { height: 3px; }
.motd-bedrock-entry__bars span:nth-child(2) { height: 5px; }
.motd-bedrock-entry__bars span:nth-child(3) { height: 7px; }
.motd-bedrock-entry__bars span:nth-child(4) { height: 9px; }
.motd-bedrock-entry__bars span:nth-child(5) { height: 11px; }

.motd-bedrock-entry__bars--mid span:nth-child(1),
.motd-bedrock-entry__bars--mid span:nth-child(2),
.motd-bedrock-entry__bars--mid span:nth-child(3) {
    background: #5cd65c;
}

.motd-bedrock-entry__bars--full span {
    background: #5cd65c;
}

.motd-bedrock-entry__players {
    font-family: 'Minecraft', 'Segoe UI', sans-serif;
    font-size: 0.68rem;
    color: #b0b0b0;
    text-shadow: 1px 1px 0 #1a1a1a;
    line-height: 1;
}

.motd-bedrock-entry__motd1,
.motd-bedrock-entry__motd2 {
    font-family: 'Minecraft', 'Segoe UI', sans-serif;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: pre;
    overflow-x: auto;
    word-break: normal;
    text-align: left;
    text-shadow: 2px 2px 0 #1f1f1f;
}

.motd-bedrock-entry__motd1 {
    color: #fff;
}

.motd-bedrock-entry__motd2 {
    color: #fff;
    font-size: 0.84rem;
    margin-top: 0.15rem;
}

.motd-bedrock-entry__motd1 .mc-bold,
.motd-bedrock-entry__motd2 .mc-bold {
    font-weight: 700;
}

.motd-bedrock-entry__motd1 .mc-italic,
.motd-bedrock-entry__motd2 .mc-italic {
    font-style: italic;
}

.motd-editor__body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.motd-editor__panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
}

.motd-editor__panel h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.motd-editor__panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.motd-editor__presets {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.motd-editor__presets-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.motd-editor__preset-select {
    width: auto;
    min-width: 11rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
}

.motd-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.motd-toolbar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.motd-toolbar__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.motd-toolbar__btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem;
}

.motd-tbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.motd-tbtn--text {
    min-width: auto;
    padding: 0 0.7rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
}

.motd-tbtn:hover {
    background: var(--lb-accent-muted, rgba(62, 207, 142, 0.1));
    border-color: var(--lb-accent-border, rgba(62, 207, 142, 0.28));
    color: #fff;
}

.motd-lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.motd-line__head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.4rem;
}

.motd-line__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.motd-line__tools {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.3rem;
}

.motd-line-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.28rem 0.5rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.motd-line-tool i {
    font-size: 0.85rem;
    opacity: 0.85;
}

.motd-line-tool:hover {
    background: var(--lb-accent-muted, rgba(62, 207, 142, 0.1));
    border-color: var(--lb-accent-border, rgba(62, 207, 142, 0.28));
    color: #fff;
}

.motd-line__count {
    font-size: 0.75rem;
    font-family: 'Consolas', 'Monaco', monospace;
    color: rgba(255, 255, 255, 0.45);
    justify-self: end;
}

.motd-line__count--warn {
    color: #fcd34d;
    font-weight: 600;
}

.motd-line__input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre;
    overflow-x: auto;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.motd-line__input:focus {
    outline: none;
    border-color: var(--lb-accent-border, rgba(62, 207, 142, 0.4));
    box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.12);
}

.motd-line__input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.motd-line__meter {
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.motd-line__meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--lb-accent, #3ecf8e);
    transition: width 0.2s ease, background 0.2s ease;
}

.motd-line__meter--warn span {
    background: #f59e0b;
}

/* Special character popover */

body.motd-char-open {
    overflow: hidden;
}

.motd-char-popover {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.motd-char-popover[hidden] {
    display: none;
}

.motd-char-popover__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

.motd-char-popover__panel {
    position: relative;
    width: min(100%, 580px);
    max-height: min(88vh, 620px);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #151c28;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.motd-char-popover__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.motd-char-popover__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.motd-char-popover__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.motd-char-popover__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.motd-char-popover__close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.motd-char-popover__tabs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}

.motd-char-popover__tab {
    min-width: 0;
    padding: 0.55rem 0.4rem;
    border: none;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 2px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.motd-char-popover__tab:last-child {
    border-right: none;
}

.motd-char-popover__tab:hover {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.04);
}

.motd-char-popover__tab.is-active {
    background: rgba(62, 207, 142, 0.08);
    border-bottom-color: var(--lb-accent, #3ecf8e);
    color: #fff;
}

.motd-char-popover__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.35rem;
    padding: 0.85rem 1rem 1rem;
    overflow-y: auto;
    max-height: 380px;
    background: rgba(0, 0, 0, 0.15);
}

.motd-char-popover__key {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.3rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: 'Minecraft', 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.motd-char-popover__key:hover {
    background: var(--lb-accent-muted, rgba(62, 207, 142, 0.12));
    border-color: var(--lb-accent-border, rgba(62, 207, 142, 0.32));
    color: #fff;
}

.motd-char-popover__key:active {
    background: rgba(62, 207, 142, 0.18);
}

.motd-char-popover__key--space {
    grid-column: span 2;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.motd-colors {
    margin-bottom: 1.25rem;
}

.motd-colors__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.motd-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.4rem;
}

.motd-color-swatch {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    text-align: left;
}

.motd-color-swatch:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.motd-color-swatch__dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--swatch-color);
    border: 1px solid rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.motd-color-swatch__name {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.motd-editor__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.motd-editor__export-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0.35rem 0 1rem;
}

.motd-export-code {
    margin: 0 0 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 160px;
    overflow-y: auto;
}

@media (max-width: 992px) {
    .motd-editor__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .motd-platform-toggle {
        width: 100%;
    }

    .motd-platform-toggle__btn {
        flex: 1;
        justify-content: center;
        padding-inline: 0.65rem;
        font-size: 0.78rem;
    }

    .motd-bedrock-ui,
    .motd-mc-window {
        max-width: none;
    }

    .motd-color-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .motd-line__count {
        width: 100%;
        text-align: right;
    }

    .motd-char-popover__tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .motd-char-popover__tab {
        padding: 0.5rem 0.35rem;
        font-size: 0.65rem;
    }

    .motd-char-popover__tab:nth-child(4n) {
        border-right: none;
    }

    .motd-char-popover__grid {
        grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
        gap: 0.3rem;
    }

    .motd-editor__presets {
        width: 100%;
    }

    .motd-editor__preset-select {
        flex: 1;
        min-width: 0;
    }
}

/* Server checker */
.server-checker-panel {
    overflow: hidden;
}

.server-checker-results {
    margin-top: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(ellipse 80% 60% at 18% 0%, rgba(62, 207, 142, 0.12), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
    position: relative;
}

.server-checker-results--loading {
    min-height: 280px;
}

.server-checker-results__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 280px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.server-checker-results__loading i {
    font-size: 1.75rem;
    animation: lb-spin 1s linear infinite;
    color: var(--lb-accent, #3ecf8e);
}

.server-checker-results--loading .server-checker-results__content {
    display: none;
}

.server-checker-results:not(.server-checker-results--loading) .server-checker-results__loading {
    display: none;
}

.server-checker-results__content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.server-checker-hero__main {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.server-checker-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.server-checker-visual__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(62, 207, 142, 0.14), transparent 55%),
        linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.3);
}

.server-checker-visual__stage.is-offline {
    background:
        radial-gradient(circle at 50% 35%, rgba(239, 68, 68, 0.1), transparent 55%),
        linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

.server-checker-visual__icon {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    image-rendering: pixelated;
    position: relative;
    z-index: 1;
}

.server-checker-visual__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.28);
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

.server-checker-visual__glow {
    position: absolute;
    inset: auto 12% 10%;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(62, 207, 142, 0.35), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.server-checker-visual__stage.is-offline .server-checker-visual__glow {
    background: radial-gradient(ellipse, rgba(239, 68, 68, 0.25), transparent 70%);
}

.server-checker-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.server-checker-badge--online {
    color: #6afaa6;
    background: rgba(62, 207, 142, 0.12);
    border: 1px solid rgba(62, 207, 142, 0.35);
}

.server-checker-badge--offline {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.server-checker-hero__side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.server-checker-hero__identity {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.server-checker-hero__identity-text {
    flex: 1;
    min-width: 0;
}

.server-checker-hero__name {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    word-break: break-word;
}

.server-checker-hero__meta {
    margin: 0.25rem 0 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.server-checker-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
}

.server-checker-hero__actions .tool-btn {
    white-space: nowrap;
}

.server-checker-bar {
    margin-top: -0.15rem;
}

.server-checker-bar .player-bar {
    margin: 0 0 0.35rem;
}

.server-checker-bar__label {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.48);
}

.server-checker-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
}

.server-checker-stats--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.server-checker-stat {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:nth-child(1),
.server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:nth-child(2),
.server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:nth-child(3) {
    grid-column: span 2;
}

.server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:nth-child(4),
.server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:nth-child(5) {
    grid-column: span 3;
}

.server-checker-stat__label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.2rem;
}

.server-checker-stat__value {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
    line-height: 1.25;
}

.server-checker-stat__value--online {
    color: #6afaa6;
}

.server-checker-stat__value--offline {
    color: #fca5a5;
}

.server-checker-section {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-checker-section__head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.server-checker-section__lead {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.45;
}

.server-graph-ranges {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.server-graph-range {
    appearance: none;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.65);
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.server-graph-range:last-child {
    border-right: 0;
}

.server-graph-range:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.server-graph-range.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--lb-accent, #3ecf8e);
}

.server-graph-wrap {
    position: relative;
    width: 100%;
    margin-top: 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(62, 207, 142, 0.05), transparent 60%),
        rgba(255, 255, 255, 0.02);
}

.server-graph-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.12);
}

.server-graph-canvas-wrap {
    position: relative;
    width: 100%;
    height: 280px;
}

.server-graph-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.server-graph-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.52);
    background: rgba(80, 80, 80, 0.1);
    pointer-events: none;
}

.server-graph-empty i {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.22);
}

.server-graph-empty p {
    margin: 0;
    max-width: 28rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.server-graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.48);
}

.server-graph-legend__dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.server-graph-legend__dot--players {
    background: #3ecf8e;
}

.server-graph-legend__dot--offline {
    background: rgba(239, 68, 68, 0.65);
}

@media (max-width: 900px) {
    .server-checker-hero__main {
        grid-template-columns: 1fr;
    }

    .server-checker-visual {
        max-width: 180px;
    }
}

@media (max-width: 560px) {
    .server-checker-hero__identity {
        flex-direction: column;
    }

    .server-checker-hero__actions {
        width: 100%;
        margin-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .server-checker-hero__actions .tool-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .server-checker-stats:not(.server-checker-stats--compact) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:nth-child(1),
    .server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:nth-child(2),
    .server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:nth-child(3),
    .server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:nth-child(4),
    .server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:nth-child(5) {
        grid-column: span 1;
    }

    .server-checker-stats:not(.server-checker-stats--compact) .server-checker-stat:last-child:nth-child(5) {
        grid-column: 1 / -1;
    }
}
