:root {
    --primary: #00f3ff;
    --secondary: #0056b3;
    --bg-color: #0b0c10;
    --bg-gradient: radial-gradient(circle at 50% 50%, #1f2833 0%, #0b0c10 100%);
    --text-main: #c5c6c7;
    --text-light: #ffffff;
    --neon-blue: #00f3ff;
    --neon-green: #39ff14;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 243, 255, 0.4);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--neon-blue);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

a:hover {
    color: var(--hover-general, var(--text-light));
    text-shadow: var(--shadow-glow);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--hover-general, rgba(0, 243, 255, 0.2));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
    text-align: center;
    font-size: 0.9rem;
    gap: 10px;
}

.btn-primary {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.btn-primary:hover {
    background: var(--hover-button, var(--neon-blue));
    color: var(--bg-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.btn-glow {
    background: var(--neon-blue);
    color: var(--bg-color);
    box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
    background: var(--hover-button, var(--text-light));
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    transform: translateY(-5px) scale(1.02);
}

/* Header/Nav */
header {
    height: var(--header-height);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav ul li a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--hover-general, var(--text-light));
}

nav ul li a:hover::after {
    width: 100%;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 243, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

/* Global Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Landing Page Hero */
.hero {
    min-height: calc(100vh - var(--header-height));
    padding: 2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #888;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Feature Cards */
.features {
    padding: 6rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 30px;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--neon-blue);
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(var(--shadow-glow));
}

/* Pricing */
.pricing {
    padding: 6rem 5%;
    text-align: center;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin-top: 4rem;
}

.price-card {
    width: 100%;
    max-width: 380px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 2px solid var(--neon-blue);
    background: rgba(0, 243, 255, 0.04);
    transform: scale(1.05);
    z-index: 2;
}

/* Forms & Auth UI */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding: 2rem 5%;
}

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

.form-control {
    width: 100%;
    padding: 1.1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 32px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Responsive Media Queries */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
        gap: 3rem;
    }

    .hero-text {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-illustration {
        order: 1;
        transform: scale(0.85);
    }

    .hero-actions {
        justify-content: center;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hamburger { display: flex; }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(11, 12, 16, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1500;
    }

    nav ul.open {
        right: 0;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    .hero h1 { font-size: 2.8rem; }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
    }

    .btn { width: 100%; }

    .price-card.featured {
        transform: scale(1);
    }

    .features, .pricing {
        padding: 4rem 5%;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    /* Admin Container Responsiveness (Already has some logic in sidebar.php but adding here too) */
    .admin-container {
        padding: 1rem;
        flex-direction: column;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
}

/* Grid Utilities for Views */
.responsive-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
}
/* Global Responsive Overrides */
@media (max-width: 1200px) {
    .responsive-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    }
}

@media (max-width: 992px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2rem;
    }
    
    .admin-main {
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .auth-container {
        padding-top: 1rem;
    }

    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Fixed 500px circle in searching.php is now handled by inline styles but adding safety here */
    .searching-container {
        width: 85vw !important;
        height: 85vw !important;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 1rem;
    }
    
    .logo { font-size: 1.4rem; }
    
    .form-control {
        padding: 0.8rem;
    }
}
