/* FedRescue - Federal Government Style Design System */
/* Professional, trustworthy, accessible */

/* =====================================================
   CSS RESET & BASE TYPOGRAPHY
   ===================================================== */

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

:root {
    /* Federal Color Palette */
    --fed-blue: #0A3161;
    --fed-blue-dark: #072543;
    --fed-blue-light: #0D4A8E;
    --fed-red: #B22234;
    --fed-red-dark: #901C2B;
    --accent-blue: #0055A4;
    
    /* Neutral Palette */
    --gray-50: #F9FAFB;
    --gray-100: #F2F4F7;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    
    /* Semantic Colors */
    --success-green: #059669;
    --success-green-light: #D1FAE5;
    --warning-amber: #D97706;
    --error-red: #DC2626;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-sans: 'Inter', 'Roboto', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--gray-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   TYPOGRAPHY SYSTEM
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

a {
    color: var(--fed-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--fed-blue-light);
    text-decoration: underline;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

.header {
    background-color: var(--fed-blue);
    color: var(--white);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-icon {
    width: 36px;
    height: 36px;
    fill: var(--white);
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.01em;
}

.menu-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 44px;
    min-width: 44px;
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger::before {
    content: '☰';
    font-size: 20px;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-slow);
    z-index: 1000;
    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

.side-menu-header {
    padding: var(--space-xl) var(--space-lg);
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-menu-header h2 {
    color: var(--fed-blue);
    font-size: 1.5rem;
    margin: 0;
}

.close-menu {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    transition: color var(--transition-fast);
}

.close-menu:hover {
    color: var(--gray-700);
}

.menu-list {
    list-style: none;
    padding: var(--space-md) 0;
}

.menu-list li {
    border-bottom: 1px solid var(--gray-100);
}

.menu-list a {
    display: block;
    padding: var(--space-lg) var(--space-lg);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-fast);
    min-height: 44px;
}

.menu-list a:hover {
    background-color: var(--gray-50);
    color: var(--fed-blue);
    text-decoration: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    background: linear-gradient(135deg, var(--fed-blue) 0%, var(--fed-blue-dark) 100%);
    color: var(--white);
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-decoration: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--fed-red);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--fed-red-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--fed-blue);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-tertiary {
    background-color: transparent;
    color: var(--fed-blue);
    border: 2px solid var(--fed-blue);
}

.btn-tertiary:hover {
    background-color: var(--fed-blue);
    color: var(--white);
    text-decoration: none;
}

.btn-small {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    min-height: 40px;
}

/* =====================================================
   CATEGORY NAVIGATION
   ===================================================== */

.category-section {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    padding: var(--space-md) 0;
    position: sticky;
    top: 68px;
    z-index: 90;
}

.category-scroll-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.category-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.category-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.category-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 3px;
}

.category-chip {
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.category-chip:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.category-chip.active {
    background: var(--fed-blue);
    color: var(--white);
    border-color: var(--fed-blue);
}

.category-icon {
    width: 18px;
    height: 18px;
}

/* =====================================================
   MAIN CONTENT SECTIONS
   ===================================================== */

.section {
    padding: var(--space-3xl) var(--space-lg);
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 2.25rem;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* Background Variations */
.section-gray {
    background-color: var(--gray-50);
}

.section-white {
    background-color: var(--white);
}

.section-blue {
    background-color: var(--fed-blue);
    color: var(--white);
}

.section-blue .section-title,
.section-blue h2,
.section-blue h3 {
    color: var(--white);
}

.section-blue .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* =====================================================
   DEAL CARDS
   ===================================================== */

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.deal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.deal-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
    border-color: var(--fed-blue-light);
}

.deal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.deal-category-badge {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.verified-badge {
    background: var(--success-green-light);
    color: var(--success-green);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.verified-icon {
    width: 16px;
    height: 16px;
}

.deal-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.deal-card-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.deal-card-location {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.location-icon {
    width: 16px;
    height: 16px;
}

.deal-card-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-save,
.btn-remove {
    flex: 1;
    min-width: auto;
    font-size: 0.875rem;
}

.btn-save {
    background-color: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-save:hover {
    background-color: var(--gray-200);
}

.btn-save.saved {
    background-color: var(--success-green-light);
    color: var(--success-green);
    border-color: var(--success-green);
}

.btn-remove {
    background-color: var(--error-red);
    color: var(--white);
}

.btn-view {
    flex: 2;
    font-size: 0.875rem;
}

/* =====================================================
   COMMUNITY SUPPORT CARDS
   ===================================================== */

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.support-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--fed-blue);
}

.support-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--fed-blue);
}

.support-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.support-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.support-link {
    color: var(--fed-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.support-link:hover {
    color: var(--fed-blue-light);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-content h3 {
    font-size: 1.5rem;
    color: var(--fed-blue);
    margin-bottom: var(--space-md);
}

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-2xl) var(--space-lg);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-section a {
    color: var(--gray-300);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1280px;
    margin: var(--space-xl) auto 0;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* =====================================================
   NEWSLETTER SIGNUP
   ===================================================== */

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    min-height: 44px;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--fed-blue);
    box-shadow: 0 0 0 3px rgba(10, 49, 97, 0.1);
}

/* =====================================================
   FORMS
   ===================================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--fed-blue);
    box-shadow: 0 0 0 3px rgba(10, 49, 97, 0.1);
}

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

.form-success {
    background: var(--success-green-light);
    color: var(--success-green);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    text-align: center;
    font-weight: 600;
    border-left: 4px solid var(--success-green);
}

.form-error {
    background: #FEE2E2;
    color: var(--error-red);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    text-align: center;
    font-weight: 600;
    border-left: 4px solid var(--error-red);
}

/* =====================================================
   LOADING & EMPTY STATES
   ===================================================== */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    gap: var(--space-lg);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--fed-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--gray-600);
    font-size: 1.0625rem;
}

.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--gray-400);
    margin-bottom: var(--space-md);
}

