/* =============================================
   BATTLE PASS SHOP CSS - HOÀN CHỈNH
   Tương thích với donate_shop.css
============================================= */

/* ===== RESET & BASE STYLES ===== */
.battle-pass-shop-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* ===== MAIN CONTAINER ===== */
.battle-pass-main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ===== HEADER & MENU ===== */
.battle-pass-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    padding: 20px 30px;
    color: white;
    border-bottom: 5px solid #FFD166;
}

.battle-pass-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.battle-pass-title h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.battle-pass-title .title-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

.battle-pass-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.battle-pass-nav {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin-top: 15px;
}

.battle-pass-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.battle-pass-breadcrumb a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.battle-pass-breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.battle-pass-breadcrumb .current {
    color: #FFD166;
    font-weight: bold;
}

/* ===== BATTLE PASS INFO CARDS ===== */
.battle-pass-info-section {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.battle-pass-points-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.battle-pass-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.battle-pass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
}

.battle-pass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #FF6B6B;
}

.battle-pass-card.card-coin {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
}

.battle-pass-card.card-total {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
}

.battle-pass-card.card-used {
    background: linear-gradient(135deg, #FFD166 0%, #FFB347 100%);
    color: white;
}

.battle-pass-card.card-vip {
    background: linear-gradient(135deg, #9D50BB 0%, #6E48AA 100%);
    color: white;
    position: relative;
}

.battle-pass-card.card-vip::after {
    content: '👑';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 40px;
    opacity: 0.3;
    transform: rotate(15deg);
}

.battle-pass-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.battle-pass-card-content {
    flex: 1;
}

.battle-pass-card-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.battle-pass-card-value {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.battle-pass-card-subtext {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

/* ===== BATTLE PASS PROGRESS ===== */
.battle-pass-progress-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.battle-pass-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.battle-pass-progress-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.battle-pass-level {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.battle-pass-progress-bar {
    height: 25px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.battle-pass-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ECDC4, #44A08D);
    border-radius: 12px;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.battle-pass-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

.battle-pass-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* ===== SHOP CONTROLS ===== */
.battle-pass-controls-section {
    padding: 30px;
    background: white;
    border-bottom: 1px solid #eee;
}

.battle-pass-shop-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.battle-pass-control-group {
    flex: 1;
    min-width: 200px;
}

.battle-pass-control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.battle-pass-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.battle-pass-select:focus {
    border-color: #FF6B6B;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.battle-pass-search-wrapper {
    flex: 2;
    min-width: 300px;
    position: relative;
}

.battle-pass-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.battle-pass-search-input:focus {
    border-color: #FF6B6B;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.battle-pass-search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

/* ===== SHOP ITEMS GRID ===== */
.battle-pass-shop-section {
    padding: 30px;
}

.battle-pass-shop-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.battle-pass-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ===== SHOP ITEM CARD ===== */
.battle-pass-item-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 3px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.battle-pass-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #FF6B6B;
}

/* Item Badges */
.battle-pass-item-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.battle-pass-item-badge.new {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.battle-pass-item-badge.hot {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.battle-pass-item-badge.vip {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
}

.battle-pass-item-badge.limited {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

/* Stock Indicator */
.battle-pass-stock-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.battle-pass-stock-available {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    border: 1px solid #2ecc71;
}

.battle-pass-stock-low {
    background: rgba(243, 156, 18, 0.2);
    color: #d35400;
    border: 1px solid #f39c12;
}

.battle-pass-stock-out {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
    border: 1px solid #e74c3c;
}

/* Item Header */
.battle-pass-item-header {
    padding: 25px 20px 15px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.battle-pass-item-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #FF8E53, #FFD166, #4ECDC4);
}

.battle-pass-item-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 12px;
    background: white;
    padding: 12px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.battle-pass-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.battle-pass-item-card:hover .battle-pass-item-image img {
    transform: scale(1.1) rotate(5deg);
}

/* FIXED: line-clamp với cả webkit và standard */
.battle-pass-item-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.3;
    min-height: 42px;
    
    /* Standard line-clamp với fallback cho các trình duyệt */
    display: -webkit-box;
    display: -moz-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.battle-pass-item-id {
    font-size: 12px;
    color: #7f8c8d;
    font-family: 'Courier New', monospace;
}

/* Item Body */
.battle-pass-item-body {
    padding: 20px;
}

/* FIXED: line-clamp với cả webkit và standard */
.battle-pass-item-description {
    font-size: 13px;
    color: #546e7a;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 60px;
    
    /* Standard line-clamp với fallback cho các trình duyệt */
    display: -webkit-box;
    display: -moz-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Item Details */
.battle-pass-item-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.battle-pass-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #dee2e6;
}

.battle-pass-detail-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.battle-pass-detail-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.battle-pass-detail-value {
    font-size: 12px;
    color: #2c3e50;
    font-weight: 600;
}

/* Price Section */
.battle-pass-item-price {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #FFF9C4, #FFECB3);
    border-radius: 10px;
    border: 2px solid #FFD54F;
}

.battle-pass-price-label {
    font-size: 12px;
    color: #FF8F00;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.battle-pass-price-value {
    font-size: 32px;
    font-weight: 800;
    color: #FF6B6B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.battle-pass-price-value::before {
    content: '🪙';
    font-size: 24px;
}

.battle-pass-price-unit {
    font-size: 14px;
    color: #FF8E53;
    margin-top: 5px;
    font-weight: 600;
}

/* Item Actions */
.battle-pass-item-actions {
    display: flex;
    gap: 10px;
}

.battle-pass-btn-buy {
    flex: 2;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.battle-pass-btn-buy:hover:not(:disabled) {
    background: linear-gradient(135deg, #FF8E53, #FF6B6B);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.battle-pass-btn-buy:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.battle-pass-btn-buy:disabled .btn-icon {
    animation: none;
}

.battle-pass-btn-detail {
    flex: 1;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.battle-pass-btn-detail:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.battle-pass-btn-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

/* ===== LOADING STATE ===== */
.battle-pass-loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.battle-pass-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF6B6B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.battle-pass-loading-text {
    color: #666;
    font-size: 16px;
    font-weight: 600;
}

/* ===== EMPTY STATE ===== */
.battle-pass-empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.battle-pass-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.battle-pass-empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.battle-pass-empty-message {
    font-size: 16px;
    color: #7f8c8d;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== PURCHASE HISTORY ===== */
.battle-pass-history-section {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin-top: 30px;
    border-radius: 20px;
}

.battle-pass-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.battle-pass-history-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.battle-pass-history-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar Styling */
.battle-pass-history-container::-webkit-scrollbar {
    width: 8px;
}

.battle-pass-history-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.battle-pass-history-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 4px;
}

.battle-pass-history-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF8E53, #FF6B6B);
}

/* History Item */
.battle-pass-history-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-left: 5px solid transparent;
}

.battle-pass-history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.battle-pass-history-item.delivered {
    border-left-color: #2ecc71;
}

.battle-pass-history-item.pending {
    border-left-color: #f39c12;
}

.battle-pass-history-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.battle-pass-history-item.delivered .battle-pass-history-icon {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.battle-pass-history-item.pending .battle-pass-history-icon {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.battle-pass-history-content {
    flex: 1;
}

.battle-pass-history-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.battle-pass-history-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.battle-pass-history-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.battle-pass-history-load-more {
    text-align: center;
    margin-top: 25px;
}

.battle-pass-btn-load-more {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.battle-pass-btn-load-more:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* ===== NOTICE SECTION ===== */
.battle-pass-notice-section {
    padding: 30px;
    background: linear-gradient(135deg, #FFF9C4, #FFECB3);
    border-radius: 15px;
    margin: 30px;
    border: 3px solid #FFD54F;
}

.battle-pass-notice-container {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.battle-pass-notice-icon {
    font-size: 50px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

.battle-pass-notice-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #FF8F00;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.battle-pass-notice-content p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.battle-pass-notice-content p::before {
    content: '•';
    color: #FF6B6B;
    font-size: 18px;
    line-height: 1;
}

/* ===== PURCHASE MODAL ===== */
#battlePassPurchaseModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.battle-pass-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #FF6B6B;
}

/* Modal Header */
.battle-pass-modal-header {
    padding: 25px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border-radius: 17px 17px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.battle-pass-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.battle-pass-modal-close {
    cursor: pointer;
    font-size: 28px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.battle-pass-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.battle-pass-modal-body {
    padding: 25px;
}

/* Item Info */
#battlePassPurchaseItemInfo {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.battle-pass-purchase-image {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    border: 3px solid white;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    padding: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.battle-pass-purchase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.battle-pass-purchase-details {
    flex: 1;
}

.battle-pass-purchase-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.battle-pass-purchase-price {
    font-size: 24px;
    font-weight: 800;
    color: #FF6B6B;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.battle-pass-purchase-id {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.battle-pass-purchase-stock {
    font-size: 13px;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 15px;
    background: #e8f5e9;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

/* Quantity Selector */
.battle-pass-quantity-selector {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.battle-pass-quantity-label {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    display: block;
    font-size: 16px;
}

.battle-pass-quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.battle-pass-qty-btn {
    width: 45px;
    height: 45px;
    border: 3px solid #FF6B6B;
    background: white;
    color: #FF6B6B;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.battle-pass-qty-btn:hover {
    background: #FF6B6B;
    color: white;
    transform: scale(1.1);
}

.battle-pass-current-qty {
    font-size: 20px;
    font-weight: 800;
    color: #2c3e50;
    min-width: 50px;
    text-align: center;
}

.battle-pass-qty-input {
    width: 100px;
    padding: 12px;
    border: 3px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.battle-pass-qty-input:focus {
    border-color: #FF6B6B;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Purchase Summary */
.battle-pass-purchase-summary {
    background: white;
    border: 3px solid #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.battle-pass-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #eee;
    font-size: 15px;
}

.battle-pass-summary-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.battle-pass-summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: #2c3e50;
    padding-top: 20px;
    border-top: 3px solid #eee;
    margin-top: 10px;
}

.battle-pass-summary-row.points-row {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    border-bottom: none;
}

#battlePassRemainingPoints {
    font-weight: bold;
    font-size: 18px;
    color: #2ecc71;
}

#battlePassRemainingPoints.negative {
    color: #e74c3c;
}

/* Modal Footer */
.battle-pass-modal-footer {
    padding: 25px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 0 0 17px 17px;
}

.battle-pass-modal-footer button {
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 15px;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.battle-pass-btn-cancel {
    background: #f5f5f5;
    color: #424242;
    border: 2px solid #ddd;
}

.battle-pass-btn-cancel:hover {
    background: #e0e0e0;
    border-color: #ccc;
    transform: translateY(-2px);
}

.battle-pass-btn-confirm {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.battle-pass-btn-confirm:hover:not(:disabled) {
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.battle-pass-btn-confirm:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== ITEM DETAIL MODAL ===== */
.battle-pass-item-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.battle-pass-item-detail-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #FF6B6B;
}

/* Detail Header */
.battle-pass-detail-header {
    padding: 25px;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.battle-pass-detail-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.battle-pass-detail-close {
    cursor: pointer;
    font-size: 30px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.battle-pass-detail-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Detail Body */
.battle-pass-detail-body {
    padding: 30px;
}

/* Item Main Info */
.battle-pass-detail-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 3px solid #e0e0e0;
}

.battle-pass-detail-image {
    width: 180px;
    height: 180px;
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    padding: 20px;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.battle-pass-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.battle-pass-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.3;
}

.battle-pass-detail-price {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    color: #FF6B6B;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.battle-pass-detail-price::before {
    content: '🪙';
    font-size: 28px;
}

/* Detail Sections */
.battle-pass-detail-section {
    margin-bottom: 35px;
}

.battle-pass-detail-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FF6B6B;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* FIXED: line-clamp cho description trong detail */
.battle-pass-detail-description {
    font-size: 16px;
    color: #546e7a;
    line-height: 1.8;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #3498db;
    
    /* Không giới hạn số dòng trong detail */
    overflow: visible;
    display: block;
    max-height: none;
}

/* Detail Grid */
.battle-pass-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.battle-pass-detail-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #FF6B6B;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.battle-pass-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.battle-pass-detail-label {
    font-size: 13px;
    color: #6c757d;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.battle-pass-detail-value {
    font-weight: 800;
    color: #2c3e50;
    display: block;
    font-size: 18px;
}

/* Attributes */
.battle-pass-attributes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.battle-pass-attribute-item {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.battle-pass-attribute-item:hover {
    border-color: #FF6B6B;
    transform: scale(1.05);
}

.battle-pass-attribute-label {
    font-size: 13px;
    color: #6c757d;
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.battle-pass-attribute-value {
    font-weight: 900;
    color: #2c3e50;
    display: block;
    margin-top: 5px;
    font-size: 20px;
}

/* Detail Note */
.battle-pass-detail-note {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    padding: 25px;
    border-radius: 12px;
    color: #2e7d32;
    margin-top: 30px;
    border-left: 5px solid #4CAF50;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.battle-pass-detail-note i {
    font-size: 24px;
    flex-shrink: 0;
}

/* Detail Footer */
.battle-pass-detail-footer {
    padding: 25px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.battle-pass-btn-close-detail {
    padding: 12px 30px;
    background: #f5f5f5;
    color: #424242;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.battle-pass-btn-close-detail:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.battle-pass-btn-buy-from-detail {
    padding: 12px 30px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.battle-pass-btn-buy-from-detail:hover {
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* ===== CATEGORY FILTER ===== */
.battle-pass-category-filter {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.battle-pass-category-btn {
    padding: 12px 25px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.battle-pass-category-btn:hover {
    border-color: #FF6B6B;
    color: #FF6B6B;
    transform: translateY(-2px);
}

.battle-pass-category-btn.active {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border-color: #FF6B6B;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* ===== VIP BENEFITS ===== */
.battle-pass-vip-section {
    padding: 30px;
    background: linear-gradient(135deg, #FFF9C4, #FFECB3);
    border-radius: 20px;
    margin: 30px 0;
    border: 4px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.battle-pass-vip-section::before {
    content: '👑';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.battle-pass-vip-title {
    font-size: 22px;
    font-weight: 800;
    color: #8B4513;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.battle-pass-vip-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.battle-pass-vip-benefit {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #FFD700;
    transition: all 0.3s;
}

.battle-pass-vip-benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.battle-pass-vip-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.battle-pass-vip-benefit h5 {
    font-size: 16px;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 10px;
}

.battle-pass-vip-benefit p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .battle-pass-points-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .battle-pass-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .battle-pass-main-container {
        border-radius: 15px;
    }
    
    .battle-pass-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .battle-pass-shop-controls {
        flex-direction: column;
    }
    
    .battle-pass-control-group,
    .battle-pass-search-wrapper {
        min-width: 100%;
    }
    
    .battle-pass-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .battle-pass-attributes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .battle-pass-shop-container {
        padding: 10px;
    }
    
    .battle-pass-header {
        padding: 15px 20px;
    }
    
    .battle-pass-title h1 {
        font-size: 24px;
    }
    
    .battle-pass-points-info {
        grid-template-columns: 1fr;
    }
    
    .battle-pass-items-grid {
        grid-template-columns: 1fr;
    }
    
    .battle-pass-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .battle-pass-attributes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .battle-pass-notice-container {
        flex-direction: column;
        text-align: center;
    }
    
    .battle-pass-vip-benefits {
        grid-template-columns: 1fr;
    }
    
    .battle-pass-modal-footer {
        flex-direction: column;
    }
    
    .battle-pass-modal-footer button {
        width: 100%;
        min-width: auto;
    }
    
    .battle-pass-detail-footer {
        flex-direction: column;
    }
    
    .battle-pass-detail-footer button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .battle-pass-card {
        padding: 20px;
    }
    
    .battle-pass-card-value {
        font-size: 28px;
    }
    
    .battle-pass-item-name {
        font-size: 15px;
    }
    
    .battle-pass-price-value {
        font-size: 28px;
    }
    
    .battle-pass-item-actions {
        flex-direction: column;
    }
    
    #battlePassPurchaseItemInfo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .battle-pass-purchase-image {
        width: 80px;
        height: 80px;
    }
    
    .battle-pass-quantity-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .battle-pass-qty-input {
        width: 100%;
        margin-top: 10px;
    }
    
    .battle-pass-history-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .battle-pass-category-filter {
        justify-content: center;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .battle-pass-shop-container {
        background: white;
        padding: 0;
    }
    
    .battle-pass-main-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .battle-pass-btn-buy,
    .battle-pass-btn-detail,
    .battle-pass-modal-close,
    .battle-pass-detail-close,
    .battle-pass-btn-load-more {
        display: none !important;
    }
    
    .battle-pass-item-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .battle-pass-main-container {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .battle-pass-card:not(.card-coin):not(.card-total):not(.card-used):not(.card-vip) {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .battle-pass-detail-label,
    .battle-pass-detail-value,
    .battle-pass-attribute-label,
    .battle-pass-attribute-value {
        color: #ffffff;
    }
    
    .battle-pass-item-details {
        background: #2d2d2d;
    }
    
    .battle-pass-detail-row {
        border-bottom-color: #444;
    }
}

/* ===== ACCESSIBILITY ===== */
.battle-pass-btn-buy:focus,
.battle-pass-btn-detail:focus,
.battle-pass-modal-close:focus,
.battle-pass-detail-close:focus,
.battle-pass-qty-btn:focus,
.battle-pass-btn-load-more:focus {
    outline: 3px solid #FF6B6B;
    outline-offset: 2px;
}

.battle-pass-select:focus,
.battle-pass-search-input:focus,
.battle-pass-qty-input:focus {
    outline: 3px solid rgba(255, 107, 107, 0.3);
    outline-offset: 0;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.battle-pass-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.battle-pass-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.battle-pass-scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

/* ===== FOOTER ===== */
.battle-pass-footer {
    padding: 30px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
    margin-top: 50px;
    border-radius: 20px 20px 0 0;
}

.battle-pass-footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.battle-pass-footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.battle-pass-footer-links a:hover {
    color: #FF6B6B;
}

.battle-pass-copyright {
    font-size: 13px;
    color: #95a5a6;
    margin-top: 15px;
}

/* ===== SPECIAL EFFECTS ===== */
.battle-pass-sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 1s linear infinite;
}

@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0;
    }
}

/* ===== UTILITY CLASSES ===== */
.battle-pass-text-center {
    text-align: center;
}

.battle-pass-text-right {
    text-align: right;
}

.battle-pass-mt-20 {
    margin-top: 20px;
}

.battle-pass-mb-20 {
    margin-bottom: 20px;
}

.battle-pass-mt-30 {
    margin-top: 30px;
}

.battle-pass-mb-30 {
    margin-bottom: 30px;
}

.battle-pass-p-20 {
    padding: 20px;
}

.battle-pass-hidden {
    display: none !important;
}

.battle-pass-visible {
    display: block !important;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF8E53, #FF6B6B);
}

/* ===== LOADING OVERLAY ===== */
.battle-pass-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

.battle-pass-loading-overlay-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #FF6B6B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

.battle-pass-loading-overlay-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    animation: pulse 2s infinite;
}

/* ===== NOTIFICATION TOAST ===== */
.battle-pass-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.3);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideUp 0.3s ease-out;
    max-width: 90%;
}

.battle-pass-toast.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.3);
}

.battle-pass-toast.warning {
    background: linear-gradient(135deg, #f39c12, #d35400);
    box-shadow: 0 10px 40px rgba(243, 156, 18, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ===== SHOP CONTROLS ===== */
.battle-pass-controls-section {
    padding: 30px;
    background: white;
    border-bottom: 1px solid #eee;
}

.battle-pass-shop-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.battle-pass-control-group {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.battle-pass-control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.battle-pass-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.battle-pass-search-wrapper {
    flex: 2;
    min-width: 300px;
    max-width: 400px; /* Giới hạn chiều rộng tối đa */
    position: relative;
}

.battle-pass-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box; /* Quan trọng: bao gồm padding trong width */
}

.battle-pass-search-input:focus {
    border-color: #FF6B6B;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.battle-pass-search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
}