:root {
    /* Premium Color Palette */
    --primary: #14b8a6;
    /* modern teal */
    --primary-hover: #0d9488;
    --secondary: #6366f1;
    /* indigo */
    --bg-color: #f8fafc;
    /* light background */
    --panel-bg: rgba(255, 255, 255, 0.85);
    --panel-border: rgba(15, 23, 42, 0.1);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Group Colors with vibrant pop */
    --group-A: #10b981;
    /* Emerald */
    --group-C: #f59e0b;
    /* Amber */
    --group-P: #3b82f6;
    /* Blue */
    --group-F: #8b5cf6;
    /* Violet */
    --group-X: #ef4444;
    /* Red */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 3rem;
    background-image: radial-gradient(circle at 15% 50%, rgba(20, 184, 166, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.08), transparent 25%);
}

/* Background Animations */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #14b8a6;
    top: -10vh;
    left: -10vw;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #6366f1;
    bottom: -20vh;
    right: -10vw;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 40px) scale(1.15);
    }
}

/* Layout */
.container {
    width: 100%;
    max-width: 1300px;
    padding: 3rem 2rem;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #14b8a6, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.badge {
    font-size: 1rem;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    -webkit-text-fill-color: #14b8a6;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    letter-spacing: 0.2px;
}

.app-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
}

/* Glass Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.glass-panel:hover {
    box-shadow: 0 20px 45px -5px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--panel-border);
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

label span {
    font-size: 0.7rem;
    color: #64748b;
    background: rgba(15, 23, 42, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

input,
select {
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

input:focus,
select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}

input::placeholder {
    color: rgba(15, 23, 42, 0.4);
}

select option {
    background: #fff;
    color: var(--text-primary);
}


/* Fertility Tabs */
.fertility-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    background: rgba(15, 23, 42, 0.05);
    padding: 0.3rem;
    border-radius: 12px;
    width: fit-content;
}

.fert-tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fert-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.fert-tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.fert-tab-content {
    animation: fadeIn 0.4s ease-out;
}

.fert-tab-content.hidden {
    display: none !important;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-group button {
    flex: 1;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0f766e);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(20, 184, 166, 0.6);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(20, 184, 166, 0.8);
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.03);
    color: var(--text-secondary);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
    border-color: rgba(15, 23, 42, 0.2);
}

/* Results Panel */
.result-panel {
    display: flex;
    flex-direction: column;
    min-height: 600px;
    position: sticky;
    top: 2rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.result-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-indicator.active {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.8;
    }
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-secondary);
    text-align: center;
    gap: 1rem;
    opacity: 0.6;
}

.result-placeholder svg {
    color: var(--primary);
    opacity: 0.5;
    filter: drop-shadow(0 0 10px rgba(20, 184, 166, 0.5));
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.cum-symbol-container {
    text-align: center;
    padding: 2.5rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: inset 0 2px 10px rgba(15, 23, 42, 0.02);
    position: relative;
    overflow: hidden;
}

.cum-symbol-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.05), transparent);
}

.cum-symbol {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
}

.breakdown {
    display: flex;
    gap: 1rem;
}

@media (max-width: 450px) {
    .breakdown {
        flex-direction: column;
    }
}

.breakdown-item {
    flex: 1;
    background: rgba(248, 250, 252, 0.5);
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 4px solid var(--primary);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-left-width: 4px;
    transition: transform 0.3s ease;
}

.breakdown-item:hover {
    transform: translateX(2px);
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.subclasses-info {
    flex-direction: column;
    background: rgba(248, 250, 252, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.tag {
    background: #fff;
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
    transition: all 0.2s ease;
}

.tag:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.1);
}

.tag.tag-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
    font-weight: 600;
}

.severity-tracker {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--panel-border);
}

.severity-tracker h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.severity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.severity-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.severity-item:hover {
    background: rgba(15, 23, 42, 0.04);
}

