* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #2d5016;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-main {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.85;
    margin-left: -0.3rem;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .logo-sub {
        display: none;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        order: 3;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .language-selector {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .cart-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        min-height: 36px;
    }
    
    .register-link {
        background: rgba(255,255,255,0.3);
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Keep all navigation visible on mobile */
    .nav-links a:not(.cart-btn) {
        display: inline-block;
    }
}

.cart-btn {
    background: #4a7c2c;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    touch-action: manipulation;
    min-height: 44px;
}

.cart-btn:hover {
    background: #5a8c3c;
}

.cart-btn:active {
    transform: scale(0.98);
}

.hero {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
}

.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .plants-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
}

.plant-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
    touch-action: manipulation;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.plant-card:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .plant-card {
        border-radius: 10px;
    }
}

.plant-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

@media (max-width: 600px) {
    .plant-image {
        height: 180px;
    }
}

.plant-info {
    padding: 1.2rem;
}

.plant-name {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    margin-bottom: 0.5rem;
    color: #2d5016;
}

.plant-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: clamp(0.85rem, 3vw, 0.9rem);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .plant-info {
        padding: 1rem;
    }
    
    .plant-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.plant-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plant-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a7c2c;
}

.add-to-cart-btn {
    background: #4a7c2c;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    touch-action: manipulation;
    min-height: 44px;
    transition: all 0.2s;
}

.add-to-cart-btn:hover {
    background: #5a8c3c;
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .add-to-cart-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
}

@media (max-width: 600px) {
    .cart-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
        border-radius: 12px 12px 0 0;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.close:hover {
    color: #333;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-total {
    margin-top: 1.5rem;
    text-align: right;
    font-size: 1.3rem;
}

.checkout-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: #4a7c2c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 50px;
    transition: all 0.2s;
}

.checkout-btn:hover {
    background: #5a8c3c;
}

.checkout-btn:active {
    transform: scale(0.98);
}

/* Tablet */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .plants-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Mobile */
@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .cart-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .plant-footer {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
}

