/* ——————————————————————————————————————
   PokeZA Optimizer — style.css v5
   Dark premium design · Inter font
—————————————————————————————————————— */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0b0c14;
    --surface: #13141f;
    --surface2: #1b1c2b;
    --surface3: #22233a;
    --border: #2a2b42;
    --accent: #7c73ff;
    --accent2: #ff6f91;
    --text: #e8e8f0;
    --muted: #7a7b96;
    --ok: #4ade80;
    --fail: #f87171;
    --warn: #facc15;
    --radius: 12px;
    --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ——— HEADER ——— */
.site-header {
    background: linear-gradient(135deg, #0d0e1e 0%, #11121e 100%);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text);
}

.logo p {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 1px;
}

.header-logo-img {
    height: 100px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* ——— LANGUAGE TOGGLE ——— */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    order: 99;
}

.lang-toggle {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--text);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    background: var(--surface3);
    border-color: var(--accent);
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(124, 115, 255, 0.3);
}

.mobile-only {
    display: none !important;
}

.mobile-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow);
    z-index: 200;
    min-width: 160px;
    animation: slideDown 0.2s ease forwards;
}

.mobile-dropdown.open {
    display: flex;
}

.mobile-dropdown-item {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 12px 16px;
    text-align: left;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.mobile-dropdown-item:hover {
    background: var(--surface3);
}

/* ——— AUTH UI ——— */
.auth-btn {
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: inherit;
    margin-right: 4px;
}

.auth-btn img {
    width: 16px;
    height: 16px;
}

.auth-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3);
    border-color: #d2e3fc;
}

.auth-user-menu {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    transition: transform 0.2s;
}

.auth-user-menu:hover {
    transform: scale(1.05);
}

.auth-user-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

/* ——— SEARCH ——— */
.search-wrap {
    position: relative;
    flex: 1;
    max-width: 560px;
}

.search-history {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding-bottom: 2px;
}

.search-history::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 6px 0 16px;
    gap: 10px;
    transition: border-color .2s;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 115, 255, .18);
}

.search-icon {
    font-size: 1rem;
    color: var(--muted);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 10px 0;
}

.search-box input::placeholder {
    color: var(--muted);
}

#search-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    flex-shrink: 0;
}

#search-btn:hover {
    background: #6a61f0;
    transform: scale(1.03);
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    list-style: none;
    z-index: 200;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    display: none;
}

.autocomplete-dropdown.open {
    display: block;
}

.autocomplete-dropdown li {
    padding: 9px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background .12s;
}

.autocomplete-dropdown li:hover,
.autocomplete-dropdown li.active {
    background: var(--surface3);
    color: var(--accent);
}

/* ——— MAIN ——— */
main {
    max-width: 1400px;
    margin: 28px auto;
    padding: 0 20px;
}

/* ——— LOADING ——— */
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 0;
    color: var(--muted);
}

.spinner {
    width: 42px;
    height: 42px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

.loading-progress-wrap {
    width: 220px;
    height: 6px;
    background: var(--surface2);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--border);
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #ff8fa3);
    border-radius: 999px;
    /* Transition is controlled mostly via JS for simulated loading steps */
    transition: width 0.2s ease-out;
}

.error-msg {
    display: none;
    background: rgba(248, 113, 113, .12);
    border: 1px solid rgba(248, 113, 113, .35);
    color: var(--fail);
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* ——— ERROR CARDS ——— */
.error-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.error-card-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.error-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.error-card-body p {
    font-size: 0.88rem;
    opacity: .85;
    margin-bottom: 6px;
    line-height: 1.5;
}

.error-hint {
    font-size: 0.78rem !important;
    opacity: .6 !important;
}

.error-card.not-in-meta {
    background: rgba(251, 191, 36, .08);
    border-color: rgba(251, 191, 36, .3);
    color: #fcd34d;
}

.error-card.not-in-meta h3 {
    color: #fbbf24;
}

.error-card.not-found {
    background: rgba(248, 113, 113, .08);
    border-color: rgba(248, 113, 113, .3);
    color: #fca5a5;
}

.error-card.not-found h3 {
    color: var(--fail);
}

/* ——— RESULTS GRID ——— */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ——— BUILD CARD ——— */
.build-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: visible;
    /* IMPORTANT: needed so EHP tooltip (position:fixed) escapes */
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    position: relative;
}

