/**
 * Iteminfo Database CSS - Version 2
 * แสดงข้อมูลไอเทมในเกม โดยใช้ BaseID เป็นตัวจัดกลุ่ม
 */

/* ===== Container ===== */
.iteminfo-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ===== Header Section ===== */
.iteminfo-header {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d1f47 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.iteminfo-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
    animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.iteminfo-header h1 {
    color: #ffd700;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
}

.iteminfo-header p {
    color: #a0aec0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ===== Search & Filter Section ===== */
.search-filter-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #F07D1A;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #a0aec0;
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.filter-group select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23667eea'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2rem;
}

.filter-group select:focus {
    outline: none;
    border-color: #F07D1A;
    background-color: white;
}

.search-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #F07D1A, #D54A1D);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.reset-btn {
    padding: 0.75rem 1.5rem;
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reset-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

/* ===== Stats Bar ===== */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #c7d2fe;
}

.stats-info {
    display: flex;
    gap: 2rem;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-item .icon {
    font-size: 1.3rem;
}

.stats-item .label {
    color: #64748b;
    font-size: 0.9rem;
}

.stats-item .value {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.6rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.view-btn.active {
    background: linear-gradient(135deg, #F07D1A, #D54A1D);
    border-color: #F07D1A;
    color: white;
}

.view-btn:hover:not(.active) {
    border-color: #F07D1A;
    background: #f0f4ff;
}

/* ===== Item Cards Grid ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #F07D1A;
}

.item-card-header {
    position: relative;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.item-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.item-header-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.1rem;
}

.item-name-th {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.item-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.part-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    color: #475569;
}

.base-id {
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.variant-count {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #F07D1A, #D54A1D);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.item-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.item-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
}

.tag.class-tag {
    color: white;
}

.tag.gender-tag {
    background: #e2e8f0;
    color: #475569;
}

.tag.level-tag {
    background: #dbeafe;
    color: #1e40af;
}

.item-quick-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-stat {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.quick-stat.atk {
    background: #fee2e2;
    color: #dc2626;
}

.quick-stat.def {
    background: #dbeafe;
    color: #2563eb;
}

.quick-stat.hp {
    background: #dcfce7;
    color: #16a34a;
}

/* ===== Group Modal ===== */
.group-modal-overlay,
.item-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.group-modal-overlay.active,
.item-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.group-modal,
.item-modal {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    margin: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-modal-header,
.item-modal-header {
    position: relative;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-back {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e293b;
    font-weight: 500;
}

.modal-back:hover {
    background: rgba(0, 0, 0, 0.2);
}

.group-icon,
.item-detail-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    margin-top: 1.5rem;
}

.group-info,
.item-detail-info {
    flex: 1;
    padding-top: 2.5rem;
    padding-right: 2rem;
}

.group-info h2,
.item-detail-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.name-th {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.group-meta,
.item-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.meta-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-weight: 500;
}

.meta-tag.part {
    background: #e2e8f0;
    color: #475569;
}

.meta-tag.class {
    color: white;
}

.meta-tag.gender {
    background: #fef3c7;
    color: #92400e;
}

.meta-tag.baseid,
.meta-tag.id {
    background: #f1f5f9;
    color: #64748b;
}

.meta-tag.upgrade {
    background: linear-gradient(135deg, #F07D1A, #D54A1D);
    color: white;
}

.group-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.group-modal-body,
.item-modal-body {
    padding: 1.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Variants Table ===== */
.variants-section {
    margin-bottom: 2rem;
}

.variants-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.variants-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.variants-table thead {
    background: linear-gradient(135deg, #F07D1A, #D54A1D);
    color: white;
}

.variants-table th {
    padding: 1rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.variants-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.variants-table tbody tr:hover {
    background: #f8fafc;
}

.variants-table tbody tr.upgraded {
    background: #fefce8;
}

.variants-table tbody tr.upgraded:hover {
    background: #fef9c3;
}

.variants-table td {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    color: #1e293b;
}

.id-cell {
    font-weight: 600;
    color: #64748b;
}

.upgrade-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #475569;
}

.upgrade-badge.upgraded {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.stat-cell.atk {
    color: #dc2626;
    font-weight: 600;
}

.stat-cell.def {
    color: #2563eb;
    font-weight: 600;
}

.stat-cell.hp {
    color: #16a34a;
    font-weight: 600;
}

.level-cell {
    color: #7c3aed;
    font-weight: 500;
}

.price-cell {
    color: #ca8a04;
    font-weight: 600;
}

.view-detail-btn {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #F07D1A, #D54A1D);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-detail-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===== Drop Section ===== */
.drop-section {
    margin-bottom: 1.5rem;
}

.drop-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drop-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 1px solid #fbbf24;
}

.drop-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.drop-info {
    flex: 1;
}

.drop-mob {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.15rem;
}

.drop-map {
    font-size: 0.85rem;
    color: #78350f;
}

.drop-rate {
    padding: 0.4rem 0.8rem;
    background: #92400e;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Rare Drop Styling */
.rare-drop {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #8b5cf6);
    background-size: 200% 200%;
    color: white;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    animation: rareShimmer 2s ease infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

@keyframes rareShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== Item Detail Stats ===== */
.detail-section {
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-box .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.stat-box .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-box .stat-value.positive {
    color: #16a34a;
}

.stat-box.atk {
    border-left: 4px solid #dc2626;
}

.stat-box.def {
    border-left: 4px solid #2563eb;
}

.stat-box.hp {
    border-left: 4px solid #16a34a;
}

/* ===== Requirements ===== */
.requirements-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #F07D1A;
}

.req-item .req-icon {
    font-size: 1.2rem;
}

.req-item .req-label {
    flex: 1;
    color: #64748b;
    font-size: 0.9rem;
}

.req-item .req-value {
    font-weight: 600;
    color: #1e293b;
}

/* ===== Prices ===== */
.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
}

.price-item .price-icon {
    font-size: 1.5rem;
}

.price-item .price-label {
    font-size: 0.85rem;
    color: #64748b;
}

.price-item .price-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.price-item.buy .price-value {
    color: #f59e0b;
}

.price-item.sell .price-value {
    color: #16a34a;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .iteminfo-header h1 {
        font-size: 1.75rem;
    }

    .search-row {
        flex-direction: column;
    }

    .search-input-wrapper {
        min-width: 100%;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: 100%;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .group-modal-header,
    .item-modal-header {
        flex-direction: column;
        text-align: center;
        padding-top: 3.5rem;
    }

    .group-icon,
    .item-detail-icon {
        margin: 0 auto;
    }

    .group-info,
    .item-detail-info {
        padding-top: 1rem;
        padding-right: 0;
    }

    .group-meta,
    .item-detail-meta {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .variants-table-wrapper {
        margin: 0 -1rem;
        border-radius: 0;
    }
}

/* =========================================
   DETAIL & SERIES PAGE STYLES (ADDED)
   ========================================= */

.item-detail-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: fadeIn 0.3s ease-out;
}

.detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    color: #F07D1A;
}

/* Header Card */
.detail-header {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #F07D1A, #D54A1D);
}

.detail-item-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.item-icon-large {
    width: 64px;
    height: 64px;
    transform: scale(1.5);
    background-repeat: no-repeat;
    background-position: center;
}

.detail-item-info {
    flex: 1;
}

.detail-item-info h1 {
    font-size: 2rem;
    color: #1e293b;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    font-weight: 800;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.badge {
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.id-badge {
    background: #f1f5f9;
    color: #64748b;
    font-family: monospace;
}

.part-badge {
    background: #e2e8f0;
    color: #475569;
}

.class-badge {
    color: white;
}

/* Section Container */
.detail-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

/* Variant Table (Fixed Visibility) */
.variants-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.variants-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.variants-table th {
    background-color: #F07D1A !important;
    color: white !important;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: none;
}

.variants-table tr {
    background-color: white !important;
    /* Force white bg */
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.variants-table tr:last-child {
    border-bottom: none;
}

.variants-table td {
    padding: 1rem;
    color: #334155;
    vertical-align: middle;
}

.variants-table tr:hover {
    background-color: #fff7ed !important;
    /* Soft orange hover */
}

/* Upgrade Badge */
.upgrade-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #94a3b8;
}

.upgrade-badge.upgraded {
    background: #ffedd5;
    color: #ea580c;
}

/* Additional Grid Styles */
.info-grid,
.stats-grid {
    display: grid;
    gap: 1rem;
}

.info-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.info-item,
.stat-box {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Info Item Variants */
.info-item.bonus {
    background: #f0fdf4;
    /* Green tint */
    border-color: #bbf7d0;
}

.info-item.skill {
    background: #f0fdf4;
    /* Green tint */
    border-color: #bbf7d0;
}

.info-item.bonus .info-value {
    color: #16a34a;
}

.info-item.percent {
    background: #eff6ff;
    /* Blue tint */
    border-color: #bfdbfe;
}

.info-item.percent .info-value {
    color: #2563eb;
}

/* Drop Sources Grid */
.drop-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.drop-source-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
    text-decoration: none;
}

.drop-source-card:hover {
    transform: translateY(-2px);
    border-color: #F07D1A;
    box-shadow: 0 4px 12px rgba(240, 125, 26, 0.1);
}

.drop-icon {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid #e2e8f0;
}

.drop-info {
    flex: 1;
}

.drop-mob {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.2rem;
    display: block;
}

.drop-map {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
}

.drop-rate {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
    background: #dcfce7;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.25rem;
}

/* View Toggle in Stats Bar */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    margin-left: auto;
    /* Push to right */
}

.view-btn {
    border: none;
    background: transparent;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.view-btn:hover {
    color: #1e293b;
    background: #e2e8f0;
}

.view-btn.active {
    background: white;
    color: #F07D1A;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Category & Landing Page Styles (Improved)
   ========================================= */

.category-section {
    margin-top: 2rem;
    padding: 0 0.5rem;
}

.section-header {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-desc {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    border-color: #F07D1A;
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(240, 125, 26, 0.15);
}

.category-icon {
    font-size: 2.25rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.category-card:hover .category-icon {
    background: #fff7ed;
    border-color: #ffedd5;
    transform: scale(1.1) rotate(-5deg);
}

.category-info {
    flex: 1;
    z-index: 1;
}

.category-info h3 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.category-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.category-arrow {
    font-size: 1.25rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.category-card:hover .category-arrow {
    color: #F07D1A;
    opacity: 1;
    transform: translateX(0);
}

/* Breadcrumb Improved */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb a:hover {
    color: #F07D1A;
    background: rgba(240, 125, 26, 0.05);
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: 6px;
}

.breadcrumb .current {
    color: #0f172a;
    font-weight: 600;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}