/* iPhone Pro Max and similar large phones */
@media (max-width: 430px) {
    .plants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.details-content {
    background: white;
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .details-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
}

.details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.detail-info {
    padding: 2rem;
}

.detail-description {
    color: #666;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: #4a7c2c;
    margin: 1.5rem 0;
}

.care-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.care-info h3 {
    margin-bottom: 1rem;
    color: #2d5016;
}

.care-item {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.care-item strong {
    display: inline-block;
    width: 120px;
    color: #333;
}

.detail-add-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .details-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-image {
        border-radius: 12px 12px 0 0;
        height: 300px;
    }
    
    .detail-info {
        padding: 1.5rem;
    }
    
    .care-item strong {
        display: block;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 480px) {
    .detail-image {
        height: 250px;
    }
    
    .detail-info {
        padding: 1.2rem;
    }
    
    .detail-price {
        font-size: 1.8rem;
    }
    
    .care-info {
        padding: 1.2rem;
    }
}

/* Dark Mode */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background: #1f3d0f;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-mode .plant-card {
    background: #2d2d2d;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

body.dark-mode .plant-name {
    color: #7cb342;
}

body.dark-mode .plant-description {
    color: #b0b0b0;
}

body.dark-mode .cart-content,
body.dark-mode .details-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .care-info {
    background: #3a3a3a;
}

body.dark-mode .cart-item {
    border-bottom-color: #444;
}

body.dark-mode .close {
    color: #b0b0b0;
}

body.dark-mode .close:hover {
    color: #e0e0e0;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    touch-action: manipulation;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(20deg);
}

.theme-toggle:active {
    transform: scale(0.9);
}

/* Analytics Button */
.analytics-btn {
    background: #4a7c2c;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    touch-action: manipulation;
    min-height: 44px;
    white-space: nowrap;
}

.analytics-btn:hover {
    background: #5a8c3c;
}

.analytics-btn:active {
    transform: scale(0.98);
}

/* Welcome Modal */
.welcome-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.welcome-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.5s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

body.dark-mode .welcome-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2d5016;
}

body.dark-mode .welcome-content h2 {
    color: #7cb342;
}

.welcome-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

body.dark-mode .welcome-content p {
    color: #b0b0b0;
}

.welcome-features {
    list-style: none;
    text-align: left;
    margin: 2rem auto;
    max-width: 300px;
}

.welcome-features li {
    padding: 0.8rem 0;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
}

body.dark-mode .welcome-features li {
    border-bottom-color: #444;
}

.welcome-features li:last-child {
    border-bottom: none;
}

.welcome-btn {
    background: linear-gradient(135deg, #4a7c2c 0%, #7cb342 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 124, 44, 0.3);
    touch-action: manipulation;
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 44, 0.4);
}

.welcome-btn:active {
    transform: scale(0.98);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

.plant-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.details-content {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.details-content.modal-show {
    transform: scale(1);
    opacity: 1;
}

/* Loading state for images */
.plant-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

body.dark-mode .plant-image {
    background: linear-gradient(90deg, #2d2d2d 25%, #3a3a3a 50%, #2d2d2d 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.plant-image[src] {
    animation: none;
    background: none;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

button, .plant-card, .cart-btn, .theme-toggle {
    transition: all 0.3s ease;
}

/* Analytics Modal */
.analytics-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.chart-container {
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.reset-analytics-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.reset-analytics-btn:hover {
    background: #c82333;
}

/* Dark mode for analytics */
.dark-mode .analytics-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .chart-container {
    background: #1a1a1a;
}

.dark-mode .stat-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* Admin Login Screen */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-box h2 {
    margin: 1rem 0;
    color: #333;
}

.login-box p {
    color: #666;
    margin-bottom: 1.5rem;
}

.login-box input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.login-box input:focus {
    outline: none;
    border-color: #2d5016;
}

.login-btn {
    width: 100%;
    background: #2d5016;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #4a7c2c;
}

.error-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Dark mode for admin */
.dark-mode .login-box {
    background: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .login-box h2 {
    color: #e0e0e0;
}

.dark-mode .login-box p {
    color: #b0b0b0;
}

.dark-mode .login-box input {
    background: #1a1a1a;
    border-color: #444;
    color: #e0e0e0;
}

/* Floating Leaf Animation */
.leaf-svg {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    animation: floatLeafSVG 3s ease-out forwards;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes floatLeafSVG {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(calc(var(--tx) * 0.5), calc(var(--ty) * 0.5)) rotate(calc(var(--rotate) * 0.5)) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--rotate)) scale(0.8);
    }
}

/* Enhanced plant card hover */
.plant-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(45, 80, 22, 0.3);
}

.plant-card:active {
    transform: translateY(-5px) scale(1.01);
}

/* Admin Plant Management */
.admin-section {
    animation: fadeIn 0.3s ease-in;
}

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

.nav-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.plant-management {
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.add-plant-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.add-plant-form h3, .add-plant-form h4 {
    margin-bottom: 1rem;
    color: #2d5016;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2d5016;
}

.form-group small {
    display: block;
    margin: 0.5rem 0;
    color: #666;
}

.submit-btn {
    background: #2d5016;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #4a7c2c;
}

.plants-list {
    margin-top: 2rem;
}

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

.plants-list-header h3 {
    margin: 0;
    color: #2d5016;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    font-weight: 600;
    color: #333;
}

.sort-controls select {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    background: white;
}

.sort-controls select:focus {
    outline: none;
    border-color: #2d5016;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

.admin-plant-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    margin-bottom: 1rem;
    align-items: center;
}

.admin-plant-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-plant-info {
    flex: 1;
}

.admin-plant-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2d5016;
}

.admin-plant-info p {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.admin-plant-info .price {
    font-weight: bold;
    color: #4a7c2c;
    font-size: 1.2rem;
}

.plant-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.meta-item {
    font-size: 0.85rem;
    color: #666;
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.admin-plant-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.edit-btn, .delete-btn, .duplicate-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.edit-btn {
    background: #4a7c2c;
    color: white;
}

.edit-btn:hover {
    background: #5a8c3c;
}

.duplicate-btn {
    background: #667eea;
    color: white;
}

.duplicate-btn:hover {
    background: #5568d3;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

.cancel-edit-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    transition: background 0.3s;
}

.cancel-edit-btn:hover {
    background: #5a6268;
}

/* Dark mode for admin */
.dark-mode .plant-management {
    background: #2a2a2a;
}

.dark-mode .add-plant-form {
    background: #1a1a1a;
}

.dark-mode .form-group label {
    color: #e0e0e0;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea,
.dark-mode .form-group select {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .admin-plant-card {
    background: #2a2a2a;
    border-color: #444;
}

.dark-mode .sort-controls label {
    color: #e0e0e0;
}

.dark-mode .sort-controls select {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .meta-item {
    background: #1a1a1a;
    color: #b0b0b0;
}

.dark-mode .plants-list-header h3 {
    color: #5a8c3c;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-plant-card {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-plant-actions {
        flex-direction: row;
        width: 100%;
    }
}

/* Click Ripple Effect */
.ripple {
    position: fixed;
    border-radius: 50%;
    background: rgba(74, 124, 44, 0.4);
    pointer-events: none;
    z-index: 9998;
    animation: rippleEffect 0.8s ease-out;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Floating background leaves */
.bg-leaf {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
    animation: floatBackground 20s infinite ease-in-out;
}

@keyframes floatBackground {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
    }
}

/* Enhanced plant card animations */
.plant-card {
    position: relative;
    overflow: hidden;
}

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

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

/* Pulse animation on add to cart */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.add-to-cart-btn.pulse {
    animation: pulse 0.3s ease-in-out;
}

/* Hero section animated background */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* User Management Styles */
.user-management {
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.user-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #2d5016;
}

.tab-btn.active {
    color: #2d5016;
    border-bottom-color: #2d5016;
}

.user-tab-content {
    animation: fadeIn 0.3s ease-in;
}

.user-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    margin-bottom: 1rem;
    align-items: flex-start;
    transition: all 0.3s;
}

.user-card:hover {
    border-color: #2d5016;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.1);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2d5016;
    font-size: 1.2rem;
}

.user-email {
    color: #666;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.user-username {
    color: #4a7c2c;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.user-reason {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
}

.user-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.approve-btn, .reject-btn, .revoke-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.approve-btn {
    background: #28a745;
    color: white;
}

.approve-btn:hover {
    background: #218838;
}

.reject-btn, .revoke-btn {
    background: #dc3545;
    color: white;
}

.reject-btn:hover, .revoke-btn:hover {
    background: #c82333;
}

/* Register Page Styles */
.register-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

/* Login page specific styles */
.login-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.register-box {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
}

.register-logo {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 1rem;
}

.register-box h2 {
    text-align: center;
    margin: 1rem 0;
    color: #333;
}

.register-box > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.register-btn {
    width: 100%;
    background: #2d5016;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.register-btn:hover {
    background: #4a7c2c;
}

.register-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.register-footer a {
    color: #2d5016;
    text-decoration: none;
    font-weight: 600;
}

.register-footer a:hover {
    text-decoration: underline;
}

/* Dark mode for user management */
.dark-mode .user-management {
    background: #2a2a2a;
}

.dark-mode .user-card {
    background: #2a2a2a;
    border-color: #444;
}

.dark-mode .user-info h4 {
    color: #5a8c3c;
}

.dark-mode .user-reason {
    background: #1a1a1a;
    color: #b0b0b0;
}

.dark-mode .register-box {
    background: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .register-box h2 {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .user-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-actions {
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .user-actions button {
        flex: 1;
        min-width: 120px;
    }
}

/* Register link styling */
.register-link {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.register-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* User menu and login styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-greeting {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.login-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.login-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Form highlight animation */
.add-plant-form {
    transition: all 0.3s ease;
}

/* Login page specific styles */
.login-btn {
    width: 100%;
    background: #2d5016;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #4a7c2c;
}

/* Ensure footer is at bottom for login/register pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-screen,
.register-screen {
    flex: 1;
}

@media (max-width: 768px) {
    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Payment Modal Styles */
.payment-summary {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.payment-summary h3 {
    margin-top: 0;
    color: #2d5016;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.payment-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #2d5016;
    font-size: 1.2rem;
}

.payment-methods {
    margin: 2rem 0;
}

.payment-methods h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.payment-method-btn {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.payment-method-btn:hover {
    border-color: #2d5016;
    background: #f9f9f9;
    transform: translateX(5px);
}

.payment-icon {
    font-size: 1.5rem;
}

#stripePaymentForm {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
}

#card-element {
    padding: 1rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 1rem 0;
}

#card-errors {
    color: #dc3545;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.submit-payment-btn {
    width: 100%;
    background: #2d5016;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-payment-btn:hover {
    background: #4a7c2c;
}

.dark-mode .payment-summary,
.dark-mode #stripePaymentForm {
    background: #1a1a1a;
}

.dark-mode .payment-method-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .payment-method-btn:hover {
    background: #333;
    border-color: #5a8c3c;
}

.dark-mode #card-element {
    background: #2a2a2a;
    border-color: #444;
}

/* Admin Guide Styles */
.admin-guide {
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.guide-nav {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.guide-tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.guide-tab-btn:hover {
    color: #2d5016;
}

.guide-tab-btn.active {
    color: #2d5016;
    border-bottom-color: #2d5016;
}

.guide-content {
    animation: fadeIn 0.3s ease-in;
}

.guide-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2d5016;
}

.guide-card h4 {
    margin-top: 0;
    color: #2d5016;
    font-size: 1.2rem;
}

.guide-card ul, .guide-card ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.guide-card li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.guide-card code {
    background: #2d5016;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.guide-card a {
    color: #2d5016;
    text-decoration: none;
    font-weight: 600;
}

.guide-card a:hover {
    text-decoration: underline;
}

.alert-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.alert-success {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.alert-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.payment-method-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #eee;
}

.payment-method-card h5 {
    margin-top: 0;
    color: #2d5016;
    font-size: 1.1rem;
}

.payment-method-card p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.pricing-table th,
.pricing-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    background: #2d5016;
    color: white;
    font-weight: 600;
}

.pricing-table tr:hover {
    background: #f9f9f9;
}

/* Dark mode for guide */
.dark-mode .admin-guide {
    background: #2a2a2a;
}

.dark-mode .guide-card {
    background: #1a1a1a;
    color: #e0e0e0;
}

.dark-mode .guide-card h4 {
    color: #5a8c3c;
}

.dark-mode .alert-info {
    background: #1a2332;
    border-left-color: #2196f3;
}

.dark-mode .alert-success {
    background: #1a2e1a;
    border-left-color: #4caf50;
}

.dark-mode .alert-warning {
    background: #2e2419;
    border-left-color: #ff9800;
}

.dark-mode .payment-method-card {
    background: #2a2a2a;
    border-color: #444;
}

.dark-mode .pricing-table th {
    background: #1a3010;
}

.dark-mode .pricing-table tr:hover {
    background: #333;
}

@media (max-width: 768px) {
    .guide-nav {
        flex-direction: column;
    }
    
    .guide-tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .guide-tab-btn.active {
        border-left-color: #2d5016;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

/* Language Selector */
.language-selector {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.language-selector:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.language-selector option {
    background: #2d5016;
    color: white;
}

/* Costa Rica Badge - Removed, now in footer */

/* Site Footer */
.site-footer {
    background: #2d5016;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

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

.footer-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.footer-text {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0.5rem 0 0 0;
}

.dark-mode .site-footer {
    background: #1a3010;
}

@media (max-width: 768px) {
    .cr-badge {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        top: 70px;
        right: 10px;
    }
    
    .language-selector {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}


/* Home Section Styles */
.home-section {
    padding-bottom: 3rem;
}

.cta-btn {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

/* Categories Section */
.categories-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.categories-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d5016;
}

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

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.2);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: #2d5016;
}

.category-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* Medicinal Facts Section */
.medicinal-facts {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
}

.medicinal-facts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d5016;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.fact-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.15);
}

.fact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    /* animation: float 3s ease-in-out infinite; */ /* DISABLED - user doesn't want floating emojis */
}

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

.fact-card h3 {
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.fact-card p {
    color: #666;
    line-height: 1.6;
}

/* Featured Plants Carousel */
.featured-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d5016;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(45, 80, 22, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #2d5016;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 2rem;
    background: white;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d5016;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Plants Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2d5016;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    padding: 0.75rem 1.5rem;
    border: 2px solid #2d5016;
    border-radius: 10px;
    background: white;
    color: #2d5016;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-controls select:hover {
    background: #f0f8f0;
}

/* Dark Mode Adjustments */
.dark-mode .category-card,
.dark-mode .fact-card {
    background: #2a2a2a;
}

.dark-mode .medicinal-facts {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
}

.dark-mode .why-choose-us {
    background: #1a1a1a;
}

.dark-mode .category-card h3,
.dark-mode .fact-card h3,
.dark-mode .feature-item h3,
.dark-mode .categories-section h2,
.dark-mode .medicinal-facts h2,
.dark-mode .featured-section h2,
.dark-mode .why-choose-us h2,
.dark-mode .section-header h2 {
    color: #7fb069;
}

.dark-mode .category-card p,
.dark-mode .fact-card p,
.dark-mode .feature-item p {
    color: #ccc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .categories-section h2,
    .medicinal-facts h2,
    .featured-section h2,
    .why-choose-us h2,
    .section-header h2 {
        font-size: 2rem;
    }
    
    .categories-grid,
    .facts-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .filter-controls select {
        width: 100%;
    }
    
    .carousel-container {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}


/* Background Music Player */
.music-player {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.music-toggle {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

.music-toggle.playing {
    background: linear-gradient(135deg, #4a7c2c 0%, #7fb069 100%);
}

.music-icon {
    font-size: 1.5rem;
    animation: musicPulse 2s ease-in-out infinite;
}

.music-toggle.playing .music-icon {
    animation: musicBounce 0.5s ease-in-out infinite;
}

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

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

@media (max-width: 768px) {
    .music-player {
        bottom: 80px;
        right: 20px;
    }
    
    .music-toggle {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .music-text {
        display: none;
    }
    
    .music-icon {
        font-size: 1.8rem;
    }
}


/* AI Search Styles */
.ai-search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
    position: relative;
}

.ai-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ai-search-box:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ai-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    animation: aiPulse 2s ease-in-out infinite;
}

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

#aiSearchInput {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
    padding: 0.5rem;
}

#aiSearchInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.ai-search-btn {
    background: linear-gradient(135deg, #7fb069 0%, #4a7c2c 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ai-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(127, 176, 105, 0.4);
}

.ai-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    margin-top: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.ai-result-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-result-item:hover {
    background: #f0f8f0;
    transform: translateX(5px);
}

.ai-result-item:last-child {
    border-bottom: none;
}

.ai-result-name {
    font-weight: 600;
    color: #2d5016;
    margin-bottom: 0.25rem;
}

.ai-result-desc {
    color: #666;
    font-size: 0.9rem;
}

.ai-result-match {
    color: #7fb069;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.dark-mode .ai-results {
    background: #2a2a2a;
    color: white;
}

.dark-mode .ai-result-item {
    border-bottom-color: #444;
}

.dark-mode .ai-result-item:hover {
    background: #333;
}

.dark-mode .ai-result-name {
    color: #7fb069;
}

.dark-mode .ai-result-desc {
    color: #ccc;
}

@media (max-width: 1024px) {
    .ai-search-container {
        order: 4;
        width: 100%;
        margin: 1rem 0 0 0;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .ai-search-box {
        padding: 0.4rem 0.75rem;
    }
    
    #aiSearchInput {
        font-size: 0.9rem;
    }
    
    #aiSearchInput::placeholder {
        font-size: 0.85rem;
    }
    
    .ai-search-btn span {
        display: none;
    }
    
    .ai-search-btn::after {
        content: '🔍';
        font-size: 1.2rem;
    }
}


/* ============================================
   APPLE-STYLE ENHANCEMENTS
   ============================================ */

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

/* Apple-style Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.scroll-animate-scale {
    opacity: 0;
    animation: fadeInScale 0.8s ease-out forwards;
}

.scroll-animate-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.scroll-animate-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

/* Stagger animation delays */
.scroll-animate:nth-child(1) { animation-delay: 0.1s; }
.scroll-animate:nth-child(2) { animation-delay: 0.2s; }
.scroll-animate:nth-child(3) { animation-delay: 0.3s; }
.scroll-animate:nth-child(4) { animation-delay: 0.4s; }
.scroll-animate:nth-child(5) { animation-delay: 0.5s; }
.scroll-animate:nth-child(6) { animation-delay: 0.6s; }

/* Apple-style Parallax Effect */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Enhanced Card Hover Effects */
.category-card,
.plant-card,
.benefit-card,
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.category-card:hover,
.plant-card:hover,
.benefit-card:hover,
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Apple-style Button Animations */
button,
.btn,
.cta-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button::before,
.btn::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before,
.btn:active::before,
.cta-button:active::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   APPLE-STYLE FOOTER
   ============================================ */

.apple-footer {
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding: 0;
    margin-top: 80px;
}

body.dark-mode .apple-footer {
    background: #1d1d1f;
    color: #f5f5f7;
}

.footer-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Footer Sections */
.footer-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #d2d2d7;
}

body.dark-mode .footer-sections {
    border-bottom-color: #424245;
}

.footer-section {
    min-width: 0;
}

.footer-title {
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: #1d1d1f;
}

body.dark-mode .footer-title {
    color: #f5f5f7;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #424245;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

body.dark-mode .footer-links a {
    color: #a1a1a6;
}

.footer-links a:hover {
    color: #06c;
    text-decoration: underline;
}

body.dark-mode .footer-links a:hover {
    color: #2997ff;
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0 30px;
}

.footer-info {
    margin-bottom: 10px;
}

.footer-location {
    color: #6e6e73;
    margin-bottom: 8px;
}

body.dark-mode .footer-location {
    color: #a1a1a6;
}

.footer-location a {
    color: #06c;
    text-decoration: none;
}

body.dark-mode .footer-location a {
    color: #2997ff;
}

.footer-location a:hover {
    text-decoration: underline;
}

.footer-country {
    color: #6e6e73;
    font-size: 12px;
}

body.dark-mode .footer-country {
    color: #a1a1a6;
}

/* Footer Legal */
.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #d2d2d7;
}

body.dark-mode .footer-legal {
    border-top-color: #424245;
}

.footer-copyright {
    color: #6e6e73;
}

body.dark-mode .footer-copyright {
    color: #a1a1a6;
}

.footer-legal-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #424245;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.dark-mode .footer-legal-links a {
    color: #a1a1a6;
}

.footer-legal-links a:hover {
    color: #06c;
    text-decoration: underline;
}

body.dark-mode .footer-legal-links a:hover {
    color: #2997ff;
}

.footer-legal-links .separator {
    color: #d2d2d7;
}

body.dark-mode .footer-legal-links .separator {
    color: #424245;
}

/* Responsive Footer */
@media (max-width: 1068px) {
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 734px) {
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section {
        padding-bottom: 20px;
        border-bottom: 1px solid #d2d2d7;
    }
    
    body.dark-mode .footer-section {
        border-bottom-color: #424245;
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .footer-legal-links .separator {
        display: none;
    }
}

/* ============================================
   ENHANCED NAVBAR (Apple-style)
   ============================================ */

nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode nav {
    background: rgba(29, 29, 31, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

nav.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

img[src] {
    opacity: 1;
}

/* Apple-style Focus States */
*:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
    border-radius: 4px;
}

body.dark-mode *:focus-visible {
    outline-color: #2997ff;
}

/* Enhanced Glassmorphism */
.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .glassmorphism {
    background: rgba(29, 29, 31, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Performance Optimizations */
.category-card,
.plant-card,
.benefit-card,
.feature-card,
button,
.btn {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================
   ORDERS MANAGEMENT STYLES
   ============================================ */

.orders-management {
    padding: 2rem 0;
}

.order-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.order-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

body.dark-mode .filter-group label {
    color: #f5f5f7;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #333;
}

body.dark-mode .filter-group select,
body.dark-mode .filter-group input {
    background: #2a2a2a;
    color: #f5f5f7;
    border-color: #424245;
}

.export-btn {
    padding: 0.75rem 1.5rem;
    background: #2d5016;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #4a7c2c;
    transform: translateY(-2px);
}

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

.order-card {
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

body.dark-mode .order-card {
    background: #2a2a2a;
    border-color: #424245;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d5016;
}

body.dark-mode .order-id {
    color: #4a7c2c;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background: #cfe2ff;
    color: #084298;
}

.order-status.completed {
    background: #d1e7dd;
    color: #0f5132;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #842029;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.order-info-label {
    font-size: 0.85rem;
    color: #6e6e73;
    font-weight: 600;
}

body.dark-mode .order-info-label {
    color: #a1a1a6;
}

.order-info-value {
    font-size: 0.95rem;
    color: #1d1d1f;
}

body.dark-mode .order-info-value {
    color: #f5f5f7;
}

.order-items {
    margin: 1rem 0;
    padding: 1rem;
    background: #f5f5f7;
    border-radius: 8px;
}

body.dark-mode .order-items {
    background: #1d1d1f;
}

.order-items-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1d1d1f;
}

body.dark-mode .order-items-title {
    color: #f5f5f7;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d2d2d7;
}

body.dark-mode .order-item {
    border-bottom-color: #424245;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    font-weight: 500;
}

.order-item-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #6e6e73;
    font-size: 0.9rem;
}

body.dark-mode .order-item-details {
    color: #a1a1a6;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #d2d2d7;
    font-size: 1.2rem;
    font-weight: 700;
}

body.dark-mode .order-total {
    border-top-color: #424245;
}

.order-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.order-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.order-action-btn.primary {
    background: #2d5016;
    color: white;
}

.order-action-btn.primary:hover {
    background: #4a7c2c;
}

.order-action-btn.secondary {
    background: #6e6e73;
    color: white;
}

.order-action-btn.secondary:hover {
    background: #8e8e93;
}

.order-action-btn.danger {
    background: #dc3545;
    color: white;
}

.order-action-btn.danger:hover {
    background: #c82333;
}

.order-action-btn.success {
    background: #28a745;
    color: white;
}

.order-action-btn.success:hover {
    background: #218838;
}

.no-orders {
    text-align: center;
    padding: 4rem 2rem;
    color: #6e6e73;
}

body.dark-mode .no-orders {
    color: #a1a1a6;
}

.no-orders-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .order-filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .order-header {
        flex-direction: column;
    }
    
    .order-info {
        grid-template-columns: 1fr;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-action-btn {
        width: 100%;
    }
}


/* ============================================
   ORDER ANALYTICS STYLES
   ============================================ */

.order-analytics-content {
    padding: 2rem 0;
}

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

.metric-card {
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

body.dark-mode .metric-card {
    background: #2a2a2a;
    border-color: #424245;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 0.25rem;
}

body.dark-mode .metric-value {
    color: #4a7c2c;
}

.metric-label {
    font-size: 0.9rem;
    color: #6e6e73;
    font-weight: 600;
}

body.dark-mode .metric-label {
    color: #a1a1a6;
}

.metric-change {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
}

.metric-change.positive {
    background: #d1e7dd;
    color: #0f5132;
}

.metric-change.negative {
    background: #f8d7da;
    color: #842029;
}

.metric-change.neutral {
    background: #e2e3e5;
    color: #41464b;
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 1.5rem;
}

body.dark-mode .chart-card {
    background: #2a2a2a;
    border-color: #424245;
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: #1d1d1f;
    font-size: 1.1rem;
}

body.dark-mode .chart-card h3 {
    color: #f5f5f7;
}

.chart-card canvas {
    max-height: 300px;
}

.insights-section {
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

body.dark-mode .insights-section {
    background: #2a2a2a;
    border-color: #424245;
}

.insights-section h3 {
    margin-bottom: 1rem;
    color: #1d1d1f;
}

body.dark-mode .insights-section h3 {
    color: #f5f5f7;
}

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

.insight-card {
    background: #f5f5f7;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

body.dark-mode .insight-card {
    background: #1d1d1f;
}

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

.insight-content {
    flex: 1;
}

.insight-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1d1d1f;
}

body.dark-mode .insight-title {
    color: #f5f5f7;
}

.insight-description {
    font-size: 0.9rem;
    color: #6e6e73;
}

body.dark-mode .insight-description {
    color: #a1a1a6;
}

.analytics-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f5f5f7;
    border-radius: 12px;
}

body.dark-mode .analytics-filters {
    background: #1d1d1f;
}

.analytics-filters label {
    font-weight: 600;
    color: #1d1d1f;
}

body.dark-mode .analytics-filters label {
    color: #f5f5f7;
}

.analytics-filters select {
    padding: 0.75rem 1rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: white;
    color: #1d1d1f;
    font-size: 0.95rem;
}

body.dark-mode .analytics-filters select {
    background: #2a2a2a;
    color: #f5f5f7;
    border-color: #424245;
}

/* Responsive */
@media (max-width: 768px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .analytics-filters {
        flex-direction: column;
    }
}

/* Font Awesome Icon Styling - Ensure icons don't look like emojis */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    font-weight: 900 !important;
}

/* Ensure icons have proper spacing */
.fas + span, .far + span, .fab + span, .fa + span {
    margin-left: 0.5rem;
}

/* Icon sizing in buttons */
button .fas, button .far, button .fab, button .fa {
    margin-right: 0.35rem;
    font-size: 0.9em;
}

/* Icon sizing in navigation */
.nav-btn .fas, .nav-btn .far {
    margin-right: 0.5rem;
    font-size: 1em;
}

/* Metric icons should be larger */
.metric-icon .fas, .metric-icon .far {
    font-size: 2rem !important;
}

/* Ensure icons in meta items are properly sized */
.meta-item .fas, .meta-item .far {
    margin-right: 0.35rem;
    font-size: 0.9em;
}

/* Chart title icons */
h2 .fas, h2 .far, h3 .fas, h3 .far {
    margin-right: 0.5rem;
}

/* AI search result icons */
.ai-result-match .fas {
    margin-right: 0.25rem;
}

/* Care item icons */
.care-item .fas {
    margin-right: 0.35rem;
    color: #4a7c2c;
}

/* Theme toggle icon */
.theme-icon .fas {
    font-size: 1.2rem;
}

/* Cart button icon */
.cart-btn .fas {
    margin-right: 0.35rem;
}

/* ============================================
   ADMIN PROFILE SECTION
   ============================================ */

/* Mini Profile in Navbar */
.admin-profile-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 124, 44, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-profile-mini:hover {
    background: rgba(74, 124, 44, 0.2);
    transform: translateY(-2px);
}

.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #4a7c2c;
}

.admin-profile-mini span {
    font-weight: 600;
    color: #2d5016;
}

body.dark-mode .admin-profile-mini span {
    color: #f5f5f7;
}

/* Profile Container */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, #4a7c2c 0%, #2d5016 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
}

.profile-banner {
    height: 150px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    position: relative;
    overflow: hidden;
}

.profile-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.profile-content {
    padding: 0 2rem 2rem;
    position: relative;
    margin-top: -60px;
}

.profile-avatar-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a7c2c;
    color: white;
    border: 3px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.avatar-upload-btn:hover {
    background: #3a6c1c;
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
    color: white;
    padding-top: 1rem;
}

.profile-info h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.profile-role {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.profile-email {
    opacity: 0.9;
    margin: 0.5rem 0;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

/* Profile Body */
.profile-body {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body.dark-mode .profile-body {
    background: #2a2a2a;
}

.profile-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 2rem;
    gap: 1rem;
}

body.dark-mode .profile-tabs {
    border-bottom-color: #424245;
}

.profile-tab {
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-tab:hover {
    color: #4a7c2c;
}

.profile-tab.active {
    color: #4a7c2c;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #4a7c2c;
    border-radius: 3px 3px 0 0;
    animation: slideIn 0.3s ease;
}

body.dark-mode .profile-tab {
    color: #999;
}

body.dark-mode .profile-tab:hover,
body.dark-mode .profile-tab.active {
    color: #8bc34a;
}

.profile-tab-content {
    padding: 2rem;
}

.profile-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.4s ease;
}

body.dark-mode .profile-card {
    background: #1e1e1e;
}

.profile-card h3 {
    margin: 0 0 1.5rem 0;
    color: #2d5016;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-mode .profile-card h3 {
    color: #8bc34a;
}

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-mode .form-group label {
    color: #f5f5f7;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #2a2a2a;
    border-color: #424245;
    color: #f5f5f7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7c2c;
    box-shadow: 0 0 0 3px rgba(74, 124, 44, 0.1);
}

.save-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4a7c2c 0%, #3a6c1c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 44, 0.3);
}

.secondary-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    color: #4a7c2c;
    border: 2px solid #4a7c2c;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-btn:hover {
    background: #4a7c2c;
    color: white;
    transform: translateY(-2px);
}

body.dark-mode .secondary-btn {
    background: #2a2a2a;
    color: #8bc34a;
    border-color: #8bc34a;
}

body.dark-mode .secondary-btn:hover {
    background: #8bc34a;
    color: #1e1e1e;
}

/* Toggle Switch */
.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
}

body.dark-mode .preference-item {
    background: #2a2a2a;
}

.preference-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #333;
}

body.dark-mode .preference-item strong {
    color: #f5f5f7;
}

.preference-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

body.dark-mode .preference-item p {
    color: #999;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4a7c2c;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Activity Log */
.activity-log {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #4a7c2c;
    animation: slideInLeft 0.4s ease;
}

body.dark-mode .activity-item {
    background: #2a2a2a;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 124, 44, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a7c2c;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #333;
}

body.dark-mode .activity-content strong {
    color: #f5f5f7;
}

.activity-time {
    font-size: 0.85rem;
    color: #999;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .profile-avatar-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-tabs {
        overflow-x: auto;
        padding: 0 1rem;
    }
    
    .profile-tab {
        white-space: nowrap;
    }
    
    .admin-profile-mini span {
        display: none;
    }
}

/* Enhanced Admin Section Animations */
.admin-section {
    animation: fadeInUp 0.6s ease;
}

.admin-plant-card,
.user-card,
.order-card {
    transition: all 0.3s ease;
}

.admin-plant-card:hover,
.user-card:hover,
.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Button Hover Effects */
.nav-btn {
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    animation: slideInRight 0.4s ease;
}

body.dark-mode .message-toast {
    background: #2a2a2a;
    color: #f5f5f7;
}

.message-toast.success {
    border-left: 4px solid #4caf50;
}

.message-toast.error {
    border-left: 4px solid #f44336;
}

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


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


/* ============================================
   ANIMATED BACKGROUND WITH WIND EFFECT
   ============================================ */

/* Background Container */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.background-layer.active {
    opacity: 1;
    z-index: 1;
}

/* Wind Animation - Subtle Movement */
@keyframes windSway {
    0%, 100% {
        transform: translateX(0) scale(1.05);
    }
    25% {
        transform: translateX(-10px) scale(1.06);
    }
    50% {
        transform: translateX(5px) scale(1.05);
    }
    75% {
        transform: translateX(-5px) scale(1.055);
    }
}

@keyframes windSwayReverse {
    0%, 100% {
        transform: translateX(0) scale(1.05);
    }
    25% {
        transform: translateX(10px) scale(1.055);
    }
    50% {
        transform: translateX(-5px) scale(1.06);
    }
    75% {
        transform: translateX(5px) scale(1.05);
    }
}

.background-layer:nth-child(odd) {
    animation: windSway 20s ease-in-out infinite;
}

.background-layer:nth-child(even) {
    animation: windSwayReverse 25s ease-in-out infinite;
}

/* Overlay for better text readability */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.40) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.40) 100%
    );
    z-index: -5;
    backdrop-filter: blur(0.5px);
    pointer-events: none;
}

body.dark-mode .background-overlay {
    background: linear-gradient(
        135deg,
        rgba(30, 30, 30, 0.50) 0%,
        rgba(30, 30, 30, 0.45) 50%,
        rgba(30, 30, 30, 0.50) 100%
    );
}

/* Parallax Effect on Scroll */
.parallax-background {
    transform: translateZ(-1px) scale(1.5);
}

/* Floating Particles (Optional Enhancement) */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(74, 124, 44, 0.3);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0.3;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-200vh) translateX(-30px);
        opacity: 0;
    }
}

/* Leaf Falling Animation */
.falling-leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234a7c2c"><path d="M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.6;
    animation: leafFall 12s infinite ease-in;
    pointer-events: none;
}

