* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3AA774;
    --primary-light: #4C6F6D;
    --primary-dark: #183635;
    --secondary-color: #4C6F6D;
    --accent-color: #3AA774;
    --success-color: #3AA774;
    --warning-color: #E5E8E7;
    --error-color: #E5E8E7;
    
    --bg-primary: #183635;
    --bg-secondary: #1A3A38;
    --bg-tertiary: #2A4A48;
    --bg-glass: rgba(76, 111, 109, 0.08);
    --bg-glass-hover: rgba(76, 111, 109, 0.12);
    
    --bg-glass-alt: rgba(229, 232, 231, 0.05);
    --bg-glass-alt-hover: rgba(229, 232, 231, 0.08);
    
    --bg-glass-accent: rgba(58, 167, 116, 0.06);
    --bg-glass-accent-hover: rgba(58, 167, 116, 0.1);
    
    --text-primary: #E5E8E7;
    --text-secondary: #4C6F6D;
    --text-muted: #6B8A88;
    --text-accent: #E5E8E7;
    
    --border-primary: rgba(76, 111, 109, 0.15);
    --border-secondary: rgba(76, 111, 109, 0.08);
    --border-accent: rgba(58, 167, 116, 0.3);
    
    --shadow-sm: 0 1px 2px 0 rgba(24, 54, 53, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(24, 54, 53, 0.2), 0 2px 4px -1px rgba(24, 54, 53, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(24, 54, 53, 0.3), 0 4px 6px -2px rgba(24, 54, 53, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(24, 54, 53, 0.4), 0 10px 10px -5px rgba(24, 54, 53, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(24, 54, 53, 0.5);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(76, 111, 109, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(76, 111, 109, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(229, 232, 231, 0.02) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Mobile optimizations */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body.banner-visible {
    padding-top: 4.5rem;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(76, 111, 109, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, rgba(76, 111, 109, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Top Notification Banner */
.top-notification-banner {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-bottom: 1px solid var(--border-accent);
    box-shadow: 
        var(--shadow-xl),
        0 0 0 1px var(--border-accent),
        0 0 20px rgba(58, 167, 116, 0.2);
    z-index: 1001 !important;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    margin: 0 !important;
    padding: 0 !important;
}

.top-notification-banner.show {
    transform: translateY(0);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.banner-text {
    flex: 1;
    color: white;
}

.banner-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.banner-message {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    flex-shrink: 0;
    /* Mobile touch optimizations */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    user-select: none;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.banner-close:active {
    transform: scale(0.95);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    /* Mobile optimizations */
    width: 100%;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    padding: 2rem 2.5rem;
    border-radius: var(--radius-3xl);
    box-shadow: 
        var(--shadow-2xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-accent);
    box-shadow: 
        var(--shadow-2xl),
        0 0 0 1px var(--border-accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.logo-image {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(58, 167, 116, 0.25));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 25px rgba(58, 167, 116, 0.6));
    transform: scale(1.05);
}

.logo-fallback {
    font-size: 2.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 20px rgba(58, 167, 116, 0.25));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-fallback {
    color: var(--primary-light);
    filter: drop-shadow(0 0 25px rgba(58, 167, 116, 0.6));
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    padding: 0.75rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-indicator:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-primary);
}

.status-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--error-color);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-dot::before {
    content: '';
    position: absolute;
    top: -0.25rem;
    left: -0.25rem;
    right: -0.25rem;
    bottom: -0.25rem;
    border-radius: 50%;
    background: var(--error-color);
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: var(--success-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-dot.connected::before {
    background: var(--success-color);
    animation: pulse-success 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.2; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.1; 
    }
}

@keyframes pulse-success {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.2; 
    }
    50% { 
        transform: scale(1.3); 
        opacity: 0.1; 
    }
}

.main-content {
    display: grid;
    gap: 2rem;
}

.hero-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    padding: 4rem 3rem;
    border-radius: var(--radius-3xl);
    box-shadow: 
        var(--shadow-2xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-accent);
    box-shadow: 
        var(--shadow-2xl),
        0 0 0 1px var(--border-accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 
        var(--shadow-xl),
        0 0 0 1px var(--border-accent);
    background: var(--bg-glass-hover);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 20px rgba(58, 167, 116, 0.2));
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover i {
    color: var(--primary-light);
    filter: drop-shadow(0 0 25px rgba(58, 167, 116, 0.5));
    transform: scale(1.1);
}

.stat-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    flex: 1;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.controls-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.notification-settings {
    background: var(--bg-glass-alt);
    border: 1px solid var(--border-primary);
    padding: 2.5rem;
    border-radius: var(--radius-3xl);
    box-shadow: 
        var(--shadow-2xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-controls {
    background: var(--bg-glass-accent);
    border: 1px solid var(--border-primary);
    padding: 2.5rem;
    border-radius: var(--radius-3xl);
    box-shadow: 
        var(--shadow-2xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-settings:hover {
    background: var(--bg-glass-alt-hover);
    border-color: var(--border-accent);
    box-shadow: 
        var(--shadow-2xl),
        0 0 0 1px var(--border-accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.filter-controls:hover {
    background: var(--bg-glass-accent-hover);
    border-color: var(--border-accent);
    box-shadow: 
        var(--shadow-2xl),
        0 0 0 1px var(--border-accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.notification-settings h3,
.filter-controls h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    backdrop-filter: blur(10px);
    /* Mobile touch optimizations */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px; /* Minimum touch target size */
}

.setting-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-accent);
    color: var(--text-primary);
    transform: translateX(4px);
}

.setting-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.setting-item input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.setting-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
    background: var(--bg-glass);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 
        var(--shadow-md),
        0 0 0 2px rgba(99, 102, 241, 0.2);
    background: var(--bg-glass-hover);
}

.filter-group select:hover {
    border-color: var(--border-accent);
    background: var(--bg-glass-hover);
}

.filter-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.75rem;
}

.test-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    /* Mobile touch optimizations */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px; /* Minimum touch target size */
    user-select: none;
}

.test-button:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.test-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.test-button i {
    font-size: 0.875rem;
}

.notifications-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    padding: 2.5rem;
    border-radius: var(--radius-3xl);
    box-shadow: 
        var(--shadow-2xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-section:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-accent);
    box-shadow: 
        var(--shadow-2xl),
        0 0 0 1px var(--border-accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.notifications-section h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notifications-container {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.notifications-container::-webkit-scrollbar {
    width: 6px;
}

.notifications-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.notifications-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    transition: background 0.3s ease;
}

.notifications-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

.no-notifications {
    text-align: center;
    padding: 4rem 2.5rem;
    color: var(--text-muted);
}

.no-notifications i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.4;
    color: var(--text-muted);
}

.notification-item {
    background: var(--bg-glass);
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-secondary);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-2xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.notification-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-lg),
        0 0 0 1px var(--border-accent);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-details {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.bond-progress {
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-secondary);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(58, 167, 116, 0.2);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShine 2s infinite;
}

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

.progress-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}


@media (max-width: 768px) {
    body.banner-visible {
        padding-top: 3.5rem;
    }
    
    .banner-content {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .banner-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .banner-title {
        font-size: 1rem;
    }
    
    .banner-message {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .banner-close {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-image {
        width: 2rem;
        height: 2rem;
    }
    
    .logo-fallback {
        font-size: 2rem;
    }
    
    .status-indicator {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stat-card i {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .controls-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .notification-settings,
    .filter-controls {
        padding: 1.5rem;
    }
    
    .notification-settings h3,
    .filter-controls h3,
    .notifications-section h3 {
        font-size: 1.125rem;
    }
    
    .settings-grid {
        gap: 0.75rem;
    }
    
    .setting-item {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .test-button {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    
    .notifications-section {
        padding: 1.5rem;
    }
    
    .notification-item {
        padding: 1rem;
    }
    
    .notification-title {
        font-size: 1rem;
    }
    
    .notification-details {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .header {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .logo-image {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .logo-fallback {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .stats-grid {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .stat-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .stat-card i {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .controls-section {
        gap: 1rem;
    }
    
    .notification-settings,
    .filter-controls,
    .notifications-section {
        padding: 1.25rem;
    }
    
    .notification-settings h3,
    .filter-controls h3,
    .notifications-section h3 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .setting-item {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .test-button {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    .notification-item {
        padding: 0.75rem;
    }
    
    .notification-title {
        font-size: 0.9rem;
    }
    
    .notification-details {
        font-size: 0.8rem;
    }
    
    .banner-content {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .banner-title {
        font-size: 0.9rem;
    }
    
    .banner-message {
        font-size: 0.75rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .container {
        padding: 0.5rem;
    }
    
    .header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .logo h1 {
        font-size: 1.125rem;
    }
    
    .hero-section {
        padding: 1.25rem 0.75rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.85rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .notification-settings,
    .filter-controls,
    .notifications-section {
        padding: 1rem;
    }
    
    .setting-item {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .test-button {
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    .banner-content {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .banner-title {
        font-size: 0.85rem;
    }
    
    .banner-message {
        font-size: 0.7rem;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 1rem;
    }
    
    .header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .stat-card {
        padding: 0.75rem;
        text-align: center;
    }
    
    .stat-card i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}
