/**
 * iFireMonkey - Tools CSS
 * Styles for Item Shop, Cosmetics DB, Leak Tracker, Updates & Versions
 */

/* =========================================
   1. COMMON TOOL PAGE HEADER
   ========================================= */
.tool-page-wrapper {
    padding-bottom: 60px;
}

.tool-page-header {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--ifm-shadow-sm);
}

.tool-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--ifm-radius-pill);
    margin-bottom: 12px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.tool-page-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--ifm-text-main);
    margin: 0 0 8px 0;
}

.tool-page-desc {
    font-size: 15px;
    color: var(--ifm-text-secondary);
    max-width: 760px;
    margin: 0;
    line-height: 1.6;
}

/* =========================================
   2. FILTER TOOLBAR
   ========================================= */
.tool-filter-bar {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 28px;
    box-shadow: var(--ifm-shadow-sm);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

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

.filter-search {
    flex-grow: 1;
    min-width: 240px;
}

.filter-input {
    width: 100%;
    height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--ifm-border);
    border-radius: var(--ifm-radius-md);
    background: #F8FAFC;
    font-size: 13px;
    outline: none;
}

.filter-input:focus {
    background: #FFFFFF;
    border-color: var(--ifm-primary);
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ifm-text-secondary);
}

.filter-select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ifm-border);
    border-radius: var(--ifm-radius-md);
    background: #FFFFFF;
    font-size: 13px;
    color: var(--ifm-text-main);
}

.filter-submit-btn {
    background: #7C3AED;
    color: #FFFFFF;
    border: none;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--ifm-radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.filter-submit-btn:hover {
    background: #6D28D9;
}

.filter-reset-link {
    font-size: 13px;
    color: #64748B;
    text-decoration: underline;
}

/* =========================================
   3. ITEM SHOP TRACKER
   ========================================= */
.shop-header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.shop-countdown-card {
    background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
    color: #FFFFFF;
    padding: 20px 28px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #A5B4FC;
    display: block;
    margin-bottom: 8px;
}

.countdown-timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: monospace;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unit-val {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #FFFFFF;
}

.unit-lbl {
    font-size: 9px;
    text-transform: uppercase;
    color: #94A3B8;
    margin-top: 2px;
}

.timer-colon {
    font-size: 22px;
    font-weight: 700;
    color: #6366F1;
    margin-bottom: 12px;
}

.countdown-note {
    font-size: 10px;
    color: #94A3B8;
    display: block;
    margin-top: 8px;
}

.shop-info-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
}

.info-strip-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-pill {
    background: #F1F5F9;
    padding: 4px 12px;
    border-radius: var(--ifm-radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.shop-quick-search {
    height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--ifm-border);
    border-radius: var(--ifm-radius-pill);
    background: #F8FAFC;
    font-size: 13px;
    outline: none;
    width: 240px;
}

/* Shop Category Sections */
.shop-category-section {
    margin-bottom: 36px;
}

.shop-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.shop-section-heading h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.section-count {
    background: #E0E7FF;
    color: #4338CA;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.shop-card {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ifm-shadow-sm);
    transition: all 0.2s ease;
}

.shop-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ifm-shadow-md);
}

.shop-card-media {
    position: relative;
    padding-top: 100%;
    background: radial-gradient(circle, #F8FAFC 0%, #EEF2FF 100%);
    overflow: hidden;
}

.shop-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-card-media img {
    transform: scale(1.06);
}

.shop-card-badge-row {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
}

.badge-rarity {
    background: rgba(15, 23, 42, 0.75);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-bundle {
    background: #F59E0B;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.shop-card-details {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shop-item-type {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ifm-text-muted);
    font-weight: 600;
}

.shop-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ifm-text-main);
    margin: 4px 0 10px 0;
    line-height: 1.3;
}

.shop-item-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #F1F5F9;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vbuck-icon {
    width: 18px;
    height: 18px;
}

.price-val {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
}

.price-regular {
    font-size: 12px;
    color: #94A3B8;
    text-decoration: line-through;
}

.shop-preview-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #64748B;
    padding: 4px;
}

