/* ===================================
   BirdQuest - Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #48bb78;
    --accent-dark: #38a169;

    /* Rarity Colors */
    --common: #a0aec0;
    --common-bg: rgba(160, 174, 192, 0.15);
    --uncommon: #68d391;
    --uncommon-bg: rgba(104, 211, 145, 0.15);
    --rare: #63b3ed;
    --rare-bg: rgba(99, 179, 237, 0.15);
    --epic: #b794f4;
    --epic-bg: rgba(183, 148, 244, 0.15);
    --legendary: #f6ad55;
    --legendary-bg: rgba(246, 173, 85, 0.15);
    --shiny: #ffd700;

    /* Neutrals */
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;

    /* Status Colors */
    --success: #48bb78;
    --error: #fc8181;
    --warning: #f6ad55;
    --info: #63b3ed;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   Base Styles & Reset
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Nunito",
        "Poppins",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.25rem;
}
h5 {
    font-size: 1.125rem;
}
h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-medium);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-full);
}

.user-seeds,
.user-level {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-fast);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white !important;
}

a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
}

a.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

.btn-block,
.btn-full {
    width: 100%;
}

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

/* ===================================
   Forms
   =================================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

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

.form-hint {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===================================
   Alerts & Flash Messages
   =================================== */
.flash-messages {
    position: fixed;
    top: 80px;
    right: var(--spacing-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 400px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.flash-message.success,
.flash-flash-success {
    border-left: 4px solid var(--success);
}

.flash-message.error,
.flash-flash-error {
    border-left: 4px solid var(--error);
}

.flash-message.warning {
    border-left: 4px solid var(--warning);
}

.flash-message.info {
    border-left: 4px solid var(--info);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    margin-left: auto;
}

.flash-close:hover {
    color: var(--text-dark);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--accent-dark);
    border: 1px solid var(--accent);
}

.alert-error {
    background: rgba(252, 129, 129, 0.1);
    color: #c53030;
    border: 1px solid var(--error);
}

/* ===================================
   Home Page - Hero Section
   =================================== */
.home-page {
    background: var(--bg-white);
}

.hero {
    padding: var(--spacing-3xl) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2xl);
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bird-showcase {
    position: relative;
}

.showcase-card {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.showcase-card.legendary {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    box-shadow: 0 20px 60px rgba(252, 182, 159, 0.5);
}

.showcase-card .bird-emoji {
    font-size: 8rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ===================================
   Home Page - Features Section
   =================================== */
.features {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: -1.5rem auto var(--spacing-2xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===================================
   Home Page - How It Works Section
   =================================== */
.how-it-works {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--bg-white);
}

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

.step {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    color: var(--text-light);
    margin: 0;
}

.step-icon {
    font-size: 2.5rem;
}

/* ===================================
   Home Page - Rarities Section
   =================================== */
.rarities {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rarities .section-title {
    color: white;
}

.rarities .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.rarity-cards {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto var(--spacing-2xl);
}

.rarity-card {
    width: 160px;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.rarity-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.rarity-card.common {
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    color: var(--text-dark);
}

.rarity-card.uncommon {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: var(--text-dark);
}

.rarity-card.rare {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    color: var(--text-dark);
}

.rarity-card.epic {
    background: linear-gradient(135deg, #faf5ff 0%, #e9d8fd 100%);
    color: var(--text-dark);
}

.rarity-card.legendary {
    background: linear-gradient(135deg, #fffff0 0%, #fefcbf 100%);
    color: var(--text-dark);
}

.rarity-header {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.rarity-bird {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.rarity-multiplier {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.rarity-effect {
    font-size: 0.8rem;
    opacity: 0.8;
}

.shiny-info {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.shiny-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #744210;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   Home Page - Benefits Section
   =================================== */
.benefits {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--bg-light);
}

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

.benefit-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.benefit-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.benefit-item p {
    color: var(--text-light);
    margin: 0;
}

/* ===================================
   Home Page - CTA Section
   =================================== */
.cta {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--bg-white);
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.cta p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

/* ===================================
   Auth Pages
   =================================== */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

    width: 100%;
    max-width: 450px;
    position: relative;
}
.auth-container {
    width: 100%;
    max-width: 800px;
    margin: 64px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 48px 0;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-logo {
    margin-bottom: var(--spacing-md);
}

.bird-icon {
    font-size: 4rem;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.auth-header p {
    color: var(--text-light);
    margin: 0;
}

.auth-form {
    margin-bottom: var(--spacing-lg);
}

.auth-footer {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.auth-footer p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.back-link {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-features {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.auth-features h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
}

.auth-features ul {
    list-style: none;
}

.auth-features li {
    padding: var(--spacing-sm) 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Floating birds decoration */
.auth-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-bird {
    position: absolute;
    font-size: 2rem;
    animation: floatBird 4s ease-in-out infinite;
    opacity: 0.3;
}

.bird-1 {
    top: 10%;
    left: -50px;
    animation-delay: 0s;
}
.bird-2 {
    top: 30%;
    right: -50px;
    animation-delay: 1s;
}
.bird-3 {
    bottom: 30%;
    left: -50px;
    animation-delay: 2s;
}
.bird-4 {
    bottom: 10%;
    right: -50px;
    animation-delay: 3s;
}

@keyframes floatBird {
    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(30px) rotate(5deg);
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: var(--spacing-md);
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}
.mt-md {
    margin-top: var(--spacing-md);
}
.mt-lg {
    margin-top: var(--spacing-lg);
}
.mb-sm {
    margin-bottom: var(--spacing-sm);
}
.mb-md {
    margin-bottom: var(--spacing-md);
}
.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.hidden {
    display: none !important;
}
.visible {
    display: block !important;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-xl) var(--spacing-lg);
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .showcase-card {
        width: 200px;
        height: 200px;
    }

    .showcase-card .bird-emoji {
        font-size: 5rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-user-info {
        order: -1;
        margin-bottom: var(--spacing-md);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .rarity-cards {
        flex-direction: column;
        align-items: center;
    }

    .rarity-card {
        width: 100%;
        max-width: 200px;
    }

    .auth-card {
        padding: var(--spacing-lg);
    }

    .flash-messages {
        left: var(--spacing-md);
        right: var(--spacing-md);
        max-width: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }

    .btn-large {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Animation Utilities
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease;
}

.animate-fade-in-down {
    animation: fadeInDown 0.5s ease;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease;
}

/* ===================================
   Toast Container Styles
   =================================== */
.auth-container {
    width: 100%;
    max-width: 500px;
    margin: 80px auto;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 48px 0 48px 0;
    display: block;
}
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    flex: 1;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===================================
   Invalid Input Styles
   =================================== */
input.invalid,
select.invalid,
textarea.invalid {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.2) !important;
}
.sparkles .sparkle {
    position: absolute;
    background: #ffd700;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: sparkle 2s infinite;
}

.sparkles .sparkle:nth-child(1) { width: 8px; height: 8px; top: 20%; left: 20%; animation-delay: 0s; }
.sparkles .sparkle:nth-child(2) { width: 12px; height: 12px; top: 70%; left: 30%; animation-delay: 0.5s; }
.sparkles .sparkle:nth-child(3) { width: 6px; height: 6px; top: 40%; right: 25%; animation-delay: 1s; }
.sparkles .sparkle:nth-child(4) { width: 10px; height: 10px; bottom: 30%; left: 15%; animation-delay: 1.3s; }
.sparkles .sparkle:nth-child(5) { width: 8px; height: 8px; top: 60%; right: 20%; animation-delay: 0.8s; }
.sparkles .sparkle:nth-child(6) { width: 14px; height: 14px; top: 30%; left: 70%; animation-delay: 1.6s; }

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}
.bird-display.shiny .bird-image img {
    filter: drop-shadow(0 0 20px #ffd700)
            drop-shadow(0 0 40px #ffd700);
    animation: shinyGlow 3s ease-in-out infinite;
}

@keyframes shinyGlow {
    0%, 100% { filter: drop-shadow(0 0 20px #ffd700) drop-shadow(0 0 40px #ffd700); }
    50% { filter: drop-shadow(0 0 30px #ffd700) drop-shadow(0 0 60px #ffd700); }
}
