/* ============================================================================
   TAZA Bonus - Bubble Style CSS (Пузырьковый стиль) - COMPACT VERSION
   Version: 1.1
   Updated: 2025-11-07
   Description: Complete bubble-themed design system with COMPACT statistics cards
   ============================================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Soft Premium palette - v22 */
    --taza-blue: #3B7DD8;
    --taza-light-blue: #5B9AE8;
    --taza-dark-blue: #2563EB;
    --taza-gradient: linear-gradient(135deg, #3B7DD8 0%, #5B9AE8 100%);
    --bubble-white: rgba(255, 255, 255, 0.15);
    --bubble-hover: rgba(255, 255, 255, 0.25);
    --bubble-active: rgba(255, 255, 255, 0.35);

    /* Muted palette for icons - v22 */
    --color-prize: #E8985A;
    --color-prize-bg: #FDF0E6;
    --color-success-muted: #5EAD6C;
    --color-success-bg: #EDF7EF;
    --color-partners: #6DB3C0;
    --color-partners-bg: #EBF6F8;
    --color-gold-muted: #D4B85A;
    --color-gold-bg: #FBF7E9;
    --color-btn-secondary: #5B9AE8;
}

/* ===== 1. NAVBAR - ПУЗЫРЬКОВЫЙ СТИЛЬ ===== */
.navbar-bubbles {
    background: var(--taza-gradient);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(59, 125, 216, 0.25);
    /* Compact height + rounded bottom corners */
    padding: 8px 16px;
    border-radius: 0 0 20px 20px;
}

/* Анимированные пузырьки на фоне navbar */
.navbar-bubbles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 2%, transparent 2%),
        radial-gradient(circle at 60% 30%, rgba(255,255,255,0.15) 3%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 2.5%, transparent 2.5%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.12) 3.5%, transparent 3.5%),
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08) 2.5%, transparent 2.5%);
    background-size: 200% 200%;
    animation: bubbleFloat 20s infinite linear;
    pointer-events: none;
}

@keyframes bubbleFloat {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.navbar-bubbles .navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.navbar-bubbles .nav-link {
    color: white !important;
    background: var(--bubble-white);
    border-radius: 50px;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.navbar-bubbles .nav-link:hover {
    background: var(--bubble-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar-bubbles .nav-link.active,
.navbar-bubbles .nav-link:active {
    background: white;
    color: var(--taza-blue) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Dropdown menu для navbar */
.navbar-bubbles .dropdown-menu {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 1050;
}

.navbar-bubbles .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
    color: #333;
}

.navbar-bubbles .dropdown-item:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--taza-blue);
}

.navbar-bubbles .dropdown-item i {
    color: var(--taza-blue);
}

/* Ensure dropdown is always visible */
.navbar-bubbles .dropdown {
    position: relative;
    z-index: 1050;
}

.navbar-bubbles .nav-item.dropdown {
    position: relative;
}

/* Mobile toggler */
.navbar-bubbles .navbar-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.navbar-bubbles .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-bubbles .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile submenu - always visible on mobile */
.navbar-bubbles .nav-submenu {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.5rem 0;
}

.navbar-bubbles .nav-section-header {
    font-weight: 600;
    color: white !important;
    padding: 0.5rem 1rem;
    pointer-events: none;
    background: transparent !important;
    border-radius: 0;
    margin: 0;
}

.navbar-bubbles .nav-submenu-item {
    padding-left: 2.5rem !important;
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.08) !important;
    margin: 0.15rem 0.5rem;
    border-radius: 25px;
}

.navbar-bubbles .nav-submenu-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2) !important;
}

.navbar-bubbles .nav-submenu-info {
    padding: 0.25rem 1rem 0.25rem 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.navbar-bubbles .nav-submenu-info .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== 2. КАРТОЧКИ - ПУЗЫРЬКОВЫЙ АКЦЕНТ ===== */
.card-bubbles {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    background: white;
}

.card-bubbles:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,123,255,0.15);
}

/* Пузырьковая подложка для заголовков карточек */
.card-bubbles .card-header {
    background: linear-gradient(135deg, var(--taza-blue) 0%, var(--taza-light-blue) 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.card-bubbles .card-header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 15% 40%, rgba(255,255,255,0.15) 10px, transparent 10px),
        radial-gradient(circle at 75% 60%, rgba(255,255,255,0.1) 8px, transparent 8px),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.12) 6px, transparent 6px);
    pointer-events: none;
}

/* ===== 3. КНОПКИ - ПУЗЫРЬКОВЫЙ СТИЛЬ ===== */
.btn-bubbles,
.btn-primary {
    background: var(--taza-blue);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-bubbles::before,
.btn-primary::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2) 5px, transparent 5px),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15) 4px, transparent 4px);
    pointer-events: none;
}

