/* ===== CSS Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: 0 0% 98%;
    --foreground: 220 20% 15%;
    --primary: 220 70% 20%;
    --primary-foreground: 0 0% 100%;
    --muted: 220 12% 92%;
    --muted-foreground: 220 10% 45%;
    --card: 0 0% 100%;
    --border: 220 15% 85%;
    --ring: 220 65% 45%;
    --success: 142 70% 40%;
    --warning: 35 85% 50%;
    --danger: 0 70% 35%;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Menlo', monospace;
}

.dark {
    --background: 220 20% 8%;
    --foreground: 220 10% 95%;
    --primary: 220 70% 60%;
    --primary-foreground: 0 0% 100%;
    --muted: 220 10% 18%;
    --muted-foreground: 220 8% 65%;
    --card: 220 18% 12%;
    --border: 220 15% 18%;
}

/* ===== Base Styles ===== */
body {
    font-family: var(--font-sans);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== Navigation Styles ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: hsla(var(--background), 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
    z-index: 100;
}

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

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: hsl(var(--primary));
}

.nav-links a.active {
    color: hsl(var(--primary));
    font-weight: 600;
    border-bottom: 2px solid hsl(var(--primary));
    padding-bottom: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background-color: hsl(var(--foreground));
    transition: all 0.3s;
}

/* Header Styles (alternative) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: hsla(var(--background), 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Header is position:sticky — no body padding-top needed */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-lg {
    max-width: 1024px;
}

.container-md {
    max-width: 896px;
}

.container-sm {
    max-width: 768px;
}

.main {
    min-height: calc(100vh - 64px);
}

.py-section {
    padding: 5rem 0;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsla(var(--background), 0.95);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    /* Assicura testo bianco su tutti i temi */
    color: white !important;
}

