@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
/* --- CSS Variables (Design System) --- */
:root {
    /* Light Mode Colors */
    --bg-color: #f4f7f6;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --primary-color: #4f46e5; /* Vibrant Indigo */
    --primary-hover: #4338ca;
    --secondary-color: #10b981; /* Emerald */
    --border-color: #e5e7eb;
    --glass-bg: rgba(255, 255, 255, 0.85);
    
    /* Shadows & Radii */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 15px rgba(0,0,0,0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* --- Global Resets & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* Mobile First Container */
header, main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* --- Header & Navigation --- */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header h1 {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}
nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}
nav a:hover {
    color: var(--primary-color);
}
/* --- Typography & Elements --- */
h2 {
    margin-bottom: 20px;
    font-weight: 600;
}
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 30px 0;
}
/* --- Forms & Buttons --- */
form {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}
form div {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
button, .view-details-btn, .buy-now-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
button:hover, .view-details-btn:hover, .buy-now-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
/* --- Grid Layout (The Magic) --- */
.item-list {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 20px;
}
/* Tablet: 2 columns */
@media (min-width: 600px) {
    .item-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Desktop: 3 or 4 columns */
@media (min-width: 900px) {
    .item-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) {
    .item-list {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* --- Item Cards --- */
.item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.item-card:hover {
    transform: translateY(0px);
    box-shadow: var(--shadow-hover);
}
.item-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: var(--text-color);
}
/* Pushes the buttons to the bottom of the card */
.item-card > p:last-of-type {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    gap: 10px;
}
/* --- Slider Styles --- */
.price-slider-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 20px;
    margin-top: 10px;
}
.price-slider-container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    background: var(--border-color);
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
}
.price-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    background: none;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}
.price-slider-container input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 5px;
}
.price-slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    pointer-events: all;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -7px;
}
/* --- Modal Styles --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-hover);
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.close-modal:hover {
    opacity: 1;
}

/* --- Guest Landing Page Styles --- */
.guest-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

@media (min-width: 900px) {
    .guest-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 50px;
    }
}

/* Guest Hero Card */
.guest-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.guest-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #e0e7ff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.guest-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 15px;
    color: white;
}

.hero-subtitle {
    font-size: 1rem;
    color: #c7d2fe;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Feature Showcase */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-item strong {
    font-size: 0.95rem;
    color: white;
    display: block;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.45;
}

/* Form Container Split */
.guest-forms {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.auth-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.auth-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.auth-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 20px;
}

.auth-section form {
    margin-bottom: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: none;
}

/* --- Footer & Terms & Conditions Sections --- */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

footer p {
    margin-bottom: 8px;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    margin: 0 8px;
}

footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Terms and Conditions Section Grid */
.terms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
}

@media (min-width: 768px) {
    .terms-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

.terms-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.terms-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.terms-card h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-card ul {
    padding-left: 20px;
    line-height: 1.6;
    margin-top: 10px;
}

.terms-card li {
    margin-bottom: 8px;
}

.terms-card li:last-child {
    margin-bottom: 0;
}

/* Removed purple and green left border classes for a cleaner, unified look */