/* ======================================
   TC CALCULATOR - Estilos Premium
   ====================================== */
:root {
    --bg-sidebar: #1a1b1e;
    --bg-card: #25262b;
    --bg-body: #101113;
    --accent: #fbaf40;
    --text-main: #c1c2c5;
    --text-bright: #ffffff;
    --border: #373a40;
}

/* ======== INLINE CALCULATOR ======== */
.calc-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    align-items: start;
}

/* ======== LEFT COLUMN ======== */
.calc-inputs {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.calc-inputs::-webkit-scrollbar {
    width: 5px;
}

.calc-inputs::-webkit-scrollbar-track {
    background: transparent;
}

.calc-inputs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.calc-inputs::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.calc-inputs h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-inputs h3:not(:first-child) {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Name + Outfit Row */
.name-outfit-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.outfit-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.outfit-picker label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.outfit-preview {
    width: 64px;
    height: 64px;
    background: rgba(251, 175, 64, 0.06);
    border: 2px solid rgba(251, 175, 64, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.outfit-anim {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    object-fit: contain;
}


/* 2 col row */
.row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}

/* Input groups */
.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    margin-bottom: 5px;
}

.input-group input,
.input-group select {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-bright);
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--accent);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.skill-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-body);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.skill-input input[type="checkbox"] {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.skill-input label {
    font-size: 11px;
    color: var(--text-main);
    flex-grow: 1;
    cursor: pointer;
    user-select: none;
}

.skill-input input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-bright);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    outline: none;
    font-family: 'Outfit', sans-serif;
    padding: 0;
}

/* Toggles */
.toggles-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    transition: 0.2s;
}

.toggle-item:hover {
    border-color: var(--accent);
}

.toggle-item input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.toggle-item span {
    color: var(--text-bright);
    font-size: 13px;
}

.toggle-item b {
    color: var(--accent);
    font-weight: 700;
}

/* ======== SUMMARY ======== */
.calc-summary-inline {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.total-display {
    background: linear-gradient(135deg, rgba(251, 175, 64, 0.15), rgba(251, 175, 64, 0.05));
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(251, 175, 64, 0.3);
    margin-bottom: 12px;
}

.total-display .label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.total-display .value {
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(251, 175, 64, 0.3);
}

.selected-items-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.sel-placeholder {
    text-align: center;
    color: #555;
    font-size: 11px;
    padding: 12px;
}

.sel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 10px;
    border-radius: 5px;
    color: var(--text-main);
}

.sel-price {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sel-quantity-input {
    width: 35px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 11px;
    text-align: center;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.sel-quantity-input:focus {
    border-color: var(--accent);
}

.sel-quantity-label {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 4px;
}

.sel-item .remove {
    color: #f03e3e;
    cursor: pointer;
    margin-left: 8px;
    transition: 0.15s;
}

.sel-item .remove:hover {
    transform: scale(1.3);
}

/* Download Button */
.download-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #fbaf40, #f08c00);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 175, 64, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

/* ======== STORE COLUMN ======== */
.calc-store {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.store-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-header h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-search {
    position: relative;
}

.store-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-main);
    font-size: 13px;
}

.store-search input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-bright);
    padding: 11px 14px 11px 38px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.store-search input:focus {
    border-color: var(--accent);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-tab {
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: 0.2s;
}

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

.cat-tab.active {
    background: rgba(251, 175, 64, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Items Grid */
.store-items-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.store-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #555;
    padding: 40px;
    font-size: 14px;
}

.store-item {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.store-item:hover {
    border-color: var(--accent);
    background: rgba(251, 175, 64, 0.04);
    transform: translateY(-2px);
}

.store-item.selected {
    border-color: var(--accent);
    background: rgba(251, 175, 64, 0.12);
    box-shadow: 0 0 12px rgba(251, 175, 64, 0.15);
}

.store-item-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
}

.store-item-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: #555;
    font-size: 22px;
}

.store-item .name {
    font-size: 11px;
    display: block;
    color: var(--text-bright);
    line-height: 1.3;
}

.store-item .price {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
}

.check-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent);
    color: #000;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
}

/* Scrollbar */
.selected-items-list::-webkit-scrollbar { width: 4px; }
.selected-items-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }


/* ======== EXETA CARD (PREMIUM RENDERING) ======== */
.exeta-card {
    width: 800px;
    background: linear-gradient(135deg, #1a1b1e 0%, #101113 100%);
    padding: 40px;
    border-radius: 24px;
    border: 4px solid var(--accent);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.exeta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(251, 175, 64, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space for expansions on the right */
    gap: 30px;
    border-bottom: 1px solid rgba(251, 175, 64, 0.2);
    padding-bottom: 25px;
}

.card-header-main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-expansions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.card-outfit-box {
    width: 120px;
    height: 120px;
    background: rgba(251, 175, 64, 0.05);
    border: 2px solid rgba(251, 175, 64, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(251, 175, 64, 0.1);
}

.card-outfit-box img {
    width: 96px;
    height: 96px;
    image-rendering: pixelated;
    object-fit: contain;
}

.card-info h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin: 0;
    letter-spacing: -0.5px;
}

.card-info .voc-lvl {
    font-size: 18px;
    color: var(--text-main);
    opacity: 0.8;
}

.card-main-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}

.card-section-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.card-skill-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.skill-bar-bg {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.card-store-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.store-group {
    background: rgba(255,255,255,0.02);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(251, 175, 64, 0.1);
}

.store-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}

.card-item-icon {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.2s;
}

.card-item-icon img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    object-fit: contain;
}

.card-item-qty {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 2;
    border: 1px solid #000;
}

.card-item-icon .item-label {
    position: absolute;
    bottom: -18px;
    left: 0;
    right: 0;
    font-size: 9px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.7;
}

.card-footer {
    margin-top: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(251, 175, 64, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-total {
    background: rgba(251, 175, 64, 0.1);
    padding: 15px 30px;
    border-radius: 15px;
    border: 1px solid var(--accent);
}

.card-total span {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}

.card-brand-label {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-bright);
}

.card-brand-label span {
    color: var(--accent);
}

.expansion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-tag {
    background: rgba(64, 192, 87, 0.1);
    color: #40c057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(64, 192, 87, 0.3);
}