/* Corner badges — absolute top right of card */
.card-corner-badges {
    position: absolute;
    top: 10px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
}

.card-corner-badges>span {
    font-size: 0.62rem;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 600;
}

.build-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
}

.build-card.mega {
    border-color: rgba(124, 115, 255, .5);
}

/* Card layout: sprite left, content right */
.card-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    border-radius: 16px;
    overflow: hidden;
    /* clip the inner panels, not the tooltip */
}

@media (max-width: 700px) {
    .card-body {
        grid-template-columns: 1fr;
    }
}

/* LEFT: sprite panel */
.card-sprite-panel {
    background: linear-gradient(160deg, #181928 0%, #0f1020 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 16px 20px;
    border-right: 1px solid var(--border);
    gap: 12px;
}

.pkmn-sprite {
    width: 160px;
    height: 160px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 4px 20px rgba(124, 115, 255, .35));
}

.type-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.type-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* RIGHT: content panel */
.card-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Build Tabs (Z-A vs Smogon) */
.build-tabs {
    display: flex;
    gap: 4px;
    width: 100%;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
}

.build-tab {
    flex: 1;
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 5px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.build-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transform: translateY(-1px);
}

.build-tab.active {
    background: linear-gradient(135deg, rgba(124, 115, 255, 0.2) 0%, rgba(124, 115, 255, 0.1) 100%);
    color: var(--accent);
    border-color: rgba(124, 115, 255, 0.3);
    box-shadow: 0 4px 12px rgba(124, 115, 255, 0.1);
}

/* Card title row */
.card-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.card-title-row h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
}

.badge-mega {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 1px;
}

.badge-count {
    color: var(--muted);
    font-size: 0.8rem;
    background: var(--surface2);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.badge-source {
    color: var(--accent);
    font-size: 0.75rem;
    background: rgba(124, 115, 255, .1);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(124, 115, 255, .3);
}

/* EVs bar */
.evs-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.evs-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    margin-right: 2px;
}

.evs-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ev-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 50px;
    background: var(--surface3);
    border: 1px solid var(--border);
    line-height: 1.3;
}

.ev-chip .ev-val {
    font-size: 1rem;
    font-weight: 800;
}

.ev-chip.zero {
    opacity: .35;
}

.ev-chip.hp {
    border-color: #4ade80;
    color: #4ade80;
}

.ev-chip.atk {
    border-color: #f87171;
    color: #f87171;
}

.ev-chip.spa {
    border-color: #60a5fa;
    color: #60a5fa;
}

.ev-chip.def {
    border-color: #fbbf24;
    color: #fbbf24;
}

.ev-chip.spd {
    border-color: #a78bfa;
    color: #a78bfa;
}

.ev-chip.spe {
    border-color: #34d399;
    color: #34d399;
}

/* EHP tooltip */
.ehp-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    /* Ensure the tooltip can escape the parent */
    isolation: isolate;
}

.ehp-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface3);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
    transition: background .15s;
}

.ehp-info-icon:hover {
    background: rgba(124, 115, 255, .2);
}

.ehp-tooltip {
    display: none;
    position: fixed;
    /* fixed breaks out of ALL overflow:hidden parents */
    background: #191929;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    width: 280px;
    z-index: 9999;
    /* Always on top */
    box-shadow: 0 10px 40px rgba(0, 0, 0, .9);
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--text);
}