/* Attribution Box */
.tool-attribution-box {
    background: #F8FAFC;
    border: 1px solid var(--ifm-border);
    border-radius: 12px;
    padding: 18px 24px;
    margin-top: 40px;
}

.tool-attribution-box h4 {
    margin: 0 0 4px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ifm-text-secondary);
}

.tool-attribution-box p {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   4. COSMETICS EXPLORER GRID
   ========================================= */
.cosmetics-explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.cosmetic-grid-card {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ifm-shadow-sm);
    transition: all 0.2s ease;
}

.cosmetic-grid-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ifm-shadow-md);
}

.cosmetic-card-image-box {
    position: relative;
    padding-top: 100%;
    background: radial-gradient(circle, #FFFFFF 0%, #F1F5F9 100%);
    overflow: hidden;
}

.cosmetic-card-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform 0.3s ease;
}

.cosmetic-grid-card:hover .cosmetic-card-image-box img {
    transform: scale(1.06);
}

.cosmetic-top-tags {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
}

.badge-rarity-pill {
    background: rgba(15, 23, 42, 0.75);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--ifm-radius-pill);
}

.badge-leaked-pill {
    background: #DC2626;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--ifm-radius-pill);
}

.cosmetic-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cosmetic-type-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #6366F1;
}

.cosmetic-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ifm-text-main);
    margin: 4px 0 6px 0;
    line-height: 1.3;
}

.cosmetic-set-name {
    font-size: 12px;
    color: #64748B;
    margin: 0 0 6px 0;
}

.cosmetic-intro {
    font-size: 11px;
    color: #94A3B8;
    margin-top: auto;
}

/* =========================================
   5. LEAKS ARCHIVE GRID
   ========================================= */
.leaks-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.leak-item-card {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--ifm-shadow-sm);
    transition: all 0.2s ease;
}

.leak-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ifm-shadow-md);
}

.leak-card-img-wrap {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #0F172A;
}

.leak-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.leak-item-card:hover .leak-card-img-wrap img {
    transform: scale(1.03);
}

.leak-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
}

.badge-status {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}

.badge-status.datamined { background: #7C3AED; }
.badge-status.confirmed { background: #16A34A; }
.badge-status.rumored { background: #D97706; }
.badge-status.released { background: #2563EB; }

.badge-version {
    background: rgba(15, 23, 42, 0.85);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.leak-card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.leak-meta-top {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ifm-text-muted);
    margin-bottom: 8px;
}

.leak-card-heading {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.leak-card-heading a {
    color: var(--ifm-text-main);
    text-decoration: none;
}

.leak-card-heading a:hover {
    color: var(--ifm-primary);
}

.leak-card-summary {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ifm-text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

.leak-card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
    font-size: 12px;
    color: var(--ifm-text-muted);
}

/* =========================================
   6. SINGLE RECORD DOSSIER CARD
   ========================================= */
.single-record-header {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.record-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.single-record-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: var(--ifm-text-main);
}

.single-author-date-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--ifm-text-secondary);
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
}

.record-intel-summary-card {
    background: #F8FAFC;
    border: 1px solid var(--ifm-border);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.record-intel-summary-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0F172A;
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.intel-item {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

.intel-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 4px;
}

.intel-val {
    font-size: 14px;
    color: #0F172A;
}

.intel-evidence-box {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-left: 4px solid #7C3AED;
    border-radius: 8px;
    padding: 16px;
}

.intel-evidence-box h4 {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #7C3AED;
}

.intel-evidence-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================
   7. TIMELINE UPDATES & STATUS BANNER
   ========================================= */
.update-status-banner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-left: 5px solid #16A34A;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: var(--ifm-shadow-sm);
}

.update-banner-icon {
    font-size: 28px;
    line-height: 1;
    color: #16A34A;
    flex-shrink: 0;
    margin-top: 2px;
}

.update-banner-content h3 {
    font-size: 16px;
    font-weight: 800;
    color: #166534;
    margin: 0 0 6px 0;
}

.update-banner-content p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #14532D;
    margin: 0 0 12px 0;
}

.update-banner-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: #15803D;
    font-weight: 600;
}

.update-banner-meta .banner-link {
    color: #15803D;
    text-decoration: underline;
    font-weight: 700;
}

.update-banner-meta .banner-link:hover {
    color: #052e16;
}

.updates-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.timeline-update-card {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 14px;
    padding: 22px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    box-shadow: var(--ifm-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-update-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ifm-shadow-md);
    border-color: #CBD5E1;
}

.timeline-badge-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.timeline-version-pill {
    display: inline-block;
    background: #7C3AED;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    width: 100%;
}

.timeline-date-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ifm-text-muted);
}

