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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Modern Header/Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 32px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 0.6s ease-out;
    position: sticky;
    top: 20px;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.navbar-brand p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.user-email-nav {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-email-nav::before {
    content: '👤';
    font-size: 1rem;
}

.user-welcome-nav {
    font-size: 0.75rem;
    color: #6b7280;
}

.navbar .btn {
    margin: 0;
    padding: 10px 24px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.navbar .btn-danger {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Legacy header for when not logged in */
.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

/* Hero Section - Product Vision */
.hero-section {
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.hero-feature {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.hero-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.hero-feature-text strong {
    display: block;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 4px;
}

.hero-feature-text p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.hero-problem {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 14px;
    padding: 24px;
    border-left: 4px solid #f59e0b;
}

.hero-problem-title {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-problem p {
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.hero-problem strong {
    color: #92400e;
}

/* Responsive hero section */
@media (max-width: 768px) {
    .hero-card {
        padding: 24px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hero-feature {
        padding: 16px;
    }
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

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

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

.card h2 {
    color: #4f46e5;
    margin-bottom: 24px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.upload-card {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.5s;
}

.upload-card:hover {
    border-color: #4f46e5;
    background: #f8fafc;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
}

.upload-card:hover::before {
    left: 100%;
}

.upload-card.dragover {
    border-color: #4f46e5;
    background: linear-gradient(to bottom, #eef2ff, #e0e7ff);
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
    border-style: solid;
}

.upload-card.dragover .upload-icon {
    color: #4f46e5;
    transform: scale(1.15);
}

.upload-card.dragover .upload-badge {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: scale(1.1);
}

.upload-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: linear-gradient(to bottom, #f3f4f6, #e5e7eb);
    border-color: #d1d5db;
    position: relative;
}

.upload-card.disabled::after {
    content: '⚠️ Ethical confirmation required';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-card.disabled .upload-icon {
    color: #9ca3af;
}

.upload-card.disabled .upload-badge {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.upload-card input[type="file"] {
    display: none;
}

.upload-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.upload-icon {
    font-size: 4rem;
    color: #9ca3af;
    transition: all 0.3s ease;
    display: block;
}

.upload-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-card:hover .upload-icon {
    color: #4f46e5;
    transform: scale(1.1);
}

.upload-hint {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.upload-card:hover .upload-hint {
    opacity: 1;
}

.btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-danger:hover:not(:disabled) {
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.status {
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.status.success {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.status.error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.status.info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.results {
    margin-top: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    animation: fadeInUp 0.3s ease-out;
}

.result-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.result-item.success {
    border-color: #10b981;
    background: linear-gradient(to right, #f0fdf4, #ffffff);
}

.result-item.error {
    border-color: #ef4444;
    background: linear-gradient(to right, #fef2f2, #ffffff);
}

.result-email {
    font-weight: 500;
}

.result-status {
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.result-status.success {
    background: #10b981;
    color: white;
}

.result-status.error {
    background: #ef4444;
    color: white;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .upload-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .navbar {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .navbar-brand h1 {
        font-size: 1.5rem;
    }

    .navbar-user {
        width: 100%;
        justify-content: space-between;
    }

    .navbar .btn {
        width: auto;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

    .card {
        padding: 24px;
        border-radius: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .upload-card {
        padding: 32px 24px;
    }

    .container {
        padding: 16px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Better checkbox styling */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4f46e5;
}

/* Link styling */
a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #6366f1;
    text-decoration: underline;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    animation: toastProgress 3s linear forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.success {
    border-left-color: #10b981;
    color: #065f46;
}

.toast.error {
    border-left-color: #ef4444;
    color: #991b1b;
}

.toast.warning {
    border-left-color: #f59e0b;
    color: #92400e;
}

.toast.info {
    border-left-color: #3b82f6;
    color: #1e40af;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: currentColor;
    opacity: 0.6;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* Email Preview Action Buttons */
.btn-edit-email,
.btn-regenerate-email,
.btn-exclude-email,
.btn-save-edit,
.btn-cancel-edit,
.btn-undo-exclude {
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-edit-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-regenerate-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-exclude-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-save-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-cancel-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.btn-undo-exclude:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Email edit inputs */
.email-subject-input,
.email-body-input {
    font-family: inherit;
    transition: all 0.2s ease;
}

.email-subject-input:focus,
.email-body-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Email actions container responsive */
@media (max-width: 768px) {
    .email-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 12px;
    }
    
    .email-actions button {
        flex: 1;
        justify-content: center;
    }
}

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 4px;
}

.stat-trend {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #f3f4f6;
    border-radius: 8px;
    width: fit-content;
}

.stat-trend.positive {
    color: #059669;
    background: #d1fae5;
}

.stat-trend.negative {
    color: #dc2626;
    background: #fee2e2;
}

/* Step Progress Indicator */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(to right, #f8fafc, #f1f5f9, #f8fafc);
    border-radius: 12px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.step.active .step-number {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 1rem;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: #4f46e5;
}

.step.completed .step-label {
    color: #059669;
}

.step-connector {
    width: 60px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 12px;
    margin-bottom: 28px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.step-connector.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* Quick Start Guide */
.quick-start-guide {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #c7d2fe;
    transition: all 0.3s ease;
}

.guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.guide-header:hover {
    background: rgba(255, 255, 255, 0.3);
}

.guide-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #4338ca;
}

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

.new-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.guide-toggle {
    color: #6366f1;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.guide-header[aria-expanded="false"] .guide-toggle {
    transform: rotate(-90deg);
}

.guide-content {
    padding: 0 20px 20px;
    animation: slideDown 0.3s ease-out;
    transition: all 0.3s ease;
}

.guide-content.collapsed {
    display: none;
}

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

.guide-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.guide-step {
    display: flex;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.guide-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.guide-step-text strong {
    display: block;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.guide-step-text p {
    color: #6b7280;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

.guide-dismiss {
    background: transparent;
    border: 2px solid #a5b4fc;
    color: #4338ca;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.guide-dismiss:hover {
    background: white;
    border-color: #6366f1;
}

/* Responsive adjustments for stats and steps */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .step-progress {
        padding: 16px;
        overflow-x: auto;
    }
    
    .step-connector {
        width: 30px;
        margin: 0 6px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}