.btn-bubbles:hover,
.btn-primary:hover {
    background: var(--taza-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-bubbles:active,
.btn-primary:active {
    transform: translateY(0);
}

/* Secondary button variant */
.btn-outline-primary {
    border: 2px solid var(--taza-blue);
    color: var(--taza-blue);
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--taza-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

/* ===== 4. СТАТИСТИЧЕСКИЕ КАРТОЧКИ - COMPACT VERSION ===== */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;  /* REDUCED from 1.5rem */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0,123,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    border-color: rgba(0,123,255,0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,123,255,0.15);
}

.stat-card .stat-icon {
    width: 48px;  /* REDUCED from 60px */
    height: 48px;  /* REDUCED from 60px */
    background: linear-gradient(135deg, var(--taza-blue) 0%, var(--taza-light-blue) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;  /* REDUCED from 1.8rem */
    color: white;
    margin-bottom: 0.75rem;  /* REDUCED from 1rem */
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 8px, transparent 8px),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.2) 6px, transparent 6px);
}

/* Compact text inside stat-card */
.stat-card .card-body {
    padding: 0.75rem;
}

.stat-card .card-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stat-card .card-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-card .card-title small {
    font-size: 1rem;
}

.stat-card small {
    font-size: 0.8rem;
    line-height: 1.3;
}

/* ===== 5. ТАБЛИЦЫ ===== */
.table-bubbles {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.table-bubbles thead {
    background: linear-gradient(135deg, var(--taza-blue) 0%, var(--taza-light-blue) 100%);
    color: white;
    position: relative;
}

.table-bubbles thead::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 10% 50%, rgba(255,255,255,0.15) 12px, transparent 12px),
        radial-gradient(circle at 50% 30%, rgba(255,255,255,0.1) 10px, transparent 10px),
        radial-gradient(circle at 90% 70%, rgba(255,255,255,0.12) 8px, transparent 8px);
    pointer-events: none;
}

.table-bubbles thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    background: transparent;
    color: white;
}

.table-bubbles tbody tr {
    transition: all 0.2s ease;
}

.table-bubbles tbody tr:hover {
    background: rgba(0,123,255,0.05);
}

.table-bubbles tbody td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

/* ===== 6. BADGE - ПУЗЫРЬКОВЫЙ ===== */
.badge-bubbles {
    background: var(--taza-blue);
    color: white;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.badge-bubbles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 25% 50%, rgba(255,255,255,0.3) 4px, transparent 4px),
        radial-gradient(circle at 75% 50%, rgba(255,255,255,0.2) 3px, transparent 3px);
    pointer-events: none;
}

/* Bootstrap badge overrides */
.badge.bg-primary {
    background: var(--taza-blue) !important;
}

/* ===== 7. ФОРМЫ ===== */
.form-bubbles .form-control,
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.form-bubbles .form-control:focus,
.form-control:focus {
    border-color: var(--taza-blue);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.15);
    outline: none;
}

.form-bubbles .form-label,
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-bubbles .form-select,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.7rem 1rem;
}

.form-bubbles .form-select:focus,
.form-select:focus {
    border-color: var(--taza-blue);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.15);
}

/* ===== 8. АЛЕРТЫ ===== */
.alert-bubbles {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.alert-bubbles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.4) 8px, transparent 8px),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.3) 6px, transparent 6px);
    pointer-events: none;
}

/* Alert primary override */
.alert-primary {
    background: rgba(0,123,255,0.1);
    color: var(--taza-blue);
    border-left: 4px solid var(--taza-blue);
}

/* ===== 9. ПРИЗОВАЯ СЕКЦИЯ (DASHBOARD) - COMPACT ===== */
.prize-section-bubbles {
    background: linear-gradient(135deg, var(--taza-blue) 0%, var(--taza-light-blue) 100%);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,123,255,0.3);
}

.prize-section-bubbles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 15% 60%, rgba(255,255,255,0.12) 40px, transparent 40px),
        radial-gradient(circle at 65% 20%, rgba(255,255,255,0.15) 50px, transparent 50px),
        radial-gradient(circle at 85% 80%, rgba(255,255,255,0.1) 35px, transparent 35px),
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.08) 25px, transparent 25px);
    animation: bubbleFloat 25s infinite linear;
    pointer-events: none;
}

/* Prize section header */
.prize-section-bubbles .prize-section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.prize-section-bubbles h2 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== 10. PAGINATION ===== */
.pagination .page-item .page-link {
    border-radius: 8px;
    margin: 0 0.2rem;
    border: none;
    color: var(--taza-blue);
    transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
    background: rgba(0,123,255,0.1);
    color: var(--taza-dark-blue);
}

.pagination .page-item.active .page-link {
    background: var(--taza-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* ===== 11. МОДАЛЬНЫЕ ОКНА ===== */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--taza-blue) 0%, var(--taza-light-blue) 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 12px, transparent 12px),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1) 10px, transparent 10px);
    pointer-events: none;
}