.timeline-thumb-box {
    width: 140px;
    height: 90px;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: #F1F5F9;
    border: 1px solid var(--ifm-border);
    box-shadow: var(--ifm-shadow-sm);
}

.timeline-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-update-card:hover .timeline-thumb-box img {
    transform: scale(1.05);
}

.timeline-body-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timeline-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.update-type-tag {
    background: #DCFCE7;
    color: #15803D;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.build-string-code {
    font-size: 11.5px;
    color: #64748B;
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 4px;
}

.build-string-code code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.timeline-update-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 6px 0 8px 0;
}

.timeline-update-title a {
    color: var(--ifm-text-main);
    text-decoration: none;
    transition: color 0.15s ease;
}

.timeline-update-title a:hover {
    color: #7C3AED;
}

.timeline-excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 14px;
}

.timeline-footer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: auto;
}

.read-notes-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #7C3AED;
    color: #FFFFFF !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.read-notes-btn:hover {
    background: #6D28D9;
}

.external-epic-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748B;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.external-epic-link:hover {
    color: #0F172A;
    text-decoration: underline;
}

/* =========================================
   VERSION & AES DECRYPTION HISTORY
   ========================================= */
.version-live-card {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 16px;
    padding: 26px 30px;
    margin-bottom: 36px;
    box-shadow: var(--ifm-shadow-sm);
}

.version-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
}

.version-live-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ifm-text-main);
    margin: 0;
}

.status-live-pill {
    background: #DCFCE7;
    color: #15803D;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--ifm-radius-pill);
    letter-spacing: 0.5px;
}

.version-grid-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.version-detail-item {
    background: #F8FAFC;
    border: 1px solid var(--ifm-border);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.detail-code-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: #0F172A;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 6px 10px;
    border-radius: 6px;
    word-break: break-all;
}

.key-copy-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-copy-group .key-val {
    flex-grow: 1;
}

.ifm-copy-code-btn {
    background: #7C3AED;
    color: #FFFFFF;
    border: none;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.ifm-copy-code-btn:hover {
    background: #6D28D9;
}

.ifm-copy-code-btn.copied {
    background: #16A34A;
}

.detail-plain-val {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
}

.historical-versions-panel {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 16px;
    padding: 26px 30px;
    margin-bottom: 36px;
    box-shadow: var(--ifm-shadow-sm);
}

.historical-versions-panel h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ifm-text-main);
    margin: 0 0 20px 0;
}

.badge-success {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.badge-pending {
    display: inline-block;
    background: #FEF3C7;
    color: #B45309;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

/* =========================================
   8. PAGINATION & EMPTY STATES
   ========================================= */
.tool-pagination {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}

.tool-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
}

.tool-pagination a, .tool-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--ifm-border);
    background: #FFFFFF;
    color: var(--ifm-text-main);
    font-size: 13px;
    font-weight: 600;
}

.tool-pagination span.current {
    background: #7C3AED;
    color: #FFFFFF;
    border-color: #7C3AED;
}

.tool-empty-state {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    margin: 30px 0;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* =========================================
   9. COLLABORATION CARDS & TIMELINE THUMBS
   ========================================= */
.collab-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.collab-card-item {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ifm-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collab-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ifm-shadow-md);
}

.collab-card-media-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #F1F5F9;
}

.collab-card-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collab-card-item:hover .collab-card-media-box img {
    transform: scale(1.04);
}