/* Fix specifico per bottoni primari nella navigazione */
.nav-links .btn-primary,
.nav .btn-primary,
a.btn-primary {
    background-color: hsl(var(--primary)) !important;
    color: white !important;
    border-color: hsl(var(--primary)) !important;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

/* Fix hover per bottoni primari nella navigazione */
.nav-links .btn-primary:hover,
.nav .btn-primary:hover,
a.btn-primary:hover {
    background-color: hsl(var(--primary)) !important;
    color: white !important;
    filter: brightness(1.1);
}

.btn-outline {
    border-color: hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
}

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

.btn-ghost {
    background-color: transparent;
}

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

.btn-danger {
    background-color: hsl(var(--danger));
    color: white;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ===== Homepage Sections ===== */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: hsl(var(--muted));
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.feature-card {
    background-color: hsla(var(--card), 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px hsla(var(--foreground), 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: hsla(var(--primary), 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.stat-label {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

/* CTA Section */
.cta-container {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: hsl(var(--muted));
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: hsl(var(--primary));
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background-color: hsl(var(--background));
        border-bottom: 1px solid hsl(var(--border));
        padding: 1rem;
        gap: 0.75rem;
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .hero-buttons > * {
        width: 100%;
        max-width: 300px;
    }

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

    .cta-buttons > * {
        width: 100%;
        max-width: 300px;
    }
}

.btn-full {
    width: 100%;
}

.btn-icon {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: hsl(var(--foreground));
}

/* ===== Cards ===== */
.card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.card-header {
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    font-family: inherit;
    color: hsl(var(--foreground));
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsla(var(--ring), 0.1);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: auto;
}

/* ===== Auth Pages ===== */
.auth-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Registration Options */
.registration-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.registration-option {
    background-color: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.registration-option:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--foreground), 0.1);
}

.registration-option.featured {
    border-color: hsl(var(--primary));
    background-color: hsla(var(--primary), 0.05);
    position: relative;
}

.registration-option.featured::before {
    content: 'Consigliato';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: hsl(var(--primary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.option-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background-color: hsla(var(--primary), 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
}

.registration-option h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.registration-option p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.registration-option ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.registration-option li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.option-button {
    margin-top: auto;
}

@media (max-width: 768px) {
    .registration-options {
        grid-template-columns: 1fr;
    }

    .registration-option {
        padding: 1.5rem;
    }
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

/* Wider card for registration choice */
.auth-card:has(.registration-options) {
    max-width: 800px;
}

.auth-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: hsl(var(--muted-foreground));
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: hsl(var(--border));
}

.auth-divider span {
    position: relative;
    background-color: hsl(var(--card));
    padding: 0 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    font-size: 0.875rem;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-color: hsl(var(--success));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

/* ===== Dashboard ===== */
.dashboard-main {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.query-section {
    margin-bottom: 3rem;
}

.usage-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.usage-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.usage-count {
    font-family: var(--font-mono);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background-color: hsl(var(--muted));
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: hsl(var(--primary));
    transition: width 0.3s;
}

.query-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.query-card h3 {
    margin-bottom: 1rem;
}

.query-card textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    font-family: inherit;
    resize: vertical;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.query-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.char-count {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-family: var(--font-mono);
}

.response-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

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

.history-section {
    margin-top: 3rem;
}

.history-section h3 {
    margin-bottom: 1.5rem;
}

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

.history-item {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--muted));
}

.history-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.history-query {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* ===== Profile ===== */
.profile-header {
    margin-bottom: 2rem;
}

.profile-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plan-badge {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-badge-advanced {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.plan-features {
    margin-bottom: 1.5rem;
}

.plan-features h4 {
    margin-bottom: 0.75rem;
}

.plan-features ul {
    list-style: none;
    padding-left: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--success));
    font-weight: bold;
}

.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.danger-zone {
    border-color: hsl(var(--danger));
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    gap: 1rem;
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: hsl(var(--muted));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
}

.info-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-form-container {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== Page Header ===== */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
}

/* ===== Legal Content ===== */
.legal-content {
    max-width: 768px;
    margin: 0 auto;
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.cookie-table,
.help-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cookie-table th,
.cookie-table td,
.help-table th,
.help-table td {
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    text-align: left;
}

.cookie-table th,
.help-table th {
    background-color: hsl(var(--muted));
    font-weight: 600;
}

/* ===== Help Center ===== */
.help-search {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0 3rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.help-categories {
    margin-bottom: 3rem;
}

.help-categories h2 {
    margin-bottom: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.category-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.help-links {
    list-style: none;
    padding: 0;
}

.help-links li {
    margin-bottom: 0.5rem;
}

.help-links a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.help-links a:hover {
    text-decoration: underline;
}

.help-content {
    margin-bottom: 3rem;
}

.help-article {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid hsl(var(--border));
}

.article-content {
    margin-top: 1rem;
}

.example-box {
    background-color: hsl(var(--muted));
    border-left: 4px solid hsl(var(--primary));
    padding: 1rem;
    margin: 1rem 0;
}

.example-box p {
    margin-bottom: 0.75rem;
}

.example-box p:last-child {
    margin-bottom: 0;
}

.help-cta {
    text-align: center;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 3rem 2rem;
}

.help-cta h2 {
    margin-bottom: 0.5rem;
}

.help-cta p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

/* ===== Footer Alternative (removed duplicate) ===== */

/* ===== Alerts ===== */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.alert-error {
    background-color: hsla(var(--danger), 0.1);
    border: 1px solid hsla(var(--danger), 0.3);
    color: hsl(var(--danger));
}

.alert-success {
    background-color: hsla(var(--success), 0.1);
    border: 1px solid hsla(var(--success), 0.3);
    color: hsl(var(--success));
}

.alert-warning {
    background-color: hsla(var(--warning), 0.1);
    border: 1px solid hsla(var(--warning), 0.3);
    color: hsl(var(--warning));
}

/* ===== Utilities ===== */
.text-muted {
    color: hsl(var(--muted-foreground));
}

.link {
    color: hsl(var(--primary));
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.loading {
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

.references {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: hsl(var(--muted));
    border-radius: 0.5rem;
}

.references ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-content {
        height: 56px;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
}
