/* Modern CSS Reset and Base Styles - Inspired by shadcn/ui */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* shadcn/ui inspired color palette */
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 84% 4.9%;
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96%;
    --accent-foreground: 222.2 84% 4.9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.5rem;
    
    /* Custom design tokens */
    --gradient-primary: linear-gradient(135deg, hsl(221.2 83.2% 53.3%) 0%, hsl(262.1 83.3% 57.8%) 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "rlig" 1, "calt" 1;
    line-height: 1.5;
    color: hsl(var(--foreground));
    background: hsl(var(--muted)) hsl(var(--background));
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Header Styles */
.header {
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    padding: 2rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-text {
    text-align: left;
    flex: 1;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white;
}

.subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Cards and Surfaces */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow-sm);
}

section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(36, 63, 77, 0.2);
    backdrop-filter: blur(12px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(var(--border));
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

section h2 {
    color: hsl(var(--foreground));
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    outline: none;
    focus-visible: outline;
    focus-visible: 2px solid hsl(var(--ring));
    focus-visible: outline-offset;
    focus-visible: 2px;
}

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

/* Button sizes */
.btn {
    height: 2.5rem;
    padding: 0 1rem;
}

.btn-sm {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    height: 2.75rem;
    padding: 0 2rem;
}

/* Button variants */
.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid hsl(var(--border));
}

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

.btn-outline {
    border: 1px solid hsl(var(--border));
    background: transparent;
}

.btn-outline:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-destructive {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover {
    background: hsl(var(--destructive) / 0.9);
}

.btn-ghost {
    background: transparent;
}

.btn-ghost:hover {
    background: hsl(var(--accent));
}

/* Input System */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.input-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

input[type="url"], 
input[type="email"], 
input[type="password"], 
input[type="text"], 
textarea {
    flex: 1;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
    outline: none;
}

textarea {
    height: auto;
    min-height: 5rem;
    padding: 0.75rem;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

input:focus, textarea:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Tab System */
.input-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.tab-button.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
}

.tab-button:hover:not(.active) {
    color: hsl(var(--foreground));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Status and Progress */
.status-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--foreground));
    font-weight: 500;
    font-size: 0.875rem;
}

.status-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: hsl(var(--muted-foreground));
    transition: all 0.3s ease;
}

.status-indicator.healthy {
    background: #22c55e;
    box-shadow: 0 0 0.5rem rgba(34, 197, 94, 0.5);
}

.status-indicator.unhealthy {
    background: #ef4444;
    box-shadow: 0 0 0.5rem rgba(239, 68, 68, 0.5);
}

.status-indicator.unknown {
    background: #f59e0b;
    box-shadow: 0 0 0.5rem rgba(245, 158, 11, 0.5);
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 0.5rem;
    background: hsl(var(--secondary));
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    width: 0%;
    border-radius: 9999px;
}

.progress-text {
    font-weight: 600;
    color: hsl(var(--primary));
    min-width: 3rem;
    font-size: 0.875rem;
}

/* Job and Result Cards */
.current-job {
    background: hsl(var(--muted));
    border-radius: var(--radius);
    padding: 1rem;
    border-left: 4px solid hsl(var(--primary));
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-url {
    font-weight: 600;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

.job-step {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

/* Results Section */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-stat {
    background: hsl(var(--card));
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-sm);
}

.result-stat .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    display: block;
    line-height: 1;
}

.result-stat .label {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
}

.result-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.result-item.success {
    border-left: 4px solid #22c55e;
}

.result-item.failed {
    border-left: 4px solid #ef4444;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.result-url {
    font-weight: 600;
    color: hsl(var(--foreground));
    flex: 1;
    font-size: 0.875rem;
}

.result-status {
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-status.success {
    background: #dcfce7;
    color: #166534;
}

.result-status.failed {
    background: #fef2f2;
    color: #991b1b;
}

.result-details {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Jobs List */
.jobs-list {
    max-height: 50rem;
    overflow-y: auto;
}

.job-item {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-sm);
}

.job-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.job-url {
    font-weight: 600;
    font-size: 1rem;
    color: hsl(var(--foreground));
}

.job-status {
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-status.completed {
    background: #dcfce7;
    color: #166534;
}

.job-status.processing {
    background: #fef3c7;
    color: #92400e;
}

.job-status.failed {
    background: #fef2f2;
    color: #991b1b;
}

.job-meta {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.no-jobs {
    text-align: center;
    color: hsl(var(--muted-foreground));
    padding: 3rem;
    font-style: italic;
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: hsl(var(--background));
    margin: auto;
    padding: 0;
    border-radius: calc(var(--radius) + 4px);
    width: 90%;
    max-width: 42rem;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid hsl(var(--border));
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0;
}

.modal-close {
    color: hsl(var(--muted-foreground));
    font-size: 1.5rem;
    font-weight: 400;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: all 0.2s ease-in-out;
    line-height: 1;
}

.modal-close:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--accent));
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

/* Profile Section */
.profile-section {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(var(--border));
}

.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-card {
    background: hsl(var(--muted));
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid hsl(var(--border));
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    text-transform: capitalize;
}

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

.credit-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    margin: 0.25rem 0;
}

.credit-meter {
    background: hsl(var(--secondary));
    height: 0.5rem;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
    position: relative;
}

.credit-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.3s ease;
    border-radius: 9999px;
}

/* User info in header */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
}

.user-credits {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.8125rem;
}

/* Auth links in header */
.auth-link {
    color: white !important;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
}

