/* Mobile Rewards App - Enhanced with Reward Hub Design System */

:root {
    /* Legacy Yellow & Black Theme (Preserved) */
    --primary-yellow: #FFD700;
    --dark-yellow: #FFC700;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);

    /* Reward Hub Design System - Modern Fintech Aesthetic */
    /* Core palette - Deep slate with emerald accents */
    --background: 220 20% 97%;
    --foreground: 222 47% 11%;

    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;

    --popover: 0 0% 100%;
    --popover-foreground: 222 47% 11%;

    /* Deep slate primary */
    --primary: 222 47% 11%;
    --primary-foreground: 210 40% 98%;

    /* Soft gray secondary */
    --secondary: 220 14% 96%;
    --secondary-foreground: 222 47% 11%;

    --muted: 220 14% 96%;
    --muted-foreground: 220 9% 46%;

    /* Emerald accent for rewards/success */
    --accent: 160 84% 39%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;

    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 160 84% 39%;

    --radius: 1rem;

    /* Custom tokens for loyalty app */
    --points: 45 93% 47%;
    --points-foreground: 45 93% 12%;
    --reward-locked: 220 9% 76%;
    --reward-unlocked: 160 84% 39%;
    --progress-track: 220 14% 92%;
    --progress-fill: 160 84% 39%;
    
    /* Glass effect */
    --glass: 0 0% 100% / 0.7;
    --glass-border: 0 0% 100% / 0.2;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px hsl(222 47% 11% / 0.05);
    --shadow-md: 0 4px 12px hsl(222 47% 11% / 0.08);
    --shadow-lg: 0 8px 24px hsl(222 47% 11% / 0.12);
    --shadow-glow: 0 0 20px hsl(160 84% 39% / 0.3);
}

.dark {
    --background: 222 47% 6%;
    --foreground: 210 40% 98%;

    --card: 222 47% 9%;
    --card-foreground: 210 40% 98%;

    --popover: 222 47% 9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222 47% 11%;

    --secondary: 217 33% 17%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217 33% 17%;
    --muted-foreground: 215 20% 65%;

    --accent: 160 84% 45%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 63% 31%;
    --destructive-foreground: 210 40% 98%;

    --border: 217 33% 17%;
    --input: 217 33% 17%;
    --ring: 160 84% 45%;

    --points: 45 93% 55%;
    --points-foreground: 45 93% 95%;
    --reward-locked: 217 20% 40%;
    --reward-unlocked: 160 84% 45%;
    --progress-track: 217 33% 20%;
    --progress-fill: 160 84% 45%;
    
    --glass: 222 47% 11% / 0.6;
    --glass-border: 0 0% 100% / 0.1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: hsl(var(--background));
    min-height: 100vh;
    padding-bottom: 80px;
    color: hsl(var(--foreground));
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Custom scrollbar for mobile feel */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Reward Hub Utility Classes */
.glass-card {
    background: hsl(var(--glass));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--glass-border));
}

.points-gradient {
    background: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(160 70% 50%) 100%);
}

.hero-gradient {
    background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(220 20% 94%) 100%);
}