@keyframes leafFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Background Image Presets - Full HD Premium Nature Images */
/* Desktop - Landscape 1920x1080 */
.bg-tropical-plants {
    background-image: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?w=1920&h=1080&fit=crop&q=90');
    background-color: #4a7c2c;
}

.bg-monstera-leaves {
    background-image: url('https://images.unsplash.com/photo-1463936575829-25148e1db1b8?w=1920&h=1080&fit=crop&q=90');
    background-color: #2d5016;
}

.bg-green-ferns {
    background-image: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1920&h=1080&fit=crop&q=90');
    background-color: #3d6b2a;
}

.bg-botanical-garden {
    background-image: url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?w=1920&h=1080&fit=crop&q=90');
    background-color: #5a8c3a;
}

.bg-palm-leaves {
    background-image: url('https://images.unsplash.com/photo-1509937528035-ad76254b0356?w=1920&h=1080&fit=crop&q=90');
    background-color: #4a7c2c;
}

.bg-jungle-canopy {
    background-image: url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?w=1920&h=1080&fit=crop&q=90');
    background-color: #2d5016;
}

/* Mobile - Portrait 1080x1920 for better mobile display */
@media (max-width: 768px) {
    .bg-tropical-plants {
        background-image: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?w=1080&h=1920&fit=crop&q=90');
    }
    
    .bg-monstera-leaves {
        background-image: url('https://images.unsplash.com/photo-1463936575829-25148e1db1b8?w=1080&h=1920&fit=crop&q=90');
    }
    
    .bg-green-ferns {
        background-image: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1080&h=1920&fit=crop&q=90');
    }
    
    .bg-botanical-garden {
        background-image: url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?w=1080&h=1920&fit=crop&q=90');
    }
    
    .bg-palm-leaves {
        background-image: url('https://images.unsplash.com/photo-1509937528035-ad76254b0356?w=1080&h=1920&fit=crop&q=90');
    }
    
    .bg-jungle-canopy {
        background-image: url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?w=1080&h=1920&fit=crop&q=90');
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .background-layer {
        background-size: cover;
        background-position: center;
        /* Disable animations on mobile for better performance */
        animation: none !important;
    }
    
    /* Simpler animations for mobile */
    @keyframes windSway {
        0%, 100% {
            transform: translateX(0) scale(1.05);
        }
        50% {
            transform: translateX(-3px) scale(1.06);
        }
    }
    
    @keyframes windSwayReverse {
        0%, 100% {
            transform: translateX(0) scale(1.1);
        }
        50% {
            transform: translateX(5px) scale(1.12);
        }
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    .background-layer,
    .particle,
    .falling-leaf {
        animation: none !important;
    }
}

/* Ensure content is above background */
body {
    position: relative;
}

main, header, footer, .container, nav, .navbar {
    position: relative;
    z-index: 10;
}

/* Make sure all major sections are above background */
.hero, .categories, .benefits, .featured-plants, .why-choose, 
.admin-section, .profile-container, .login-screen, .login-box {
    position: relative;
    z-index: 10;
}


/* ============================================
   WELCOME SPLASH SCREEN
   ============================================ */

.welcome-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(74, 124, 44, 0.95) 50%, rgba(45, 80, 22, 0.95) 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Premium Full HD Background */
.welcome-splash::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?w=1920&h=1080&fit=crop&q=90');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    animation: backgroundZoom 20s ease-in-out infinite alternate;
    z-index: -1;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes backgroundZoom {
    0% {
        transform: scale(1) translateZ(0);
    }
    100% {
        transform: scale(1.1) translateZ(0);
    }
}

.welcome-splash.hidden {
    display: none;
}

/* Animated Background Particles */
.splash-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.splash-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: particleFloat 6s infinite ease-in-out;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1) translateZ(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-80vh) translateX(50px) scale(1.5) translateZ(0);
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(0.5) translateZ(0);
        opacity: 0;
    }
}