.severity-item.critical {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.severity-item.critical strong {
    color: #f87171;
}

.severity-item.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.severity-item.warning strong {
    color: #fbbf24;
}

/* Dynamic Colors */
.color-A {
    color: var(--group-A);
    text-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.border-A {
    border-left-color: var(--group-A);
}

.color-C {
    color: var(--group-C);
    text-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.border-C {
    border-left-color: var(--group-C);
}

.color-P {
    color: var(--group-P);
    text-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.border-P {
    border-left-color: var(--group-P);
}

.color-F {
    color: var(--group-F);
    text-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.border-F {
    border-left-color: var(--group-F);
}

.color-X {
    color: var(--group-X);
    text-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.border-X {
    border-left-color: var(--group-X);
}

/* Info Boxes */
.info-box {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--info);
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.4s ease-out;
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Exceptions Layout and Custom Controls */
.exceptions-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    justify-content: flex-start;
}

.altitud-input-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-width: fit-content;
}

.altitud-input-group label {
    margin-bottom: 0 !important;
    white-space: nowrap;
    color: var(--text-primary);
    font-weight: 600;
}

.altitud-input-group input {
    width: 120px !important;
}

.custom-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.custom-checkbox-group:hover .checkmark {
    border-color: var(--primary);
    background: rgba(20, 184, 166, 0.05);
}

.custom-checkbox-group input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid rgba(15, 23, 42, 0.15);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.custom-checkbox-group input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.4);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox-group input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox-group .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.exception-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    white-space: nowrap;
}

/* Traceability Table */
.trace-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.85rem;
    min-width: 800px;
}
.trace-table th {
    background: var(--primary);
    color: white;
    padding: 0.6rem 0.4rem;
    border: 1px solid rgba(0,0,0,0.1);
    font-weight: 600;
}
.trace-table td {
    padding: 0.6rem 0.4rem;
    border: 1px solid var(--panel-border);
    font-weight: 700;
    color: var(--text-primary);
    background: #fff;
}
.traceability-container::-webkit-scrollbar {
    height: 8px;
}
.traceability-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* ── Principio de Soporte Edáfico ───────────────────────────────────── */
.soil-principle {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.07), rgba(99, 102, 241, 0.04));
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-left: 3px solid var(--primary);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    animation: fadeSlideIn 0.35s ease;
}

.soil-principle.hidden {
    display: none;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.soil-principle-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.soil-icon {
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.8;
}

.soil-principle-header strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.soil-norm {
    font-size: 0.71rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.4px;
    display: block;
    margin-top: 2px;
}

.soil-principle-transform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(20, 184, 166, 0.12);
}

.transform-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.transform-label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.transform-symbol {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}

.transform-before .transform-symbol {
    color: var(--text-secondary);
    text-decoration: line-through;
    text-decoration-color: rgba(71, 85, 105, 0.45);
    text-decoration-thickness: 2px;
}

.transform-after .transform-symbol {
    color: var(--primary);
}

.transform-arrow {
    color: var(--primary);
    opacity: 0.5;
    flex-shrink: 0;
}

.soil-principle-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.soil-principle-text strong {
    color: var(--primary);
    font-weight: 700;
}

/* ── Nota Grupo X — Tierras de Protección ────────────────────────── */
.grupo-x-note {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02));
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-left: 3px solid var(--group-X);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    animation: fadeSlideIn 0.35s ease;
}

.grupo-x-note.hidden {
    display: none;
}

.grupo-x-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.grupo-x-icon {
    color: var(--group-X);
    flex-shrink: 0;
    opacity: 0.75;
}

.grupo-x-header strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.grupo-x-norm {
    font-size: 0.71rem;
    color: var(--group-X);
    font-weight: 600;
    letter-spacing: 0.4px;
    display: block;
    margin-top: 2px;
}

.grupo-x-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.grupo-x-text strong {
    color: var(--group-X);
    font-weight: 700;
}

.grupo-x-text em {
    font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
}

.grupo-x-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.x-letter-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
}

.x-letter-sym {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--group-X);
}

.x-letter-name {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.x-letter-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.x-letter-badge.badge-extreme {
    background: rgba(239, 68, 68, 0.12);
    color: var(--group-X);
}

.x-letter-badge.badge-base {
    background: rgba(71, 85, 105, 0.1);
    color: var(--text-secondary);
}