.text-balance {
    text-wrap: balance;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Reward Hub Card Styles */
.card-modern {
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Accent Colors */
.text-accent {
    color: hsl(var(--accent));
}

.bg-accent {
    background-color: hsl(var(--accent));
}

.text-accent-foreground {
    color: hsl(var(--accent-foreground));
}

.bg-accent-foreground {
    background-color: hsl(var(--accent-foreground));
}

/* Points Colors */
.text-points {
    color: hsl(var(--points));
}

.bg-points {
    background-color: hsl(var(--points));
}

.text-points-foreground {
    color: hsl(var(--points-foreground));
}

/* Progress Bars */
.progress-track {
    background-color: hsl(var(--progress-track));
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    background-color: hsl(var(--progress-fill));
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* Reward States */
.reward-locked {
    color: hsl(var(--reward-locked));
    opacity: 0.7;
}

.reward-unlocked {
    color: hsl(var(--reward-unlocked));
}

/* Glass Effect */
.glass {
    background: hsl(var(--glass));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid hsl(var(--glass-border));
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Border Radius Utilities */
.rounded-sm {
    border-radius: calc(var(--radius) - 4px);
}

.rounded-md {
    border-radius: calc(var(--radius) - 2px);
}

.rounded-lg {
    border-radius: var(--radius);
}

.rounded-xl {
    border-radius: calc(var(--radius) + 4px);
}

.rounded-2xl {
    border-radius: calc(var(--radius) + 8px);
}

/* Landscape/Mountain Background Effect - Removed */
/* Background gradient effect has been removed from all pages */

/* Header */
.mobile-header {
    background: var(--black);
    color: var(--white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.menu-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    padding: 0;
}

.menu-btn span {
    width: 24px;
    height: 3px;
    background: var(--primary-yellow);
    border-radius: 2px;
    transition: all 0.3s;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-yellow);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Content */
.mobile-main {
    padding: 20px 16px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Total Rewards Card - Enhanced with Reward Hub Design */
.total-rewards-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    /* Reward Hub Points Gradient Style */
    background: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(160 70% 50%) 100%);
    color: hsl(var(--accent-foreground));
}

/* Alternative: Glass card style for total rewards */
.total-rewards-card.glass-style {
    background: hsl(var(--glass));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--glass-border));
    color: hsl(var(--foreground));
}

.balance-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    gap: 8px;
}

.currency {
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coin-icon {
    font-size: 32px;
    line-height: 1;
}

.amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.balance-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    color: var(--black);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    font-weight: 600;
    flex: 1;
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.btn-secondary {
    background: var(--black);
    color: var(--white);
}

.btn-secondary:active {
    transform: scale(0.98);
    background: var(--dark-gray);
}

/* Company Rewards Section */
.company-rewards-section {
    margin-top: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    padding: 0 4px;
}

.company-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.company-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    position: relative;
    color: hsl(var(--card-foreground));
}

/* Enhanced company card hover state with reward-hub style */
.company-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--accent) / 0.3);
}

.company-card:active {
    transform: translateY(0) scale(0.99);
}

.company-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-lg);
}

.company-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.company-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
}