.empty-state h3 {
    color: var(--gray-900);
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--gray-600);
    max-width: 400px;
    font-size: 1.0625rem;
}

/* =====================================================
   SKELETON LOADERS
   ===================================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 0%,
        var(--gray-100) 50%,
        var(--gray-200) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

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

.skeleton-card {
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.skeleton-title {
    height: 24px;
    margin-bottom: var(--space-md);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-sm);
}

.skeleton-text:last-child {
    width: 60%;
}

/* =====================================================
   FLOATING ACTION BUTTON
   ===================================================== */

.floating-action-button {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--fed-red);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 50;
}

.floating-action-button:hover {
    background: var(--fed-red-dark);
    transform: scale(1.05);
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.2);
}

.fab-icon {
    font-size: 28px;
}

.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--fed-blue);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */

.toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    opacity: 0;
    transition: all var(--transition-slow);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    h1, .hero-headline {
        font-size: 2rem;
    }
    
    h2, .section-title {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .hero-tagline {
        font-size: 1.0625rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .category-section {
        top: 60px;
    }
    
    .floating-action-button {
        width: 56px;
        height: 56px;
        bottom: var(--space-md);
        right: var(--space-md);
    }
    
    .fab-icon {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        width: 100%;
    }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles for Keyboard Navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--fed-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--white);
    }
    
    .deal-card {
        border: 2px solid var(--gray-900);
    }
}

/* =====================================================
   VIEW MANAGEMENT (from original app structure)
   ===================================================== */

.view-container {
    min-height: calc(100vh - 300px);
}

.view-container > section {
    display: none;
}

.view-container > section.active {
    display: block;
}

/* =====================================================
   ERROR DISPLAY
   ===================================================== */

.error-display {
    background-color: #FEE2E2;
    border: 2px solid var(--error-red);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-lg);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.error-content h3 {
    color: #991B1B;
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.error-content p {
    color: #7F1D1D;
    font-size: 0.9375rem;
    margin: 0;
}