.collab-card-top-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.collab-franchise-tag {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collab-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    background: #FFFFFF;
    color: var(--ifm-text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.collab-status-pill.status-datamined {
    background: #EFF6FF;
    color: #2563EB;
}

.collab-status-pill.status-confirmed {
    background: #DCFCE7;
    color: #16A34A;
}

.collab-status-pill.status-vault-return {
    background: #FEF3C7;
    color: #D97706;
}

.collab-card-body {
    padding: 20px;
    flex-grow: 1;
}

.collab-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px 0;
}

.collab-title a {
    color: var(--ifm-text-main);
    text-decoration: none;
}

.collab-title a:hover {
    color: var(--ifm-accent-violet);
}

.collab-roster {
    font-size: 13px;
    color: var(--ifm-text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.collab-excerpt {
    font-size: 13px;
    color: var(--ifm-text-muted);
    line-height: 1.5;
}

.collab-card-footer {
    padding: 14px 20px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FAFAFA;
}

.collab-window {
    font-size: 12px;
    font-weight: 600;
    color: var(--ifm-text-secondary);
}

.collab-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--ifm-accent-violet);
    text-decoration: none;
}

/* =========================================
   10. DEEP EDUCATIONAL SECTIONS & FAQ
   ========================================= */
.tool-deep-content-section {
    margin-top: 48px;
}

.deep-content-card {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--ifm-shadow-sm);
}

.deep-h2 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--ifm-text-main);
    margin-bottom: 16px;
}

.deep-content-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ifm-text-secondary);
    margin-bottom: 18px;
}

.deep-subheading {
    font-size: 20px;
    font-weight: 800;
    color: var(--ifm-text-main);
    margin: 36px 0 16px 0;
    padding-top: 24px;
    border-top: 1px solid #F1F5F9;
}

.info-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

@media (max-width: 860px) {
    .info-grid-three {
        grid-template-columns: 1fr;
    }
}

.info-box {
    background: #F8FAFC;
    border: 1px solid var(--ifm-border);
    border-radius: 12px;
    padding: 20px;
}

.info-box h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--ifm-text-main);
    margin: 0 0 8px 0;
}

.info-box p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ifm-text-secondary);
    margin: 0 !important;
}

/* FAQ Accordion */
.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.faq-item {
    background: #F8FAFC;
    border: 1px solid var(--ifm-border);
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.faq-item[open] {
    background: #FFFFFF;
    border-color: #CBD5E1;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ifm-text-main);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 18px;
    color: var(--ifm-accent-violet);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ifm-text-secondary);
}

.faq-answer p {
    margin: 0;
}

/* =========================================
   11. V-BUCKS CALCULATOR & COUNTDOWN WIDGETS
   ========================================= */
.calculator-card-widget {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: var(--ifm-shadow-sm);
    margin-bottom: 36px;
}

.calc-widget-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--ifm-text-main);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.calc-widget-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ifm-text-secondary);
    margin: 0 0 24px 0;
    max-width: 780px;
}

.calculator-inputs-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.calculator-inputs-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.calc-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ifm-text-main);
}

.calc-input-wrap {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border: 1.5px solid var(--ifm-border);
    border-radius: 12px;
    padding: 4px 14px;
    transition: all 0.2s ease;
}

.calc-input-wrap:focus-within {
    border-color: var(--ifm-accent-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
    background: #FFFFFF;
}

.calc-vbuck-icon {
    margin-right: 10px;
    flex-shrink: 0;
}

.calc-number-input {
    width: 100%;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: var(--ifm-text-main);
    outline: none;
}

.calc-select {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1.5px solid var(--ifm-border);
    border-radius: 12px;
    background: #F8FAFC;
    font-size: 14px;
    font-weight: 600;
    color: var(--ifm-text-main);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-select:focus {
    border-color: var(--ifm-accent-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
    background: #FFFFFF;
}

.calc-presets-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F1F5F9;
}

.preset-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ifm-text-muted);
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-btn {
    background: #F1F5F9;
    border: 1px solid var(--ifm-border);
    color: var(--ifm-text-main);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--ifm-radius-pill);
    cursor: pointer;
    transition: all 0.15s ease;
}