/* Welcome Content Container */
.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Logo Animation */
.welcome-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    animation: logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.4));
    position: relative;
}

.welcome-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 195, 74, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoEntrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.15) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.6;
    }
}

/* Welcome Text */
.welcome-title {
    font-family: 'Sora', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #fff 0%, #8bc34a 25%, #fff 50%, #8bc34a 75%, #fff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGradient 4s ease infinite, titleSlideIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
    text-shadow: 0 0 40px rgba(255,255,255,0.6);
    position: relative;
}

.welcome-title::after {
    content: attr(data-i18n);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(139, 195, 74, 0.3) 50%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes titleGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes titleShine {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

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

.welcome-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    opacity: 0;
    animation: subtitleFadeIn 0.8s ease-out 0.8s forwards;
    letter-spacing: 1px;
    color: white;
}

.welcome-message {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    margin: 0 0 3rem 0;
    opacity: 0;
    animation: subtitleFadeIn 0.8s ease-out 1.2s forwards;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Welcome Enter Button */
.welcome-enter-btn {
    background: linear-gradient(135deg, #8bc34a 0%, #4a7c2c 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.4);
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 50px rgba(139, 195, 74, 0.5), 
                0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: buttonEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s forwards;
    position: relative;
    overflow: hidden;
}

.welcome-enter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.welcome-enter-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.welcome-enter-btn:hover::before {
    width: 400px;
    height: 400px;
}

.welcome-enter-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 60px rgba(139, 195, 74, 0.7),
                0 10px 20px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.welcome-enter-btn:active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 195, 74, 0.6),
                0 5px 10px rgba(0, 0, 0, 0.3);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes buttonEntrance {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Welcome Hint */
.welcome-hint {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0;
    animation: hintFadeIn 0.8s ease-out 2s forwards;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes hintFadeIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 0.6;
    }
}

/* Animated Leaves */
.welcome-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.welcome-leaf {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.6;
    animation: leafDrift 8s infinite ease-in-out;
}

@keyframes leafDrift {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Splash Fade Out */
@keyframes splashFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: orbFloat 8s infinite ease-in-out;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8bc34a 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #4a7c2c 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.glow-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #2d5016 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1) translateZ(0);
        opacity: 0.4;
    }
    33% {
        transform: translate(40px, -40px) scale(1.15) translateZ(0);
        opacity: 0.5;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.95) translateZ(0);
        opacity: 0.35;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: rippleExpand 2s ease-out infinite;
}

@keyframes rippleExpand {
    from {
        width: 0;
        height: 0;
        margin-left: 0;
        margin-top: 0;
        opacity: 1;
    }
    to {
        width: 500px;
        height: 500px;
        margin-left: -250px;
        margin-top: -250px;
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .welcome-splash {
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
    
    .welcome-splash::before {
        background-image: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?w=1080&h=1920&fit=crop&q=80');
        animation: none; /* Disable zoom on mobile to prevent flickering */
        transform: scale(1.05) translateZ(0);
        opacity: 0.25;
    }
    
    .welcome-title {
        font-size: 2.5rem;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .welcome-title::after {
        display: none; /* Disable shine effect on mobile */
    }
    
    .welcome-subtitle {
        font-size: 1.3rem;
    }
    
    .welcome-message {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .welcome-logo {
        width: 100px;
        height: 100px;
    }
    
    .welcome-logo::after {
        animation: none; /* Disable pulse on mobile */
    }
    
    .welcome-enter-btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
        -webkit-tap-highlight-color: transparent;
    }
    
    .welcome-enter-btn::after {
        animation: none; /* Disable shine on mobile */
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }
    
    .welcome-hint {
        font-size: 0.75rem;
    }
    
    .glow-orb {
        filter: blur(40px);
        animation-duration: 12s; /* Slower animation on mobile */
    }
    
    .glow-orb-1 {
        width: 250px;
        height: 250px;
    }
    
    .glow-orb-2 {
        width: 180px;
        height: 180px;
    }
    
    .glow-orb-3 {
        width: 200px;
        height: 200px;
    }
    
    /* Reduce particle count on mobile */
    .splash-particle:nth-child(n+11) {
        display: none;
    }
    
    /* Reduce leaf count on mobile */
    .welcome-leaf:nth-child(n+6) {
        display: none;
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS Safari - position fixed backgrounds */
    .animated-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 100vh;
        height: 100%;
        z-index: -10;
        overflow: hidden;
    }
    
    .background-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 100vh;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .background-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 100vh;
        height: 100%;
    }
    
    /* Ensure body can scroll properly */
    body {
        position: relative;
        min-height: 100vh;
    }
    
    .welcome-splash,
    .welcome-splash::before,
    .welcome-content,
    .welcome-logo,
    .welcome-title,
    .welcome-enter-btn,
    .glow-orb,
    .splash-particle {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
    
    /* Disable complex animations on iOS */
    @media (max-width: 768px) {
        .welcome-title {
            animation: titleSlideIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
            background: white;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .glow-orb {
            animation: none;
            opacity: 0.3;
        }
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .welcome-splash,
    .welcome-splash::before,
    .welcome-logo,
    .welcome-logo::after,
    .welcome-title,
    .welcome-title::after,
    .welcome-subtitle,
    .welcome-message,
    .welcome-enter-btn,
    .welcome-enter-btn::after,
    .welcome-hint,
    .splash-particle,
    .welcome-leaf,
    .glow-orb,
    .ripple {
        animation: none !important;
    }
    
    .welcome-title,
    .welcome-subtitle,
    .welcome-message,
    .welcome-enter-btn,
    .welcome-hint {
        opacity: 1 !important;
    }
}