.modal-title {
    position: relative;
    z-index: 1;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

/* ===== 12. RESPONSIVE ADJUSTMENTS - COMPACT ===== */

/* Desktop and Tablet (769px+) */
@media (min-width: 769px) {
    .stat-card {
        padding: 1.1rem;
    }
    
    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

/* Tablet (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .stat-card {
        padding: 0.85rem;
        margin-bottom: 0.85rem;
    }
    
    .stat-card .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .stat-card .card-body {
        padding: 0.65rem;
    }
    
    .stat-card .card-subtitle {
        font-size: 0.82rem;
    }
    
    .stat-card .card-title {
        font-size: 1.6rem;
    }
    
    .navbar-bubbles .nav-link {
        margin: 0.3rem 0;
        display: block;
    }
}

/* Mobile (576px and below) - VERY COMPACT */
@media (max-width: 576px) {
    .navbar-bubbles {
        padding: 10px 12px;
        border-radius: 0 0 16px 16px;
    }
    
    .navbar-bubbles .navbar-brand {
        font-size: 1.15rem;
    }
    
    .navbar-bubbles .navbar-toggler {
        padding: 4px 8px;
    }
    
    .card-bubbles {
        margin-bottom: 1rem;
    }
    
    /* Prize section compact on mobile */
    .prize-section-bubbles {
        padding: 1.25rem !important;
    }
    
    .prize-section-header {
        margin-bottom: 1rem !important;
    }
    
    .prize-section-title {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    /* Statistics cards - VERY COMPACT */
    .stat-card {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .stat-card .stat-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 12px !important;
    }
    
    .stat-card .card-body {
        padding: 0.5rem !important;
    }
    
    .stat-card .card-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    .stat-card .card-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.2 !important;
    }
    
    .stat-card .card-title small {
        font-size: 0.85rem !important;
    }
    
    .stat-card small {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    /* Reduce gap between stat cards */
    .row.mt-4 > .col-12 {
        margin-bottom: 0.5rem !important;
    }
    
    .btn-bubbles,
    .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ===== 13. ANIMATION UTILITIES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation for multiple items */
.stagger-animation > * {
    animation: fadeInUp 0.5s ease-out;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }

/* ===== 14. UTILITY CLASSES ===== */
.text-bubbles {
    color: var(--taza-blue);
}

.bg-bubbles {
    background: var(--taza-blue);
    color: white;
}

.border-bubbles {
    border: 2px solid var(--taza-blue);
}

.shadow-bubbles {
    box-shadow: 0 4px 20px rgba(0,123,255,0.15);
}

/* Override Bootstrap primary color */
.text-primary {
    color: var(--taza-blue) !important;
}

.bg-primary {
    background-color: var(--taza-blue) !important;
}

.border-primary {
    border-color: var(--taza-blue) !important;
}

/* ===== 15. MOBILE ORDER CARD ===== */
.order-card-mobile {
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: var(--border-radius-bubble);
}

.order-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.order-card-mobile:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ===== 16. STICKY TABLE HEADERS ===== */
.table-bubbles {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-bubbles thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-bubbles thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid var(--taza-blue);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-bubbles tbody tr {
    transition: background-color 0.15s ease;
}

.table-bubbles tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table-bubbles tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

/* Ensure sticky works inside scrollable containers */
.table-responsive {
    max-height: 70vh;
    overflow-y: auto;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .table-bubbles thead th,
    .table-bubbles tbody td {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ===== 17. PARTNER CARDS - COMPACT ROW DESIGN (Variant A) ===== */

/* Partner card container */
.partner-row-card {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.partner-row-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Main row - avatar, info, whatsapp */
.partner-row-card .partner-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar - rounded square with initials */
.partner-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Avatar colors by role */
.partner-avatar.bg-regional {
    background: linear-gradient(135deg, var(--color-partners) 0%, #5AA3B0 100%);
}

.partner-avatar.bg-local {
    background: linear-gradient(135deg, var(--color-success-muted) 0%, #4E9D5C 100%);
}

.partner-avatar.bg-shop {
    background: linear-gradient(135deg, #8E8E93 0%, #6D6D72 100%);
}

.partner-avatar.bg-manager {
    background: linear-gradient(135deg, var(--color-gold-muted) 0%, #C4A84A 100%);
}

/* Partner info - vertical flex for name row + meta */
.partner-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* First row: name + badges */
.partner-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.partner-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    white-space: nowrap;
}

/* Badges - inline with name */
.badge-active {
    background: var(--color-success-bg);
    color: var(--color-success-muted);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-inactive {
    background: #FDECEC;
    color: #D45A5A;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-role {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-role.role-regional {
    background: var(--color-partners-bg);
    color: var(--color-partners);
}

.badge-role.role-local {
    background: var(--color-success-bg);
    color: var(--color-success-muted);
}

.badge-role.role-shop {
    background: #F2F2F7;
    color: #636366;
}

.badge-role.role-manager {
    background: var(--color-gold-bg);
    color: var(--color-gold-muted);
}

/* Second row: meta info (address, days) */
.partner-meta {
    font-size: 13px;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.partner-meta i {
    font-size: 12px;
    color: #aaa;
}

/* WhatsApp button */
.partner-actions {
    flex-shrink: 0;
}

.btn-whatsapp {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #25D366;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    color: white;
    transform: scale(1.05);
}

/* Mobile adjustments for partner cards */
@media (max-width: 576px) {
    .partner-row-card {
        padding: 12px 14px;
    }

    .partner-row-card .partner-row {
        gap: 10px;
    }

    .partner-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 16px;
    }

    .partner-name {
        font-size: 14px;
    }

    .partner-meta {
        font-size: 12px;
    }

    .btn-whatsapp {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }

    .badge-active,
    .badge-inactive,
    .badge-role {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ===== 18. PARTNERS HEADER - COMPACT STATS BADGE ===== */

.partners-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
    padding: 0 4px;
}

.partners-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--taza-blue) 0%, var(--taza-light-blue) 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 125, 216, 0.3);
}

.partners-stats-badge .stat-total {
    color: white;
    font-weight: 600;
}

.partners-stats-badge .stat-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.partners-stats-badge .stat-active {
    color: #90EE90;
}

.partners-stats-badge .stat-inactive {
    color: #FFB6B6;
}

/* Mobile */
@media (max-width: 480px) {
    .partners-stats-badge {
        padding: 8px 14px;
        font-size: 13px;
        gap: 6px;
    }
}

/* ===== 19. PRIZE CARDS - NEW DESIGN v27 ===== */

.prize-card-new {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.prize-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
}

/* Image Container */
.prize-image-container {
    height: 140px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px 4px;
    position: relative;
}

.prize-image {
    max-height: 130px;
    max-width: 95%;
    object-fit: contain;
}

/* Card body - уменьшаем верхний padding */
.prize-card-new .card-body {
    padding-top: 8px;
}

.prize-image-placeholder {
    font-size: 80px;
    color: #cbd5e1;
}

/* Hot Badge */
.prize-hot-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 10;
}

/* Chevron - всегда виден */
.prize-chevron {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.prize-card-new:hover .prize-chevron {
    background: var(--taza-blue);
    color: white;
    transform: translateX(2px);
}

/* Title */
.prize-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Price Row */
.prize-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.prize-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--taza-blue);
    display: flex;
    align-items: center;
    gap: 4px;
}

.prize-need-text {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* Progress */
.prize-progress-container {
    margin-bottom: 2px;
}

.prize-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.prize-progress-label {
    font-size: 12px;
    color: #64748b;
}

.prize-progress-percent {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.prize-progress-percent.full {
    color: #16a34a;
}

.prize-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.prize-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--taza-blue), #60a5fa);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.prize-progress-fill.full {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* Get Button - только когда хватает */
.prize-get-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.prize-get-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .prize-image-container {
        height: 120px;
        padding: 3px 10px 3px;
    }

    .prize-image {
        max-height: 112px;
    }

    .prize-card-new .card-body {
        padding-top: 6px;
    }

    .prize-title {
        font-size: 15px;
    }

    .prize-price {
        font-size: 16px;
    }

    .prize-get-btn {
        padding: 10px;
        font-size: 14px;
        margin-top: 10px;
    }
}

/* ===== SECTION 20: PRIZE FILTER - SIMPLE DROPDOWN v28 ===== */

.prize-filter-simple {
    position: relative;
    max-width: 280px;
}

.prize-category-select {
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prize-category-select:hover {
    border-color: var(--taza-blue);
    background: #fff;
}

.prize-category-select:focus {
    outline: none;
    border-color: var(--taza-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 125, 216, 0.15);
}

.prize-filter-chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.prize-filter-simple:hover .prize-filter-chevron {
    color: var(--taza-blue);
}

/* Mobile adjustments for filter */
@media (max-width: 576px) {
    .prize-filter-simple {
        max-width: 100%;
    }

    .prize-category-select {
        padding: 12px 40px 12px 14px;
        font-size: 14px;
    }
}

/* ===== SECTION 21: PRIZE BALANCE + FILTER ROW v29 ===== */

.prize-balance-filter-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Desktop: в одну строку */
@media (min-width: 768px) {
    .prize-balance-filter-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
        padding: 16px 20px;
        border-radius: 16px;
        gap: 20px;
    }
}

/* Balance Box */
.prize-balance-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    padding: 14px 18px;
    border-radius: 12px;
}

/* Desktop: убираем отдельный фон у balance box */
@media (min-width: 768px) {
    .prize-balance-box {
        background: transparent;
        padding: 0;
        border-radius: 0;
    }
}

.prize-balance-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.prize-balance-value {
    font-size: 20px;
    font-weight: 700;
    color: #3B7DD8;
}

/* Compact balance box */
.prize-balance-box.compact {
    padding: 10px 16px;
}

.prize-balance-box.compact .prize-balance-value {
    font-size: 18px;
}

/* Filter - обновить для row layout на desktop */
@media (min-width: 768px) {
    .prize-balance-filter-row .prize-filter-simple {
        max-width: 220px;
        margin-bottom: 0;
    }
}

/* ===== SECTION 22: PRIZE DETAIL PAGE - MOTIVATION FOCUS v30 ===== */

.prize-detail-page {
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* Header */
.prize-detail-header {
    background: linear-gradient(135deg, #3B7DD8 0%, #5B9AE8 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.prize-back-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 300;
    text-decoration: none;
    transition: background 0.2s;
}

.prize-back-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.prize-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Image Section */
.prize-detail-image {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    position: relative;
}

.prize-detail-image img {
    max-height: 200px;
    max-width: 90%;
    object-fit: contain;
}

.prize-detail-image .prize-hot-badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

.prize-detail-image .prize-image-placeholder {
    font-size: 100px;
    color: #cbd5e1;
}

/* Content Section */
.prize-detail-content {
    padding: 20px;
}

/* Name + Price Row */
.prize-name-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.prize-detail-name {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.prize-detail-price {
    font-size: 20px;
    font-weight: 700;
    color: #3B7DD8;
    white-space: nowrap;
}

/* Motivation Card */
.prize-motivation-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.prize-motivation-card.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.prize-motivation-card .motivation-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.prize-motivation-card .motivation-text {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
}

.prize-motivation-card.success .motivation-text {
    color: #166534;
}

.prize-motivation-card .motivation-subtext {
    font-size: 14px;
    color: #a16207;
}

.prize-motivation-card.success .motivation-subtext {
    color: #15803d;
}

/* Progress Section */
.prize-progress-section {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Progress Circle */
.prize-progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#3B7DD8 var(--progress, 0%), #e2e8f0 var(--progress, 0%));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prize-progress-circle-inner {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #3B7DD8;
}

/* Progress Details */
.prize-progress-details {
    flex: 1;
}

.prize-progress-details .progress-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.prize-progress-details .progress-row:last-child {
    margin-bottom: 0;
}

.prize-progress-details .label {
    font-size: 13px;
    color: #64748b;
}

.prize-progress-details .value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.prize-progress-details .value.highlight {
    color: #3B7DD8;
}

/* Tips Card */
.prize-tips-card {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.prize-tips-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    margin: 0 0 10px 0;
}

.prize-tips-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prize-tips-card li {
    font-size: 13px;
    color: #15803d;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.prize-tips-card li:last-child {
    margin-bottom: 0;
}

.prize-tips-card li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: #22c55e;
}

/* Description Card */
.prize-description-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.prize-description-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.prize-description-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Action Section */
.prize-action-section {
    margin-top: 20px;
}

.prize-action-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.prize-action-btn.disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.prize-action-btn.enabled {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.prize-action-btn.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .prize-detail-content {
        padding: 16px;
    }

    .prize-name-price-row {
        flex-direction: column;
        gap: 8px;
    }

    .prize-detail-name {
        font-size: 20px;
    }

    .prize-progress-section {
        flex-direction: column;
        text-align: center;
    }

    .prize-progress-details .progress-row {
        justify-content: center;
        gap: 12px;
    }
}

/* ===================================
   BONUSES PAGE - Redesign Styles
   =================================== */

/* Purple color for stats (not in Bootstrap) */
.stat-icon-compact.bg-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.text-purple {
    color: #8b5cf6 !important;
}

/* Action Link */
.bonus-action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #3B7DD8;
    transition: all 0.2s ease;
}

.bonus-action-link:hover {
    background: #f8fafc;
    color: #2563eb;
    transform: translateY(-1px);
}

.bonus-action-link .action-icon {
    font-size: 20px;
}

.bonus-action-link .action-text {
    font-weight: 500;
    font-size: 15px;
}

/* Transaction Items */
.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.tx-item:last-child {
    border-bottom: none;
}

.tx-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tx-date {
    font-size: 12px;
    color: #9ca3af;
}

.tx-description {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.tx-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tx-amount {
    font-size: 16px;
    font-weight: 700;
}

.tx-balance {
    font-size: 12px;
    color: #9ca3af;
}

/* Page header simple */
.page-header-simple {
    margin-bottom: 16px;
}

.page-header-simple h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* ===================================
   SHARED: 2x2 Stats Grid (Bonuses, etc.)
   =================================== */

.stats-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-card-compact {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.stat-text-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.stat-icon-compact {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.stat-icon-compact.bg-primary {
    background: var(--taza-gradient, linear-gradient(135deg, #3B7DD8 0%, #5B9AE8 100%));
}

.stat-icon-compact.bg-success {
    background: linear-gradient(135deg, #5EAD6C 0%, #7BC58A 100%);
}

.stat-icon-compact.bg-info {
    background: linear-gradient(135deg, #6DB3C0 0%, #8ECBD6 100%);
}

.stat-icon-compact.bg-warning {
    background: linear-gradient(135deg, #D4B85A 0%, #E5CC7A 100%);
}

.stat-icon-compact.bg-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.stat-label-compact {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.2;
}

.stat-value-compact {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.text-purple {
    color: #8b5cf6 !important;
}

@media (max-width: 360px) {
    .stats-grid-2x2 {
        gap: 8px;
    }
    
    .stat-card-compact {
        padding: 10px;
        gap: 8px;
    }
    
    .stat-icon-compact {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .stat-label-compact {
        font-size: 11px;
    }
    
    .stat-value-compact {
        font-size: 1rem;
    }
}

/* ===================================
   BONUSES: Transaction Accordion
   =================================== */

.tx-item-accordion {
    border-bottom: 1px solid #f1f5f9;
}

.tx-item-accordion:last-child {
    border-bottom: none;
}

.tx-header-accordion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tx-header-accordion:hover {
    background: #f8fafc;
}

.tx-header-accordion:active {
    background: #f1f5f9;
}

.tx-right-accordion {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-amount-block {
    text-align: right;
}

.tx-arrow {
    color: #9ca3af;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.tx-item-accordion.expanded .tx-arrow {
    transform: rotate(180deg);
}

/* Expandable Details Panel */
.tx-details-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
}

.tx-item-accordion.expanded .tx-details-accordion {
    max-height: 500px;
}

.tx-details-inner {
    padding: 0 16px 14px 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-product {
    color: #374151;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 12px;
}

.detail-calc {
    color: #6b7280;
    white-space: nowrap;
}

.detail-bonus {
    font-weight: 600;
    color: #22c55e;
}

/* ===================================
   REPORTS PAGE STYLES
   =================================== */

/* Period Tabs */
.period-tabs {
    display: flex;
    background: #e2e8f0;
    border-radius: 12px;
    padding: 4px;
}

.period-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.period-tab:hover {
    color: #3B7DD8;
}

.period-tab.active {
    background: #3B7DD8;
    color: white;
}

/* Balance Badge for Reports */
.balance-badge-reports {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-badge-reports .balance-label {
    color: #64748b;
    font-size: 14px;
}

.balance-badge-reports .balance-value {
    color: #3B7DD8;
    font-size: 18px;
    font-weight: 700;
}

/* Card Header for Reports */
.card-header-reports {
    background: linear-gradient(135deg, #3B7DD8 0%, #5B9AE8 100%);
    padding: 14px 16px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-radius: 16px 16px 0 0;
}

/* Leaderboard Rows */
.leader-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.leader-row:last-child {
    border-bottom: none;
}

.leader-rank {
    width: 32px;
    font-size: 18px;
    text-align: center;
    margin-right: 10px;
}

.leader-rank .rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.leader-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-right: 12px;
}

.leader-avatar.green { background: #dcfce7; color: #16a34a; }
.leader-avatar.blue { background: #dbeafe; color: #2563eb; }
.leader-avatar.purple { background: #f3e8ff; color: #9333ea; }
.leader-avatar.gray { background: #f1f5f9; color: #64748b; }

.leader-info {
    flex: 1;
    min-width: 0;
}

.leader-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.leader-role {
    font-size: 11px;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.leader-role.role-regional { background: #0ea5e9; }
.leader-role.role-local { background: #22c55e; }
.leader-role.role-shop { background: #8b5cf6; }

.leader-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.leader-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.leader-bonus {
    font-weight: 700;
    font-size: 14px;
    color: #22c55e;
    white-space: nowrap;
    margin-left: 8px;
}

/* ===================================
   NEWS PAGE STYLES
   =================================== */

/* Featured News Card */
.featured-news-card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.featured-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.featured-news-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #3B7DD8, #5B9AE8);
    position: relative;
    overflow: hidden;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
}

.featured-news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.5);
}

.featured-news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
}

/* Badge variants for featured news */
.featured-news-badge.badge-new { background: #ef4444; }
.featured-news-badge.badge-important { background: #f59e0b; }
.featured-news-badge.badge-promo { background: #22c55e; }
.featured-news-badge.badge-update { background: #3b82f6; }

.featured-news-content {
    padding: 16px;
}

.featured-news-date {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.featured-news-title {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.featured-news-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Section Header */
.news-section-header {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* News List Container */
.news-list-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* News List Item */
.news-list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: #f8fafc;
}

.news-list-item:active {
    background: #f1f5f9;
}

.news-list-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-list-icon.promo { background: #fef3c7; color: #d97706; }
.news-list-icon.update { background: #dbeafe; color: #2563eb; }
.news-list-icon.info { background: #f3e8ff; color: #9333ea; }

.news-list-icon .news-list-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
}

.news-list-content {
    flex: 1;
    min-width: 0;
}

.news-list-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.news-list-date {
    font-size: 12px;
    color: #9ca3af;
}

.news-list-arrow {
    color: #9ca3af;
    font-size: 16px;
}

/* ===================================
   NEWS DETAIL PAGE STYLES
   =================================== */

/* Back Link */
.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 8px 0;
    transition: color 0.2s;
}

.news-back-link:hover {
    color: #3B7DD8;
}

/* Detail Card */
.news-detail-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.news-detail-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-detail-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.news-detail-placeholder {
    font-size: 64px;
    color: rgba(59, 125, 216, 0.3);
}

.news-detail-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
}

.news-detail-badge.badge-new { background: #ef4444; }
.news-detail-badge.badge-important { background: #f59e0b; }
.news-detail-badge.badge-promo { background: #22c55e; }
.news-detail-badge.badge-update { background: #3b82f6; }

.news-detail-content {
    padding: 20px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

.news-detail-meta i {
    margin-right: 4px;
}

.news-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.35;
}

.news-detail-audience {
    background: #eff6ff;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #3b82f6;
}

.news-detail-audience .audience-badge {
    background: #dbeafe;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
}

.news-detail-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
}

.news-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.news-detail-updated {
    font-size: 12px;
    color: #94a3b8;
}

.news-detail-updated i {
    margin-right: 4px;
}

.news-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #eff6ff;
    color: #3B7DD8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.news-edit-btn:hover {
    background: #dbeafe;
    color: #2563eb;
}

/* ===== PRIZE HISTORY - CELEBRATION STYLE ===== */

/* History Celebration Card */
.history-celebration-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 2px solid #FCD34D;
    position: relative;
}

/* History Ribbon */
.history-ribbon {
    position: absolute;
    top: -5px;
    right: 16px;
    background: linear-gradient(180deg, #FCD34D 0%, #F59E0B 100%);
    padding: 6px 10px 4px;
    border-radius: 0 0 8px 8px;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
    z-index: 10;
}

/* History User Header */
.history-user-header {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* History Avatar */
.history-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* History User Name */
.history-user-name {
    font-weight: 700;
    font-size: 15px;
    color: #92400E;
}

.history-user-subtitle {
    font-size: 12px;
    color: #A16207;
}

/* History Prize Content */
.history-prize-content {
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* History Prize Image */
.history-prize-image {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #FCD34D;
    overflow: hidden;
}

.history-prize-image .history-prize-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-prize-image .history-prize-placeholder {
    font-size: 28px;
}

/* History Prize Name */
.history-prize-name {
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
}

/* History Prize Date */
.history-prize-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* History Prize Cost */
.history-prize-cost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #EBF5FF;
    padding: 4px 10px;
    border-radius: 8px;
    color: #3B7DD8;
    font-weight: 600;
    font-size: 13px;
}

/* History Empty State */
.history-empty-state {
    background: white;
    border-radius: 20px;
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed #FCD34D;
}

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

.history-empty-title {
    font-size: 16px;
    font-weight: 500;
    color: #92400E;
}

.history-empty-text {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ===== MY PRIZES - CELEBRATION STYLE ===== */

/* Prize Celebration Card */
.prize-celebration-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid #FCD34D;
    position: relative;
}

/* Golden Ribbon */
.prize-ribbon {
    position: absolute;
    top: -5px;
    right: 20px;
    background: linear-gradient(180deg, #FCD34D 0%, #F59E0B 100%);
    color: #78350F;
    padding: 8px 12px 6px;
    border-radius: 0 0 8px 8px;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 10;
}

/* Card Content */
.prize-card-content {
    padding: 14px;
}

/* Congratulation Block */
.prize-congrats-block {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    text-align: center;
}

.prize-congrats-text {
    font-size: 16px;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 0;
}

.prize-congrats-sub {
    font-size: 11px;
    color: #A16207;
}

/* Prize Image with Golden Frame */
.prize-image-golden {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid #FCD34D;
    box-shadow: 0 0 0 2px white, 0 4px 12px rgba(252, 211, 77, 0.3);
    overflow: hidden;
}

.prize-image-golden .prize-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prize-image-golden .prize-img-placeholder {
    font-size: 32px;
}

/* Prize Name */
.prize-name {
    font-weight: 700;
    font-size: 17px;
    color: #1f2937;
    margin-bottom: 6px;
}

/* Prize Status Badge */
.prize-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.prize-status-badge.delivered {
    background: #D1FAE5;
    color: #059669;
}

.prize-status-badge.pending {
    background: #FEF3C7;
    color: #D97706;
}

/* Prize Date */
.prize-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 12px;
}

/* Prize Cost */
.prize-cost {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #3B7DD8;
    font-weight: 600;
    font-size: 14px;
}

/* Empty State */
.prize-empty-state {
    background: white;
    border-radius: 20px;
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed #FCD34D;
}

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

.prize-empty-title {
    font-size: 16px;
    font-weight: 500;
    color: #92400E;
}

.prize-empty-text {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ===== PRIZE NAVIGATION MODULE ===== */

.prize-nav-module {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* My Prizes Link */
.prize-nav-my-prizes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    text-decoration: none;
    color: #5D4037;
    border-bottom: 1px solid #FFE082;
    transition: background 0.2s;
}

.prize-nav-my-prizes:hover {
    background: linear-gradient(135deg, #FFECB3 0%, #FFE082 100%);
    color: #5D4037;
}

.prize-nav-icon {
    font-size: 22px;
}

.prize-nav-text {
    font-weight: 700;
    font-size: 15px;
}

.prize-nav-badge {
    background: #FF5722;
    color: white;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* Prize Feed Section */
.prize-feed-section {
    padding: 12px;
}

.prize-feed-header {
    margin-bottom: 10px;
}

.prize-feed-title {
    font-size: 13px;
    color: #666;
}

.prize-feed-title strong {
    color: #333;
}

/* Horizontal Slider */
.prize-feed-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.prize-feed-slider::-webkit-scrollbar {
    height: 4px;
}

.prize-feed-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.prize-feed-slider::-webkit-scrollbar-thumb {
    background: #FCD34D;
    border-radius: 2px;
}

/* Feed Card */
.prize-feed-card {
    min-width: 150px;
    max-width: 150px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: 12px;
    padding: 10px;
    border: 2px solid #FFD54F;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.prize-feed-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.prize-feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.prize-feed-user-info {
    overflow: hidden;
}

.prize-feed-username {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prize-feed-date {
    font-size: 10px;
    color: #666;
}

.prize-feed-prize-name {
    font-size: 11px;
    color: #5D4037;
    background: white;
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty State */
.prize-feed-empty {
    text-align: center;
    padding: 16px;
    color: #9ca3af;
    font-size: 13px;
}

/* Link to History */
.prize-feed-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #3B7DD8;
    text-decoration: none;
    margin-top: 8px;
    padding: 4px;
}

.prize-feed-link:hover {
    text-decoration: underline;
    color: #2563EB;
}

/* ===== PROFILE PAGE - MINI REPORT DESIGN ===== */

/* Mini Report Block (Blue) */
.profile-mini-report {
    background: linear-gradient(135deg, #3B7DD8 0%, #5B9AE8 100%);
    border-radius: 16px;
    padding: 16px;
    color: white;
}

.profile-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.profile-balance-label {
    font-size: 14px;
    opacity: 0.9;
}

.profile-balance-value {
    font-size: 24px;
    font-weight: 700;
}

/* Stats Grid 2x1 */
.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.profile-stat-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.profile-stat-value {
    font-size: 18px;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 11px;
    opacity: 0.85;
}

/* Report Link */
.profile-report-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.2s;
}

.profile-report-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Personal Data Rows */
.profile-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.profile-data-row:last-child {
    border-bottom: none;
}

.profile-data-label {
    font-size: 13px;
    color: #64748b;
}

.profile-data-value {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    text-align: right;
}

/* Supplier Row */
.profile-supplier-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-supplier-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-supplier-info {
    flex: 1;
    min-width: 0;
}

.profile-supplier-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.profile-supplier-role {
    font-size: 12px;
    color: #64748b;
}

/* ===== ORDERS PAGE - REDESIGN ===== */

/* Tabs Container - Pill Style */
.orders-tabs-container {
    display: flex;
    gap: 8px;
}

.orders-tab-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    color: #3B7DD8;
    background: white;
    border: 2px solid #3B7DD8;
    transition: all 0.2s;
}

.orders-tab-btn.active {
    background: #3B7DD8;
    color: white;
    border-color: #3B7DD8;
}

.orders-tab-btn:hover {
    text-decoration: none;
}

/* Status Filter Chips */
.orders-status-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.status-chip {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: #f3f4f6;
    color: #6b7280;
    transition: all 0.2s;
}

.status-chip:hover {
    text-decoration: none;
    background: #e5e7eb;
}

.status-chip.active {
    background: #3B7DD8;
    color: white;
}

.status-chip.status-new.active {
    background: #06b6d4;
}

.status-chip.status-accepted.active {
    background: #f59e0b;
}

.status-chip.status-confirmed.active {
    background: #22c55e;
}

/* Search Box */
.orders-search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 14px;
}

.orders-search-icon {
    color: #9ca3af;
    font-size: 16px;
}

.orders-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 10px;
    font-size: 14px;
    background: transparent;
}

/* Order Card - Bubble Style */
.order-card-bubble {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.order-card-bubble:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Order Avatar (Number) */
.order-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.order-avatar.status-new {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
}

.order-avatar.status-accepted {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.order-avatar.status-confirmed {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.order-avatar.status-cancelled {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}

/* Order Info */
.order-info {
    flex: 1;
    min-width: 0;
}

.order-info-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.order-partner-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.order-status-badge {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.order-date {
    font-size: 12px;
    color: #9ca3af;
}

/* Order Bonus */
.order-bonus {
    text-align: right;
    flex-shrink: 0;
}

.order-bonus-value {
    font-weight: 700;
    font-size: 15px;
    color: #f59e0b;
}

/* ===== ORDER DETAIL PAGE - REDESIGN ===== */

/* Header */
.order-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.order-detail-avatar.status-new {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
}

.order-detail-avatar.status-accepted {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.order-detail-avatar.status-confirmed {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.order-detail-avatar.status-cancelled {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}

.order-detail-title {
    flex: 1;
}

.order-detail-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.order-detail-date {
    font-size: 13px;
    color: #6b7280;
}

.order-detail-status {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* Participants */
.order-participant-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.order-participant-info {
    flex: 1;
    min-width: 0;
}

.order-participant-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.order-participant-detail {
    font-size: 12px;
    color: #6b7280;
}

.btn-whatsapp-small {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn-whatsapp-small:hover {
    transform: scale(1.05);
    color: white;
}

/* Note Block */
.order-note-block {
    background: #FEF3C7;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #92400E;
}

/* Items */
.order-items-header {
    background: #f8fafc;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.order-item-row {
    padding: 12px 16px;
}

.order-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.order-item-calc {
    font-size: 12px;
    color: #9ca3af;
}

/* Total Block */
.order-total-block {
    background: linear-gradient(135deg, #3B7DD8 0%, #5B9AE8 100%);
    border-radius: 16px;
    padding: 16px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-label {
    font-size: 13px;
    opacity: 0.9;
}

.order-total-items {
    font-size: 11px;
    opacity: 0.7;
}

.order-total-value {
    font-size: 28px;
    font-weight: 700;
}

/* Confirmation Status */
.order-confirm-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.order-confirm-grid {
    display: flex;
    gap: 12px;
}

.order-confirm-item {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    background: #f3f4f6;
    text-align: center;
}

.order-confirm-item.confirmed {
    background: #D1FAE5;
}

.order-confirm-who {
    font-size: 12px;
    color: #9ca3af;
}

.order-confirm-item.confirmed .order-confirm-who {
    color: #065F46;
}

.order-confirm-time {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
}

.order-confirm-item.confirmed .order-confirm-time {
    color: #065F46;
}

/* ===== END OF BUBBLE-STYLE.CSS ===== */