.company-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-card::after {
    content: '→';
    font-size: 20px;
    color: var(--text-light);
    opacity: 0.6;
    margin-left: auto;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-amount {
    font-size: 20px;
    font-weight: 700;
    /* Reward Hub accent color gradient */
    color: hsl(var(--accent));
    margin-top: 4px;
    margin-bottom: 4px;
    /* Fallback to yellow gradient if needed */
    background: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(160 70% 50%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-status {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    font-weight: 500;
}

.reward-count {
    font-size: 14px;
    color: var(--text-light);
}

.arrow-icon {
    font-size: 24px;
    color: var(--text-light);
    font-weight: 300;
}

.company-card-body {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.reward-amount {
    margin-bottom: 8px;
}

.reward-amount .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
}

.reward-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    font-size: 14px;
    color: var(--text-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 12px;
    transition: all 0.3s;
    flex: 1;
    max-width: 80px;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary-yellow);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 375px) {
    .amount {
        font-size: 48px;
    }
    
    .currency {
        font-size: 28px;
    }
    
    .company-card {
        padding: 16px;
    }
    
    .company-name {
        font-size: 16px;
    }
}

@media (min-width: 501px) {
    .mobile-main {
        padding: 24px;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
    
    .mobile-header {
        padding-top: max(12px, env(safe-area-inset-top));
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-card {
    animation: fadeIn 0.3s ease-out;
}

.company-card:nth-child(1) { animation-delay: 0.1s; }
.company-card:nth-child(2) { animation-delay: 0.2s; }
.company-card:nth-child(3) { animation-delay: 0.3s; }
.company-card:nth-child(4) { animation-delay: 0.4s; }
.company-card:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   ENHANCED STYLES & ANIMATIONS
   ======================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Enhanced Header Styles */
.mobile-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.98) 100%);
}

.menu-btn:hover span,
.menu-btn:focus span {
    background: var(--white);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.menu-btn:active span {
    transform: scale(0.9);
}

.profile-pic {
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    border-color: var(--white);
}

/* Enhanced Total Rewards Card */
.total-rewards-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.total-rewards-card::before {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.currency {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.amount {
    background: linear-gradient(135deg, var(--black) 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4), 
                0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5), 
                0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    position: relative;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    border: 2px solid var(--black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Enhanced Section Title */
.section-title {
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    border-radius: 2px;
}

/* Enhanced Company Cards */
.company-card {
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--dark-yellow), var(--primary-yellow));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.company-card:hover::before {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.company-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.company-card:active {
    transform: translateY(-2px) scale(0.99);
}

/* Enhanced Company Logo */
.company-logo {
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.company-card:hover .company-logo {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.logo-placeholder {
    position: relative;
    overflow: hidden;
}

.logo-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Enhanced Company Name */
.company-name {
    position: relative;
    transition: color 0.3s;
}

.company-card:hover .company-name {
    color: var(--primary-yellow);
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.2);
}

/* Enhanced Arrow Icon */
.arrow-icon {
    transition: all 0.3s ease;
    opacity: 0.6;
}

.company-card:hover .arrow-icon {
    transform: translateX(4px);
    opacity: 1;
    color: var(--primary-yellow);
    font-weight: 400;
}

/* Enhanced Reward Amount */
.reward-amount .amount {
    position: relative;
    background: linear-gradient(135deg, var(--black) 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-card:hover .reward-amount .amount {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Bottom Navigation */
.bottom-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,1) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.nav-item {
    position: relative;
    border-radius: 12px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--dark-yellow));
    border-radius: 0 0 3px 3px;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-item.active {
    background: rgba(255, 215, 0, 0.15);
}

.nav-icon {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-item:hover .nav-icon {
    transform: scale(1.15) translateY(-2px);
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1.1) translateY(0);
    }
    50% {
        transform: scale(1.2) translateY(-4px);
    }
}

/* Enhanced Empty State */
.empty-state {
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
    border: 2px dashed var(--border-color);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '🎁';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.empty-state p {
    position: relative;
    z-index: 1;
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--primary-yellow);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Scrollbar Styling (Webkit browsers) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-yellow), var(--dark-yellow));
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--dark-yellow), var(--primary-yellow));
}

/* Selection Styling */
::selection {
    background: var(--primary-yellow);
    color: var(--black);
}

::-moz-selection {
    background: var(--primary-yellow);
    color: var(--black);
}

/* Focus Styles */
button:focus,
a:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Enhanced Background Gradient */
body {
    background: linear-gradient(to bottom, 
        #FFF5E6 0%, 
        #FFE8D1 5%, 
        #FFD6BA 12%, 
        #FFC5A3 20%, 
        #FFB085 28%, 
        #FF9B6B 36%, 
        #FF8564 44%, 
        #E8705A 52%, 
        #D45F8C 60%, 
        #BA4A9E 68%, 
        #9B3FA8 75%, 
        #7D32B2 82%, 
        #5F259C 88%, 
        #4A1B7A 93%, 
        #361461 97%, 
        #2A0F4F 100%);
    background-size: 100% 100%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Enhancements */
@media (max-width: 375px) {
    .total-rewards-card {
        padding: 24px 20px;
    }
    
    .company-card {
        padding: 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
}

/* Dark Mode Support (Optional - can be enabled with class) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body {
        animation: none;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    }
}

/* Print Styles */
@media print {
    .mobile-header,
    .bottom-nav,
    .menu-btn {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .total-rewards-card,
    .company-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .company-card:hover {
        transform: none;
    }
    
    .nav-item:hover {
        background: transparent;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .company-logo,
    .profile-pic {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========================================
   REWARD HUB MAIN DESIGN SYSTEM COMPONENTS
   ======================================== */

/* Points Hero Component (Reward Hub Style) */
.points-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(160 70% 50%) 100%);
    color: hsl(var(--accent-foreground));
    box-shadow: var(--shadow-glow);
}

.points-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 128px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(48px);
    transform: translate(50%, -50%);
}

.points-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(32px);
    transform: translate(-50%, 50%);
}

.points-hero-content {
    position: relative;
    z-index: 1;
}

.points-hero-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.points-hero-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.points-hero-number {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.points-hero-unit {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* Reward Card Component (Reward Hub Style) */
.reward-card-hub {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.reward-card-hub:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--accent) / 0.3);
}

.reward-card-hub:active {
    transform: scale(0.98);
}

.reward-card-hub.locked {
    background: hsl(var(--secondary) / 0.5);
    border-color: hsl(var(--border));
    opacity: 0.7;
    cursor: not-allowed;
}

.reward-card-hub.locked:hover {
    transform: none;
}

.reward-card-hub.unlocked {
    border-color: hsl(var(--accent) / 0.3);
}

.reward-card-overlay {
    position: absolute;
    inset: 0;
    background: hsl(var(--background) / 0.5);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: hsl(var(--muted-foreground));
}

.reward-card-icon {
    width: 40px;
    height: 40px;
    border-radius: calc(var(--radius) - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.reward-card-icon.unlocked {
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
}

.reward-card-icon.locked {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.reward-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

/* Enhanced Progress Bar (Reward Hub Style) */
.progress-bar-hub {
    height: 6px;
    background-color: hsl(var(--progress-track));
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-bar-hub-fill {
    height: 100%;
    background-color: hsl(var(--progress-fill));
    border-radius: 9999px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-hub-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Company Card Enhanced (Reward Hub Style) */
.company-card-hub {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid hsl(var(--border));
}

.company-card-hub:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px) scale(1.01);
    border-color: hsl(var(--accent) / 0.3);
}

.company-card-hub:active {
    transform: translateY(0) scale(0.99);
}

.company-logo-hub {
    width: 48px;
    height: 48px;
    border-radius: calc(var(--radius) - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.company-info-hub {
    flex: 1;
    min-width: 0;
}

.company-name-hub {
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-points-hub {
    color: hsl(var(--accent));
    font-weight: 600;
    font-size: 14px;
}

.company-progress-hub {
    margin-top: 8px;
}

.company-status-hub {
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    margin-top: 4px;
}

/* Button Styles (Reward Hub Enhanced) */
.btn-hub {
    padding: 12px 24px;
    border-radius: calc(var(--radius) - 2px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-hub-primary {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    box-shadow: var(--shadow-md);
}

.btn-hub-primary:hover {
    background: hsl(160 70% 45%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-hub-primary:active {
    transform: translateY(0);
}

.btn-hub-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid hsl(var(--border));
}

.btn-hub-secondary:hover {
    background: hsl(var(--secondary) / 0.8);
}

/* Text Utilities (Reward Hub) */
.text-foreground {
    color: hsl(var(--foreground));
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

.text-sm {
    font-size: 14px;
}

.text-xs {
    font-size: 12px;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Animation Utilities (Reward Hub) */
.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-scale-in {
    animation: scale-in 0.2s ease-out;
}

@keyframes scale-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Badge Component (Reward Hub) */
.badge-hub {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.badge-hub-accent {
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
}

.badge-hub-muted {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

/* Spacing Utilities */
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* Responsive Typography */
@media (max-width: 375px) {
    .points-hero-number {
        font-size: 40px;
    }
    
    .points-hero-unit {
        font-size: 18px;
    }
}

