/* ============================================================
   AVTOMAKTAB PREMIUM - UI COMPONENTS
   Professional Component Library | 2000+ lines
   ============================================================ */

/* ===== APP CONTAINER ===== */
.app-container {
    position: relative;
    z-index: var(--z-base);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* ===== HEADER ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(15, 17, 29, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    min-height: 56px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: var(--shadow-glow-orange);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 0 30px rgba(249, 115, 22, 0.7); }
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-brand-name {
    font-size: 16px;
    font-weight: var(--font-bold);
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.header-brand-badge {
    font-size: 9px;
    font-weight: var(--font-bold);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    background: var(--gradient-gold);
    color: #000;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.header-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.header-premium-btn {
    background: var(--gradient-gold);
    color: #000;
    border: none;
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-glow-gold);
}

.header-premium-btn:hover {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
    transform: translateY(-1px);
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

/* ===== MAIN CONTENT ===== */
.app-main {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: var(--z-nav);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 4px 12px;
    background: rgba(15, 17, 29, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    min-width: 56px;
}

.nav-item.active {
    color: var(--accent-gold);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

.nav-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active .nav-icon-wrapper {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: var(--shadow-glow-gold);
    transform: scale(1.1);
}

.nav-label {
    font-size: 10px;
    font-weight: var(--font-medium);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-glass:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}

.card-gradient {
    border: 1px solid rgba(249, 115, 22, 0.2);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(20, 23, 37, 0.8));
}

.card-hover {
    cursor: pointer;
}

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

.card-hover:active {
    transform: scale(0.98);
}

.card-accent {
    border-left: 3px solid var(--accent-orange);
}

.card-success {
    border-left: 3px solid var(--accent-green);
}

.card-warning {
    border-left: 3px solid var(--accent-gold);
}

.card-danger {
    border-left: 3px solid var(--accent-red);
}

/* ===== USER CARD ===== */
.user-card {
    position: relative;
    padding: 20px;
    border-radius: var(--radius-xl);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 14px;
    transition: all var(--transition-slow);
}

.user-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='2' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.user-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.user-avatar:hover {
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-stats {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.user-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
    transition: all var(--transition-fast);
}

.user-stat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-stat-value {
    font-size: 16px;
    font-weight: var(--font-bold);
}

.user-stat-label {
    font-size: 9px;
    opacity: 0.8;
    margin-top: 2px;
}

.premium-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gradient-gold);
    color: #000;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--font-bold);
    z-index: 5;
    box-shadow: var(--shadow-glow-gold);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.7); }
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 15px;
    font-weight: var(--font-bold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.section-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-orange);
    animation: dotBeat 1.5s ease-in-out infinite;
}

@keyframes dotBeat {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2.5); opacity: 0.3; }
}

/* ===== MENU GRID ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.menu-tile {
    background: linear-gradient(135deg, rgba(24, 24, 40, 0.5), rgba(24, 24, 40, 0.2));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.menu-tile::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12), transparent 60%);
    opacity: 0;
    transition: all 0.5s ease;
}

.menu-tile:hover::before {
    opacity: 1;
}

.menu-tile:hover {
    border-color: var(--accent-orange);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.2);
}

.menu-tile:active {
    transform: scale(0.94);
}

.menu-tile-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.menu-tile:hover .menu-tile-icon {
    transform: scale(1.2) rotateY(15deg);
    filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.5));
}

.menu-tile-label {
    font-size: 10px;
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.btn:active::after {
    transform: scale(2);
    opacity: 0;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow-orange);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: var(--shadow-glow-gold);
}

.btn-gold:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--accent-green);
    color: #fff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-light);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 6px 14px;
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: var(--font-semibold);
    margin-bottom: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--font-bold);
}

.badge-primary {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange-light);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green-light);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-gold);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red-light);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 20px;
    font-weight: var(--font-bold);
    color: var(--accent-orange-light);
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== TEST LIST ===== */
.test-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.test-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.test-card:hover {
    border-color: var(--accent-orange);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.test-card:active {
    transform: scale(0.98);
}

.test-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.test-card-info {
    flex: 1;
}

.test-card-name {
    font-size: 14px;
    font-weight: var(--font-semibold);
    margin-bottom: 2px;
}

.test-card-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== TARIFF CARDS ===== */
.tariff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tariff-card {
    background: linear-gradient(135deg, rgba(24, 24, 40, 0.5), rgba(24, 24, 40, 0.2));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tariff-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(251, 191, 36, 0.2);
}

.tariff-card.best {
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-glow-gold);
}

.tariff-card.best::after {
    content: '🔥 TOP';
    position: absolute;
    top: -8px;
    right: -4px;
    background: var(--gradient-gold);
    color: #000;
    font-size: 8px;
    font-weight: var(--font-bold);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.tariff-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.tariff-name {
    font-size: 16px;
    font-weight: var(--font-bold);
    margin-bottom: 4px;
}

.tariff-price {
    font-size: 22px;
    font-weight: var(--font-extrabold);
    color: var(--accent-gold);
}

.tariff-period {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== GAME CARDS ===== */
.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.game-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.game-card-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    transition: all var(--transition-base);
}

.game-card:hover .game-card-icon {
    transform: scale(1.15) rotate(-10deg);
}

.game-card-name {
    font-size: 14px;
    font-weight: var(--font-bold);
    margin-bottom: 4px;
}

.game-card-desc {
    font-size: 10px;
    color: var(--text-muted);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    width: 90%;
    max-width: 340px;
    animation: scaleIn 0.3s ease;
}

.modal-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: 12px;
}

.modal-body {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: slideDown 0.3s ease;
    backdrop-filter: blur(20px);
    pointer-events: auto;
}

.toast-success {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.15);
}

.toast-error {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.15);
}

.toast-warning {
    border-color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.15);
}

/* ===== SKELETON LOADER ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-tertiary) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

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

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

.divider-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ===== AVATAR GROUP ===== */
.avatar-group {
    display: flex;
}

.avatar-group .user-avatar {
    border: 3px solid var(--bg-primary);
    margin-left: -12px;
}

.avatar-group .user-avatar:first-child {
    margin-left: 0;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== CONFETTI ===== */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-in forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== CHIP ===== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

.chip.active {
    background: rgba(249, 115, 22, 0.15);
    border-color: var(--accent-orange);
    color: var(--accent-orange-light);
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    animation: fadeIn 0.2s ease;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-color);
}