.preset-btn:hover {
    background: #E2E8F0;
}

.preset-btn.active {
    background: var(--ifm-accent-violet);
    color: #FFFFFF;
    border-color: var(--ifm-accent-violet);
}

.calc-results-display {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1px solid var(--ifm-border);
    border-radius: 16px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
    align-items: center;
}

.result-hero-box {
    border-right: 1px solid #E2E8F0;
    padding-right: 28px;
}

.result-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ifm-text-muted);
    letter-spacing: 0.5px;
}

.result-main-price {
    font-size: 44px;
    font-weight: 900;
    color: var(--ifm-accent-violet);
    line-height: 1.1;
    margin: 6px 0;
}

.result-subtext {
    font-size: 12.5px;
    color: var(--ifm-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.result-breakdown-boxes {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.breakdown-box {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--ifm-shadow-sm);
}

.breakdown-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ifm-text-muted);
    display: block;
}

.breakdown-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--ifm-text-main);
    display: block;
    margin: 2px 0 4px 0;
}

.breakdown-box small {
    font-size: 12px;
    color: var(--ifm-text-secondary);
    display: block;
}

/* Multi-Countdown Grid */
.countdowns-trio-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.countdown-hero-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--ifm-shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.clock-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.25);
    color: #818CF8;
    border: 1px solid rgba(99, 102, 241, 0.35);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--ifm-radius-pill);
    margin-bottom: 12px;
    width: fit-content;
}

.clock-badge.patch {
    background: rgba(22, 163, 74, 0.2);
    color: #4ADE80;
    border-color: rgba(34, 197, 94, 0.3);
}

.clock-badge.shop {
    background: rgba(234, 88, 12, 0.2);
    color: #FB923C;
    border-color: rgba(234, 88, 12, 0.3);
}

.clock-title {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 18px 0;
    line-height: 1.25;
}

.clock-timer-units {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clock-timer-units.compact {
    gap: 6px;
}

.timer-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    min-width: 60px;
}

.countdown-sub-card .timer-box {
    background: #F8FAFC;
    border: 1px solid var(--ifm-border);
    min-width: 50px;
    padding: 8px 10px;
}

.clock-num {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.countdown-sub-card .clock-num {
    color: var(--ifm-text-main);
    font-size: 20px;
}

.clock-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.75;
    margin-top: 4px;
    display: block;
}

.countdown-sub-card .clock-lbl {
    color: var(--ifm-text-muted);
    opacity: 1;
}

.clock-sep {
    font-size: 20px;
    font-weight: 800;
    opacity: 0.5;
    margin-bottom: 12px;
}

.clock-sub {
    font-size: 12.5px;
    opacity: 0.8;
    margin: 16px 0 0 0;
    line-height: 1.4;
}

.countdown-sub-card {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--ifm-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sub-clock-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ifm-text-main);
    margin: 0 0 14px 0;
}

.countdown-sub-card small {
    font-size: 11.5px;
    color: var(--ifm-text-secondary);
    margin-top: 14px;
    display: block;
}

/* XP Results Dashboard */
.xp-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.xp-stat-box {
    background: #F8FAFC;
    border: 1px solid var(--ifm-border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.xp-stat-box.highlight {
    background: #FAF5FF;
    border-color: #E9D5FF;
}

.stat-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ifm-text-muted);
    letter-spacing: 0.5px;
    display: block;
}

.stat-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--ifm-text-main);
    display: block;
    margin: 6px 0;
}

.stat-num.status-green { color: #16A34A; }
.stat-num.status-orange { color: #D97706; }
.stat-num.status-red { color: #DC2626; }

.xp-stat-box small {
    font-size: 12px;
    color: var(--ifm-text-secondary);
    display: block;
}

.alert-box-warning {
    background: #FFFBEB;
    border-left: 4px solid #D97706;
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    color: #92400E;
    font-size: 14px;
    line-height: 1.6;
}

.vbuck-tool-icon {
    display: inline-block;
    vertical-align: middle;
}

/* =========================================
   LOCKER VALUE CALCULATOR WIDGET
   ========================================= */
.calc-widget-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ifm-border);
}

.currency-selector-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.currency-selector-inline label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ifm-text-secondary);
}

