* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Plants Header Section */
.plants-header-section {
    background: linear-gradient(135deg, #4CAF50, #45a049, #66BB6A);
    color: white;
    position: relative;
    overflow: hidden;
}

.plants-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="70" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.plants-nav {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.plants-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.plants-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.plants-nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.plants-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.plants-nav-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-2px);
}

.plants-nav-link.active {
    background: rgba(255,255,255,0.25);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-icon {
    font-size: 1.2rem;
}


/* User info integration */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-info .plants-nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.anonymous-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.anonymous-info .plants-nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.usage-badge {
    background: rgba(255,255,255,0.3);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.usage-badge.usage-good {
    background: rgba(76, 175, 80, 0.8);
}

.usage-badge.usage-warning {
    background: rgba(255, 152, 0, 0.8);
}

.usage-badge.usage-critical {
    background: rgba(244, 67, 54, 0.8);
}

.usage-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.usage-bar {
    width: 60px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Legacy header styles for backward compatibility */
.header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    min-height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .header .container {
        padding: 1rem 15px;
        flex-direction: column;
        gap: 1rem;
        min-height: auto;
    }
    
    .logo {
        font-size: 1.4rem;
        text-align: center;
        width: 100%;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .user-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }
    
    .user-info span {
        max-width: 250px;
        font-size: 0.85rem;
    }
    
    .auth-buttons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0.75rem 10px;
        gap: 0.75rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .user-info span {
        font-size: 0.8rem;
        max-width: 200px;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
}

/* Main Content */
.main {
    padding: 2.5rem 0 2rem 0;
}

/* Camera Start Section */
.camera-start-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.camera-start-container h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.camera-start-container p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.start-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.start-options .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.camera-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#camera {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #f0f0f0;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

.btn-success:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
}

/* Photo Collection */
.photo-collection {
    margin-bottom: 2rem;
    text-align: center;
}

.photo-counter {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d5a27;
    margin-bottom: 1rem;
}

.photo-previews {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.photo-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #4CAF50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.photo-preview .remove-photo:hover {
    background: rgba(244, 67, 54, 1);
}

/* Learn More Section */
.learn-more-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.detailed-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 10px;
    border-left: 4px solid #2196F3;
}

.detailed-info h3 {
    color: #1976D2;
    margin-bottom: 1rem;
}

.detailed-info h4 {
    color: #1976D2;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.detailed-info p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.detailed-info ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.detailed-info li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Results Section */
.results-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.result-card h2 {
    color: #2d5a27;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.confidence-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 20px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.confidence-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
}

.plant-details, .plant-care {
    margin-top: 1.5rem;
}

.plant-details h3, .plant-care h3 {
    color: #2d5a27;
    margin-bottom: 0.5rem;
}

.plant-details p, .plant-care p {
    line-height: 1.6;
    color: #666;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-right: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Text Container */
.loading-text {
    margin-top: 1rem;
}

.loading-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.loading-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.loading-steps {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.loading-step.active {
    opacity: 1;
    color: #4CAF50;
    font-weight: 600;
}

.loading-step.completed {
    opacity: 0.8;
    color: #28a745;
}

.loading-step-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.loading-step.active .loading-step-icon {
    border-color: #4CAF50;
    background: #4CAF50;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-step.completed .loading-step-icon {
    border-color: #28a745;
    background: #28a745;
}

.loading-step.completed .loading-step-icon::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
}

.loading-tips {
    margin-top: 2rem;
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2e7d32;
}

.loading-tip-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Photo Request and Identification Progress */
.identification-progress {
    text-align: center;
    padding: 1rem;
}

.progress-step {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.progress-step.photo-request {
    color: #e67e22;
}

.photo-request-reason {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.4;
}

.photo-request-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 80, 87, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.progress-bar {
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Mobile responsiveness for photo request */
@media (max-width: 480px) {
    .photo-request-actions {
        flex-direction: column;
    }
    
    .btn-secondary, .btn-primary {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* User Choice Interface */
.user-choices {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}

.user-choices h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    text-align: center;
    font-size: 1.1rem;
}

.choice-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-choice {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.btn-accept {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-accept:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-override {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.btn-override:hover {
    background: linear-gradient(135deg, #F57C00, #EF6C00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-detailed {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.btn-detailed:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-assisted {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
}

.btn-assisted:hover {
    background: linear-gradient(135deg, #7B1FA2, #6A1B9A);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* Override Modal */
#overrideModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

#overrideModal .modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

#overrideModal .close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

#overrideModal .close:hover {
    color: #333;
}

#overrideModal .form-group {
    margin-bottom: 1rem;
}

#overrideModal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

#overrideModal input, #overrideModal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

#overrideModal input:focus, #overrideModal textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

#overrideModal textarea {
    resize: vertical;
    min-height: 80px;
}

/* Plant uses section */
.plant-uses {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f8f0;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.plant-uses h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Detailed Analysis UI */
.detailed-analysis-start {
    text-align: center;
    padding: 2rem;
}

.detailed-analysis-start h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.detailed-analysis-start p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.5;
}

.analysis-steps {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
    border-left: 4px solid #4CAF50;
}

.analysis-steps .step {
    padding: 0.5rem 0;
    color: #555;
    font-weight: 500;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.analysis-steps .step:last-child {
    border-bottom: none;
}

.analysis-steps .step.active {
    color: #4CAF50;
    background-color: #f8fff9;
    font-weight: 600;
    padding-left: 1rem;
    border-left: 3px solid #4CAF50;
}

.analysis-steps .step.completed {
    color: #28a745;
    opacity: 0.8;
}

.analysis-steps .step.completed::after {
    content: " ✅";
    float: right;
}

.loading-status {
    color: #4CAF50;
    font-weight: 600;
    margin-top: 1rem;
}

/* Mobile responsiveness for user choices */
@media (max-width: 768px) {
    .choice-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-choice {
        min-height: 50px;
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    #overrideModal .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
    }
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .camera-section {
        padding: 1.5rem;
    }
    
    #camera {
        height: 300px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .camera-section {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 5px;
    }
}

/* User Info & Auth */
.user-info, .anonymous-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.usage-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.usage-badge.warning {
    background: #FF9800;
}

.usage-badge.danger {
    background: #f44336;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Wider modal for tier selection */
#upsellModal .modal-content {
    max-width: 950px;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: black;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form h2 {
    margin-bottom: 1rem;
    color: #2d5a27;
    text-align: center;
}

.auth-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.auth-form button {
    margin-top: 0.5rem;
}

.auth-form p {
    text-align: center;
    margin-top: 1rem;
}

.auth-form a {
    color: #4CAF50;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* Account Info */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.usage-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.usage-fill.warning {
    background: linear-gradient(90deg, #FF9800, #F57C00);
}

.usage-fill.danger {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

/* Upsell Modal */
.upsell-content {
    text-align: center;
}

.upsell-content h2 {
    color: #d32f2f;
    margin-bottom: 1rem;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.pricing-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pricing-card.explorer,
.pricing-card.pro {
    border-color: #4CAF50;
    transform: scale(1.05);
}

.pricing-card.explorer::before,
.pricing-card.pro::before {
    content: "POPULAR";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-card.super {
    border-color: #FFD700;
    transform: scale(1.1);
    background: linear-gradient(135deg, #FFF9C4, #FFFDE7);
}

.pricing-card.super::before {
    content: "🏆 UNLIMITED";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-card h3 {
    color: #2d5a27;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1976D2;
    margin-bottom: 1rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card button {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    #upsellModal .modal-content {
        max-width: 95%;
        padding: 1rem;
        margin: 5% auto;
    }
    
    .pricing-options {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .pricing-card {
        width: 100%;
        max-width: none;
    }
    
    .pricing-card.pro,
    .pricing-card.explorer {
        transform: none;
    }
}

/* PWA Support */
@media (display-mode: standalone) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
}

/* Magical Plant Catalog Upsell Modal */
.catalog-upsell-modal {
    z-index: 1001;
}

.catalog-modal-content {
    max-width: 900px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: catalogSlideIn 0.5s ease-out;
}

@keyframes catalogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.catalog-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    position: relative;
    overflow: hidden;
}

.catalog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)" opacity="0.7"><animate attributeName="opacity" values="0.7;0.2;0.7" dur="2s" repeatCount="indefinite"/></circle></svg>');
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.magic-stars {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.catalog-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.catalog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.catalog-preview {
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preview-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.preview-badge {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-plant-card {
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.preview-plant-card.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.preview-plant-card:hover {
    transform: translateY(-5px);
}

.preview-image {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.preview-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.preview-info p {
    margin: 0 0 0.5rem 0;
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
}

.preview-date {
    font-size: 0.8rem;
    opacity: 0.7;
}


.catalog-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.feature-item p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.catalog-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
}

.catalog-cta h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.catalog-cta > p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.catalog-upgrade-btn {
    background: white;
    color: #FF6B6B;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.catalog-upgrade-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.btn-sparkle {
    display: inline-block;
    animation: sparkle 1.5s ease-in-out infinite;
}

.catalog-disclaimer {
    margin: 1rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.mobile-modal-handle {
    display: none;
}

/* Pro Banner */
.pro-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    z-index: 999;
    animation: bannerSlideIn 0.5s ease-out;
    max-width: 350px;
    
    /* Ensure banner doesn't interfere with main content */
    pointer-events: auto;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    position: relative;
}

.banner-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.banner-icon {
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.banner-text strong {
    font-size: 0.95rem;
}

.banner-text span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.banner-upgrade-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.banner-upgrade-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.banner-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.banner-close:hover {
    opacity: 1;
}

/* Mobile responsiveness for new elements */
@media (max-width: 768px) {
    .catalog-upsell-modal {
        align-items: flex-end;
        padding: 0;
    }
    
    .catalog-modal-content {
        margin: 0;
        max-width: none;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        animation: catalogSlideInMobile 0.5s ease-out;
        position: relative;
    }
    
    .mobile-modal-handle {
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
        margin: 0.75rem auto 0;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    @keyframes catalogSlideInMobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .catalog-header {
        padding: 1.5rem 1rem;
    }
    
    .catalog-title {
        font-size: 1.5rem;
    }
    
    .catalog-subtitle {
        font-size: 1rem;
    }
    
    .catalog-preview {
        padding: 1rem;
    }
    
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .preview-plant-card {
        padding: 0.75rem;
    }
    
    .preview-image {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .preview-info h4 {
        font-size: 1rem;
    }
    
    .preview-info p {
        font-size: 0.8rem;
    }
    
    .catalog-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .feature-item h4 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.8rem;
    }
    
    .catalog-cta {
        padding: 1.5rem 1rem;
    }
    
    .catalog-cta h3 {
        font-size: 1.4rem;
    }
    
    .catalog-cta > p {
        font-size: 0.9rem;
    }
    
    .catalog-upgrade-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .catalog-disclaimer {
        font-size: 0.8rem;
    }
}
    
    .pro-banner {
        position: fixed;
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        
        /* Mobile-specific scroll behavior */
        transform: translateY(0);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .banner-upgrade-btn {
        width: 100%;
    }
    
    /* Mobile responsive styles for new plants header */
    .plants-nav-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .plants-logo {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .plants-nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .plants-nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    
    .user-info .plants-nav-link,
    .anonymous-info .plants-nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .usage-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Proof of Work Badge */
.usage-badge.pow-badge {
    background: linear-gradient(135deg, #9C27B0, #673AB7);
    color: white;
    font-weight: bold;
    cursor: help;
    position: relative;
    animation: powPulse 2s ease-in-out infinite;
}

@keyframes powPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.usage-badge.pow-badge:hover::after {
    content: 'Proof of Work Required - No tracking, just computational payment';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    pointer-events: none;
    z-index: 1000;
}

/* Mobile fixes for upsell modal */
@media (max-width: 768px) {
    #upsellModal .modal-content {
        max-height: 90vh;
        padding: 1rem;
        margin: 0.5rem;
        width: calc(100% - 1rem);
        overflow-y: auto;
    }
    
    .upsell-content {
        width: 100%;
    }
    
    .pricing-options {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .pricing-card {
        min-height: auto;
        margin: 0;
        transform: scale(1) !important;
        width: 100%;
        padding: 1.25rem;
        box-sizing: border-box;
    }
    
    .pricing-card.explorer,
    .pricing-card.super {
        transform: scale(1) !important;
    }
    
    .pricing-card.explorer::before,
    .pricing-card.super::before {
        top: -12px;
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .upsell-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        text-align: center;
        padding: 0 0.5rem;
    }
    
    #upsellMessage {
        text-align: center;
        padding: 0 0.5rem;
        font-size: 0.95rem;
    }
    
    .pricing-card h3 {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .pricing-card .price {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .pricing-card ul {
        text-align: left;
        padding-left: 1.25rem;
        margin: 0.75rem 0;
        width: 100%;
    }
    
    .pricing-card li {
        padding: 0.4rem 0;
        font-size: 0.95rem;
        position: relative;
        list-style: none;
    }
    
    .pricing-card li::before {
        content: "•";
        position: absolute;
        left: -1rem;
        color: #666;
    }
    
    .pricing-card button,
    .pricing-card a {
        width: 100%;
        margin: 0.5rem 0 0 0;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Plant Anatomy Reference Guide Styles */
.plant-anatomy-guide {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    z-index: 10000;
    display: none;
    overflow: hidden;
    animation: slideInGuide 0.3s ease-out;
}

@keyframes slideInGuide {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.plant-anatomy-header {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plant-anatomy-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-guide-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-guide-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.plant-anatomy-content {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.anatomy-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.anatomy-category {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.anatomy-category:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.anatomy-category h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.anatomy-terms {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.anatomy-term {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    cursor: help;
}

.anatomy-term:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.term-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.term-info {
    flex: 1;
}

.term-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.term-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.guide-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.guide-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.guide-toggle-btn.show {
    display: flex;
}

/* Overlay */
.plant-anatomy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .plant-anatomy-guide {
        width: 95%;
        max-width: none;
        max-height: 95vh;
    }
    
    .anatomy-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plant-anatomy-header {
        padding: 1rem;
    }
    
    .plant-anatomy-header h2 {
        font-size: 1.2rem;
    }
    
    .plant-anatomy-content {
        padding: 1rem;
        max-height: calc(95vh - 60px);
    }
    
    .guide-toggle-btn {
        bottom: 10px;
        right: 10px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Interactive Botanist Styles */
.botanist-chat {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.botanist-avatar {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.botanist-message {
    background: #f0f8f0;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border-top-left-radius: 5px;
    flex: 1;
}

.botanist-message p {
    margin: 0;
    line-height: 1.6;
}

.botanist-response-area {
    margin: 1.5rem 0;
}

.botanist-options {
    display: grid;
    gap: 0.75rem;
}

.botanist-option {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.botanist-option:hover {
    border-color: #4CAF50;
    background: #f5fdf5;
    transform: translateY(-2px);
}

.botanist-photo-request {
    text-align: center;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 12px;
}

.photo-request-desc {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333;
}

.botanist-input {
    display: flex;
    gap: 0.75rem;
}

.botanist-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.botanist-input input:focus {
    outline: none;
    border-color: #4CAF50;
}

.botanist-loading {
    text-align: center;
    padding: 1rem;
    color: #4CAF50;
    animation: pulse 1.5s ease-in-out infinite;
}

.botanist-guesses {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 12px;
}

.botanist-guesses small {
    color: #666;
    display: block;
    margin-bottom: 0.5rem;
}

.confidence-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.confidence-indicator .confidence-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-indicator .confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #4CAF50);
    transition: width 0.5s ease;
}

.botanist-identification {
    text-align: center;
}

.identification-result {
    background: #f0f8f0;
    padding: 2rem;
    border-radius: 16px;
    margin: 1.5rem 0;
}

.identification-result h2 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.scientific-name {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.reasoning {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.interesting-facts, .care-tips {
    text-align: left;
    margin-top: 1.5rem;
}

.interesting-facts h4, .care-tips h4 {
    color: #4CAF50;
    margin-bottom: 0.75rem;
}

.interesting-facts ul, .care-tips ul {
    padding-left: 1.5rem;
}

.interesting-facts li, .care-tips li {
    margin-bottom: 0.5rem;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Plant Anatomy Guide Styles */
.plant-guide-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    z-index: 1000;
    display: none;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease-out;
}

.plant-guide-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.plant-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.plant-guide-overlay.active {
    opacity: 1;
    visibility: visible;
}

.plant-guide-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.plant-guide-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.plant-guide-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plant-guide-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.plant-guide-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.plant-guide-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.plant-guide-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.guide-intro {
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

.guide-section {
    margin-bottom: 2rem;
}

.guide-section h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.guide-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.guide-item:hover {
    background: #e8f5e9;
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.guide-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.guide-item strong {
    display: block;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.guide-item small {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

.guide-hint {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .plant-guide-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .plant-guide-content {
        padding: 1.5rem;
    }
    
    .guide-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .guide-item {
        padding: 0.75rem;
    }
    
    .guide-icon {
        font-size: 1.5rem;
    }
    
    .plant-guide-btn {
        bottom: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }
}