@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Outfit:wght@300;500;700&display=swap');

:root {
    color-scheme: light;
    /* Light Pastel Theme Colors */
    --bg-color: #F7F4F9;
    --surface-color: rgba(255, 255, 255, 0.4);
    --surface-solid: #ECE7F0; /* Light Mauve */
    --glass-border: rgba(75, 35, 97, 0.1);
    
    --neon-primary: #DD207F; /* Bright Pink */
    --neon-secondary: #2B2652; /* Dark Navy for icons/accents */
    --neon-gold: #440153; /* Reused dark color for price to keep it clear */
    
    --text-main: #440153; /* Dark Purple for Headings/Text */
    --text-muted: #2B2652; /* Dark Navy for subtext */
    
    --glow-primary: 0 8px 25px rgba(221, 32, 127, 0.2); /* Soft shadow instead of glow */
    --glow-secondary: 0 8px 25px rgba(43, 38, 82, 0.15); /* Soft shadow instead of glow */
}

body {
    font-family: 'Cairo', 'Outfit', sans-serif;
    /* Animated Liquid Background */
    background: linear-gradient(-45deg, #F7F4F9, #FDFDFD, #ECE7F0, #FFFBFD);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

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

/* Elegant Dynamic Mesh Effect (Moving Orbs) */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
}
body::before {
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: rgba(221, 32, 127, 0.2); /* Rich Pink Orb */
    top: -10%;
    left: -10%;
    animation: floatPrimary 14s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
body::after {
    width: 70vw;
    height: 70vw;
    max-width: 700px;
    max-height: 700px;
    background: rgba(43, 38, 82, 0.15); /* Soft Navy Orb */
    bottom: -10%;
    right: -10%;
    animation: floatSecondary 18s infinite alternate-reverse cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes floatPrimary {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, 20%) scale(1.15); }
}
@keyframes floatSecondary {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, -15%) scale(1.1); }
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0;
}

a {
    text-decoration: none;
    color: var(--neon-primary);
    transition: 0.3s ease;
}
a:hover {
    color: var(--text-main);
    text-shadow: none;
}

/* Glassmorphism Cards */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(75, 35, 97, 0.05); /* Soft pastel shadow */
}

/* Neon Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--neon-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    border: 2px solid var(--neon-primary);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: none;
    text-transform: uppercase;
}
.btn:hover {
    background: #B81766; /* Darker Pink */
    border-color: #B81766;
    box-shadow: 0 5px 15px rgba(221, 32, 127, 0.4);
    transform: translateY(-3px) scale(1.02);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--neon-primary);
    border-color: var(--neon-primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--neon-primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(221, 32, 127, 0.3);
    transform: translateY(-3px) scale(1.02);
}

/* Modern Layout */
main {
    flex: 1;
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

/* 3D Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}

.product-card {
    background: var(--surface-solid);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(34, 38, 82, 0.05); /* very soft shadow */
}
.product-card:hover {
    border-color: var(--neon-primary);
    box-shadow: 0 15px 35px rgba(221, 32, 127, 0.15);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transform: translateZ(30px); /* 3D float inside card */
    transition: transform 0.3s ease;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-gold);
    margin-bottom: 1rem;
    transform: translateZ(20px);
    display: block;
}

/* Forms - Soft Glassmorphic */
.form-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(34, 38, 82, 0.08);
    position: relative;
    overflow: hidden;
}

/* Subtle neon line on top of form container */
.form-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-primary), transparent);
}

.form-group { margin-bottom: 1.8rem; text-align: left; }
html[dir="rtl"] .form-group { text-align: right; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 20px;
    background: var(--surface-solid);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: inset 0 2px 5px rgba(34, 38, 82, 0.03);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    background: #fff;
    border-color: var(--neon-primary);
    box-shadow: 0 0 0 3px rgba(221, 32, 127, 0.1);
}
.form-group input:focus + label {
    color: var(--neon-primary);
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 2rem; background: rgba(255,255,255,0.6); border-radius: 15px; overflow: hidden; backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(34, 38, 82, 0.05); }
th, td { padding: 1.5rem 1rem; text-align: left; border-bottom: 1px solid var(--glass-border); color: var(--text-main); }
html[dir="rtl"] th, html[dir="rtl"] td { text-align: right; }
th { color: var(--text-muted); font-weight: 700; background: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 1px;}
tr:hover { background: rgba(255,255,255,0.9); }

/* Utilities */
.alert { padding: 15px 20px; border-radius: 12px; margin-bottom: 1.5rem; backdrop-filter: blur(10px); border: 1px solid; font-weight: 600;}
.alert-error { background: rgba(255, 0, 0, 0.1); border-color: rgba(255,0,0,0.3); color: #ff4d4d; box-shadow: 0 0 10px rgba(255,0,0,0.1); }
.alert-success { background: rgba(0, 255, 127, 0.1); border-color: rgba(0,255,127,0.3); color: #00ff7f; box-shadow: 0 0 10px rgba(0,255,127,0.1); }

/* Animations classes */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar for Pastel theme */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: rgba(221, 32, 127, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-primary); }