.auth-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Credit Purchase Modal */
.credit-packs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.credit-pack {
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: hsl(var(--card));
}

.credit-pack:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.credit-pack.selected {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
    box-shadow: var(--shadow-md);
}

.pack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pack-header h4 {
    margin: 0;
    font-size: 1.125rem;
    color: hsl(var(--foreground));
    font-weight: 600;
}

.pack-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

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

.pack-credits {
    font-size: 1rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.pack-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.pack-savings {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 500;
    background: #dcfce7;
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    display: inline-block;
}

.credit-status {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.credit-status p {
    margin: 0 0 0.5rem 0;
    color: #92400e;
    font-size: 0.875rem;
}

.credit-status p:last-child {
    margin-bottom: 0;
}

#card-element {
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    transition: all 0.2s ease-in-out;
}

#card-element.StripeElement--focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

#card-element.StripeElement--invalid {
    border-color: hsl(var(--destructive));
}

/* File Display */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.file-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    text-align: center;
    min-height: 8rem;
    justify-content: space-between;
    position: relative;
}

.file-card.downloadable {
    cursor: pointer;
}

.file-card.downloadable:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.file-icon-large {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.file-name {
    font-weight: 600;
    font-size: 0.8125rem;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.file-type-badge {
    background: hsl(var(--background));
    color: hsl(var(--primary));
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Loading states */
.btn-loading .btn-text {
    display: none;
}

.btn-loading .btn-loading {
    display: inline;
}

.btn:not(.btn-loading) .btn-loading {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(0.5rem); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-text {
        text-align: center;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .result-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8125rem;
    }
    
    .credit-packs {
        grid-template-columns: 1fr;
    }
    
    .files-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .file-card {
        padding: 0.75rem;
        min-height: 6rem;
    }
    
    .file-icon-large {
        font-size: 1.5rem;
    }
    
    .file-name {
        font-size: 0.75rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 2.5% auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .credit-packs {
        gap: 0.75rem;
    }
    
    .credit-pack {
        padding: 1rem;
    }
}

.hero-background {
    /* Main gradient background */
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 50%, #dbeafe 100%);

    /* Dot pattern overlay */
    background-image: radial-gradient(#3b83f633 1px, transparent 1px);
    background-size: 1% 1%;

    /* Position relative for decorative elements */
    position: relative;
    /* Removed overflow: hidden to allow page scrolling */
    min-height: 100vh;
}

/* Decorative gradient lines */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
    opacity: 0.3;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
    opacity: 0.3;
}

/* Decorative blurred circles */
.hero-background .decorative-circle-1 {
    position: absolute;
    top: 10rem;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(147, 197, 253, 0.2);
    border-radius: 50%;
    filter: blur(3rem);
    transform: translateX(50%);
    z-index: -1;
}

.hero-background .decorative-circle-2 {
    position: absolute;
    bottom: 5rem;
    left: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(165, 180, 252, 0.2);
    border-radius: 50%;
    filter: blur(3rem);
    transform: translateX(-33.333333%);
    z-index: -1;
}

.hero-background .decorative-circle-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20rem;
    height: 20rem;
    background: rgba(191, 219, 254, 0.2);
    border-radius: 50%;
    filter: blur(3rem);
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* App Footer Styles */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding: 8px 16px;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.7);
}

.footer-text {
    font-weight: 500;
}

.footer-version {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: rgba(59, 130, 246, 0.8);
}

/* Adjust container padding to account for footer */
.container {
    padding-bottom: 60px;
}

/* Rate Limit Widget Styles - Moved to Admin Panel */
/* These styles are no longer used on the landing page
.rate-limit-widget {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-size: 0.85rem;
}

.rate-limit-widget .widget-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-limit-widget .widget-title {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.rate-limit-widget .widget-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rate-limit-widget .widget-status.health-healthy {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.rate-limit-widget .widget-status.health-unavailable {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.rate-limit-widget .widget-status.health-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.rate-limit-widget .widget-content {
    padding: 1rem;
}

.rate-limit-widget .info-message {
    color: #64748b;
    line-height: 1.5;
}

.rate-limit-widget .provider-info {
    margin-bottom: 0.5rem;
    color: #334155;
}

.rate-limit-widget .status-info {
    margin-bottom: 0.5rem;
    color: #64748b;
}

.rate-limit-widget .status-note {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}

.rate-limit-widget .error-message {
    color: #ef4444;
    font-size: 0.85rem;
}

.rate-limit-widget .loading {
    color: #94a3b8;
    font-style: italic;
}

/* Rate limit usage bars */
.rate-limit-widget .rate-limits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rate-limit-widget .usage-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rate-limit-widget .usage-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #475569;
}

.rate-limit-widget .usage-numbers {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
    color: #64748b;
}

.rate-limit-widget .usage-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.rate-limit-widget .usage-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.rate-limit-widget .usage-fill.normal {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.rate-limit-widget .usage-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.rate-limit-widget .usage-fill.critical {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.rate-limit-widget .usage-percent {
    font-size: 0.75rem;
    color: #64748b;
    text-align: right;
}

.rate-limit-widget .reset-time {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: right;
}

/* Make widget more compact on mobile */
/*
@media (max-width: 768px) {
    .rate-limit-widget {
        margin: 0.75rem 0;
        font-size: 0.8rem;
    }
    
    .rate-limit-widget .widget-header {
        padding: 0.5rem 0.75rem;
    }
    
    .rate-limit-widget .widget-content {
        padding: 0.75rem;
    }
}
*/