.calc-select-compact {
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 600;
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: var(--ifm-radius-sm);
    color: var(--ifm-text-main);
    cursor: pointer;
}

.locker-inputs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.locker-input-card {
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: var(--ifm-radius-md);
    padding: 16px;
    text-align: center;
    box-shadow: var(--ifm-shadow-sm);
    transition: transform 0.15s ease, border-color 0.15s ease;
    border-top: 4px solid var(--ifm-border);
}

.locker-input-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ifm-shadow-md);
}

.locker-input-card.rarity-legendary { border-top-color: #EA580C; background: #FFFAF5; }
.locker-input-card.rarity-epic      { border-top-color: #9333EA; background: #FAF5FF; }
.locker-input-card.rarity-rare      { border-top-color: #2563EB; background: #F0F7FF; }
.locker-input-card.rarity-uncommon  { border-top-color: #16A34A; background: #F2FDF5; }
.locker-input-card.rarity-battlepass{ border-top-color: #D97706; background: #FFFDF5; }
.locker-input-card.cosmetic-tool    { border-top-color: #0284C7; }
.locker-input-card.cosmetic-glider  { border-top-color: #0D9488; }
.locker-input-card.cosmetic-emote   { border-top-color: #E11D48; }

.card-rarity-badge {
    font-size: 14px;
    font-weight: 800;
    color: var(--ifm-text-main);
    margin-bottom: 4px;
}

.rarity-price-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--ifm-text-secondary);
    margin-bottom: 14px;
}

.counter-input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-step {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--ifm-border);
    background: #FFFFFF;
    color: var(--ifm-text-main);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.btn-step:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.locker-qty-input {
    width: 60px;
    height: 34px;
    text-align: center;
    border: 1px solid var(--ifm-border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ifm-text-main);
    background: #FFFFFF;
}

/* OG Exclusives Section */
.og-exclusives-section {
    background: #F8FAFC;
    border: 1px solid var(--ifm-border);
    border-radius: var(--ifm-radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.og-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ifm-text-main);
    margin-top: 0;
    margin-bottom: 6px;
}

.og-section-sub {
    font-size: 13.5px;
    color: var(--ifm-text-secondary);
    margin-bottom: 16px;
}

.og-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.og-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid var(--ifm-border);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.og-checkbox-item:hover {
    border-color: var(--ifm-accent-violet);
    background: #FDFBFF;
}

.og-checkbox {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--ifm-accent-violet);
    cursor: pointer;
}

.og-box-label strong {
    display: block;
    font-size: 13px;
    color: var(--ifm-text-main);
}

.og-box-label small {
    display: block;
    font-size: 11px;
    color: var(--ifm-text-muted);
}

/* Results Display Card */
.locker-results-card {
    background: linear-gradient(145deg, #1E1B4B 0%, #312E81 100%);
    border-radius: 16px;
    padding: 30px;
    color: #FFFFFF;
    box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.25);
}

.results-primary-stat {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
}

.res-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #C7D2FE;
    display: block;
    margin-bottom: 8px;
}

.res-vbucks-highlight {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 42px;
    font-weight: 900;
    color: #FBBF24;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.results-grid-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.res-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.res-box .stat-caption {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #E0E7FF;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.res-box .stat-highlight {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    display: block;
    margin-bottom: 4px;
}

.res-box small {
    font-size: 11px;
    color: #C7D2FE;
    display: block;
}

.collector-tier-pill {
    color: #38BDF8 !important;
}

/* Inventory Distribution Bar */
.locker-distribution-wrap {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
}

.dist-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #C7D2FE;
    margin-bottom: 8px;
}

.dist-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
}

.dist-seg {
    height: 100%;
    transition: width 0.3s ease;
}

.seg-legendary { background: #EA580C; }
.seg-epic      { background: #9333EA; }
.seg-rare      { background: #2563EB; }
.seg-other     { background: #10B981; }