.ehp-title {
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.ehp-desc {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.ehp-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.ehp-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ehp-lbl {
    width: 60px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ehp-val {
    width: 50px;
    text-align: right;
    font-weight: 700;
    font-family: monospace;
    font-size: 0.85rem;
}

.ehp-bar-wrap {
    flex: 1;
    background: var(--surface2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.ehp-bar {
    height: 100%;
    border-radius: 4px;
    transition: width .3s ease;
}

.ehp-bar.phys {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.ehp-bar.spec {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.ehp-formula {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--muted);
    font-family: monospace;
    background: var(--surface3);
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.ehp-hint {
    font-size: 0.7rem;
    font-style: italic;
    opacity: .7;
    text-align: center;
}

/* Main stats + info row */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
}

/* ——— Build Section Layout ——— */
.build-section {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.build-section-details {
    background: transparent;
    border-color: transparent;
    padding: 0;
    gap: 14px;
}

.build-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2px;
}

.build-section-details .build-section-header {
    border-bottom-color: var(--border);
    padding-bottom: 8px;
}

.build-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ——— 2-Column build layout ——— */
.build-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.build-left,
.build-right {
    display: flex;
    flex-direction: column;
}

.build-right .build-section {
    height: 100%;
}

.equipment-cell-inline {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.equipment-cell-inline:last-child {
    border-bottom: none;
}

@media (max-width: 600px) {
    .build-2col {
        grid-template-columns: 1fr;
    }
}

/* ——— Stats 4-column grid ——— */
.stats-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 500px) {
    .stats-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-card.hp-card {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.06);
}

.stat-card-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.hp-card .stat-card-lbl {
    color: #4ade80;
}

.stat-card-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.stat-card-sub {
    font-size: 0.65rem;
    color: var(--muted);
    font-family: monospace;
}

/* ——— Equipment Row ——— */
.equipment-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 500px) {
    .equipment-row {
        grid-template-columns: 1fr;
    }
}

.equipment-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.equipment-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.equipment-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ——— WIP Notice ——— */
.wip-notice {
    font-size: 0.82rem;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px dashed rgba(251, 191, 36, 0.35);
    line-height: 1.5;
}

.stat-row {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.stat-row .lbl {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.stat-row .val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.mega-stone-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #2d2050 0%, #3d1060 100%);
    border: 1px solid rgba(124, 115, 255, .5);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #c084fc;
}

/* Move grid */
.move-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    width: 100%;
}

.move-cell {
    border-radius: 8px;
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .08);
    min-width: 0;
}

.move-top {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.move-cat {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.move-cat img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    image-rendering: pixelated;
}

.move-cat .cat-emoji {
    font-size: 0.85rem;
    line-height: 1;
}

.move-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.move-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.move-type {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    letter-spacing: .3px;
    white-space: nowrap;
}

.move-pp {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, .5);
    white-space: nowrap;
}

/* Recovery / benchmark */
.recovery {
    font-size: 0.82rem;
    color: var(--ok);
    padding: 6px 12px;
    background: rgba(74, 222, 128, .08);
    border: 1px solid rgba(74, 222, 128, .2);
    border-radius: 8px;
}

.recovery.neg {
    color: var(--fail);
    background: rgba(248, 113, 113, .08);
    border-color: rgba(248, 113, 113, .2);
}

.benchmark {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
}

/* Counters section */
.counters-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.counters-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #facc15;
    white-space: nowrap;
}

.counters-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.counter-badge {
    background: rgba(251, 191, 36, 0.15);
    color: #fde047;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.counter-badge:hover {
    background: rgba(251, 191, 36, 0.25);
    transform: translateY(-1px);
}

.benchmark .ok {
    color: var(--ok);
    font-weight: 700;
}

.benchmark .fail {
    color: var(--fail);
    font-weight: 700;
}

/* Matchups section */
.matchups-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 2px;
}

.matchups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 2px;
}

.matchup-group {
    background: var(--surface1);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.matchup-label {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}

.matchup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Smogon original section */
.smogon-original {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.smogon-original summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    padding: 6px 0;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.smogon-original summary:hover {
    color: var(--text);
}

.smogon-details-inner {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.smogon-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.smogon-bar {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ——— TYPE COLORS ——— */
.type-normal {
    background: #a8a77a;
    color: #111;
}

.type-fire {
    background: #ee8130;
    color: #fff;
}

.type-water {
    background: #6390f0;
    color: #fff;
}

.type-electric {
    background: #f7d02c;
    color: #111;
}

.type-grass {
    background: #7ac74c;
    color: #111;
}

.type-ice {
    background: #96d9d6;
    color: #111;
}

.type-fighting {
    background: #c22e28;
    color: #fff;
}

.type-poison {
    background: #a33ea1;
    color: #fff;
}

.type-ground {
    background: #e2bf65;
    color: #111;
}

.type-flying {
    background: #a98ff3;
    color: #fff;
}

.type-psychic {
    background: #f95587;
    color: #fff;
}

.type-bug {
    background: #a6b91a;
    color: #111;
}

.type-rock {
    background: #b6a136;
    color: #111;
}

.type-ghost {
    background: #735797;
    color: #fff;
}

.type-dragon {
    background: #6f35fc;
    color: #fff;
}

.type-dark {
    background: #3a2b2b;
    color: #fff;
}

.type-steel {
    background: #b7b7ce;
    color: #111;
}

.type-fairy {
    background: #d685ad;
    color: #fff;
}

/* Move cell backgrounds (darker version) */
.move-cell.type-normal {
    background: rgba(168, 167, 122, .15);
}

.move-cell.type-fire {
    background: rgba(238, 129, 48, .18);
}

.move-cell.type-water {
    background: rgba(99, 144, 240, .18);
}

.move-cell.type-electric {
    background: rgba(247, 208, 44, .18);
}

.move-cell.type-grass {
    background: rgba(122, 199, 76, .15);
}

.move-cell.type-ice {
    background: rgba(150, 217, 214, .15);
}

.move-cell.type-fighting {
    background: rgba(194, 46, 40, .2);
}

.move-cell.type-poison {
    background: rgba(163, 62, 161, .18);
}

.move-cell.type-ground {
    background: rgba(226, 191, 101, .15);
}

.move-cell.type-flying {
    background: rgba(169, 143, 243, .18);
}

.move-cell.type-psychic {
    background: rgba(249, 85, 135, .18);
}

.move-cell.type-bug {
    background: rgba(166, 185, 26, .15);
}

.move-cell.type-rock {
    background: rgba(182, 161, 54, .15);
}

.move-cell.type-ghost {
    background: rgba(115, 87, 151, .2);
}

.move-cell.type-dragon {
    background: rgba(111, 53, 252, .2);
}

.move-cell.type-dark {
    background: rgba(58, 43, 43, .3);
}

.move-cell.type-steel {
    background: rgba(183, 183, 206, .15);
}

.move-cell.type-fairy {
    background: rgba(214, 133, 173, .18);
}

/* ——— CARD ENTRANCE ANIMATION ——— */
@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.build-card {
    animation: cardSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.build-card:nth-child(1) {
    animation-delay: 0s;
}

.build-card:nth-child(2) {
    animation-delay: 0.08s;
}

.build-card:nth-child(3) {
    animation-delay: 0.16s;
}

.build-card:nth-child(4) {
    animation-delay: 0.24s;
}

/* ——— COPY BUILD BUTTON ——— */
.copy-build-btn {
    background: var(--surface3);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.copy-build-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.copy-build-btn.copied {
    background: var(--ok);
    color: #000;
    border-color: var(--ok);
}

/* ——— SHOWDOWN EXPORT BUTTON ——— */
.showdown-btn {
    background: linear-gradient(135deg, #cc3333, #993333);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    margin-left: 6px;
}

.showdown-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(204, 51, 51, 0.4);
}

.showdown-btn.copied {
    background: var(--ok);
    color: #000;
}

/* ——— SEARCH HISTORY ——— */
.search-history {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 0 0 0;
    max-width: 560px;
}

.history-chip {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.history-chip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ——— FOOTER ——— */
.site-footer {
    text-align: center;
    padding: 24px 16px;
    margin-top: 48px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.72rem;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ——— BASE STATS BARS ——— */
.base-stats-section {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ——— NATURE INDICATORS ——— */
.nature-boost {
    color: var(--ok);
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 4px;
}

.nature-penalty {
    color: var(--fail);
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 4px;
}

.nature-base {
    opacity: 0.6;
    font-weight: 400;
}

.bs-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.bs-tab {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 600;
}

.bs-tab:hover {
    border-color: var(--accent);
    color: var(--text);
}

.bs-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.bs-tab small {
    opacity: 0.7;
    font-weight: 400;
}

.bs-panel {
    display: flex;
}

/* ——— SPEED TIERS ——— */
.speed-tiers-section {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

.speed-tiers-section summary {
    cursor: pointer;
    user-select: none;
}

.speed-tiers-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.speed-tier-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 8px;
    font-size: 0.72rem;
    border-radius: 4px;
    color: var(--muted);
}

.speed-tier-item.current {
    background: rgba(124, 115, 255, 0.15);
    color: var(--accent);
    font-weight: 700;
    border: 1px solid var(--accent);
}

.speed-name {
    flex: 1;
}

.speed-val {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bs-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
    flex: 1;
}

.bs-combined {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.bs-radar {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
}

.radar-svg {
    width: 100%;
    height: 100%;
}

.bs-row {
    display: grid;
    grid-template-columns: 32px 32px 1fr;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
}

.bs-label {
    color: var(--muted);
    font-weight: 600;
    text-align: right;
}

.bs-val {
    color: var(--text);
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.bs-bar-bg {
    background: var(--surface2);
    border-radius: 3px;
    height: 8px;
    overflow: hidden;
}

.bs-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ——— FAVORITE BUTTON ——— */
.card-sprite-panel {
    position: relative;
}

.fav-btn {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fav-btn:hover {
    color: #facc15;
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.6);
}

.fav-btn.active {
    color: #facc15;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* ——— COMPARE OVERLAY ——— */
.compare-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.compare-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 520px;
    width: 100%;
    padding: 20px;
    animation: cardSlideUp 0.3s ease both;
}

.compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.compare-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.compare-close {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s;
}

.compare-close:hover {
    background: var(--fail);
    color: #fff;
}

.compare-body {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.cmp-col {
    text-align: center;
    flex: 1;
}

.cmp-sprite {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
}

.cmp-vs {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.6;
}

.cmp-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cmp-stat-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    padding: 4px 8px;
    background: var(--surface2);
    border-radius: 4px;
}

.cmp-stat-row:nth-child(even) {
    background: var(--surface3);
}

.cmp-val {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cmp-val:first-child {
    text-align: right;
}

.cmp-val:last-child {
    text-align: left;
}

.cmp-label {
    text-align: center;
    color: var(--muted);
    font-weight: 600;
    min-width: 60px;
}

.cmp-better {
    color: var(--ok);
}

.cmp-worse {
    color: var(--fail);
}

.cmp-evs {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.cmp-ev-col {
    flex: 1;
    text-align: center;
    color: var(--muted);
    font-size: 0.7rem;
}

/* ——— COMPARE DOCK ——— */
.compare-dock {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    background: var(--surface2);
    border: 1px solid var(--accent);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    animation: cardSlideUp 0.3s ease both;
}

.dock-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dock-slots {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dock-vs {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--muted);
    opacity: 0.5;
}

/* ——— FAVORITES LIST MODAL ——— */
.fav-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

.fav-list-item {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    transition: all 0.2s;
    text-align: left;
}

.fav-list-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: var(--surface);
}

.fav-list-item img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.fav-list-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

.dock-slot {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dock-slot.empty {
    border: 1px dashed var(--muted);
    background: transparent;
}

.dock-slot-empty {
    color: var(--muted);
    font-size: 1.5rem;
    opacity: 0.5;
}

.dock-sprite {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.dock-name {
    font-size: 0.6rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 2px;
}

.dock-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--fail);
    color: white;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dock-remove:hover {
    transform: scale(1.1);
}

.dock-go {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.dock-go:hover {
    filter: brightness(1.2);
}

.dock-hint {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
}

/* ——— HOMEPAGE (Rediseño con selector de Modos) ——— */
.home-view {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeIn 0.4s ease forwards;
}

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.mode-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

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

.mode-card {
    background: var(--surface2);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mode-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: var(--hover);
}

.mode-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.mode-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-content-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media(max-width: 1024px) {
    .home-content-split {
        grid-template-columns: 1fr;
    }
}

.home-featured-meta h3,
.home-news h3,
.home-favorites h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.home-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.home-news-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: var(--hover);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.home-pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.home-pokemon-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.home-pokemon-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: var(--hover);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-pokemon-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s ease;
}

.home-pokemon-card:hover img {
    transform: scale(1.1);
}

.home-pokemon-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.loading-placeholders {
    opacity: 0.5;
    pointer-events: none;
}

.home-faq-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

@media(max-width: 768px) {
    .site-header {
        padding: 12px;
    }

    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: 
            "logo actions"
            "search search";
        gap: 12px;
        align-items: center;
    }

    .logo {
        grid-area: logo;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .logo img {
        height: 28px !important;
    }

    .logo h1 {
        font-size: 1.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo p {
        display: none;
    }

    .header-actions {
        grid-area: actions;
        position: relative;
        top: auto;
        right: auto;
        margin: 0;
    }

    .search-wrap {
        grid-area: search;
        width: 100%;
        max-width: 100%;
    }

    .search-box {
        padding: 0 4px 0 12px;
    }

    .search-box input {
        padding: 6px 0;
        font-size: 0.9rem;
    }

    #search-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-dropdown {
        right: 0; 
    }

    .home-faq-row {
        grid-template-columns: 1fr;
    }
}

.faq-box {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 20px;
}

.faq-box h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.faq-box p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}