:root {
    --accent: #8B0000;
    --bg: #0a0a0a;
    --card: #161616;
    --white: #ffffff;
    --text-dim: #a0a0a0;
}

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

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

/* STICKY HEADER */
.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
}

.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; }
.logo span { color: var(--accent); }

.owner-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid #333;
    padding: 5px 12px;
    border-radius: 20px;
}

/* HERO SECTION */
.hero {
    padding: 120px 10% 60px;
    text-align: center;
    background: radial-gradient(circle at top right, #2a0a0a, #0a0a0a);
}

.hero h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1; margin-bottom: 10px; }
.hero span { color: var(--accent); }

/* RESPONSIVE GRID */
.container { padding: 40px 5%; }
.section-title { margin-bottom: 30px; font-family: 'Playfair Display'; border-left: 3px solid var(--accent); padding-left: 15px; }

.grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Mobile: 1 Column */
    gap: 20px;
}

/* Tablets: 2 Columns */
@media (min-width: 600px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop: 4 Columns */
@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}

/* CARD DESIGN */
.card {
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #222;
    transition: 0.3s;
}

.img-container img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.card-content { padding: 20px; text-align: center; }
.price { color: var(--accent); font-size: 1.4rem; font-weight: 700; margin: 10px 0; }

.btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: var(--white);
    font-weight: 700;
    cursor: pointer;
}

footer { padding: 40px; text-align: center; border-top: 1px solid #222; color: #444; font-size: 0.8rem; }

/* HERO BUTTON */
.btn-hero {
    background: var(--accent);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

/* HOW IT WORKS */
.how-it-works { padding: 60px 10%; text-align: center; background: #0f0f0f; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: 30px; }
.step { padding: 20px; }
.step-num { 
    width: 40px; height: 40px; background: var(--accent); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: bold; 
}

/* FOOTER STYLES */
footer { background: #000; padding: 60px 10% 20px; border-top: 1px solid #222; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-info p { color: #888; font-size: 0.9rem; margin-top: 10px; }
.footer-contact h4 { color: var(--accent); margin-bottom: 15px; }
.footer-contact p { color: #888; font-size: 0.9rem; }

.footer-credit { 
    text-align: center; border-top: 1px solid #222; padding-top: 20px; 
    font-size: 0.8rem; color: #444; 
}
.footer-credit strong { color: var(--accent); }



/* MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 2000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MODAL CARD */
.modal-card {
    background: #1a1a1a;
    width: 90%;
    max-width: 450px;
    border-radius: 24px;
    border: 1px solid #333;
    padding: 30px;
    transform: translateY(40px);
    transition: 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 { font-family: 'Playfair Display'; font-size: 1.5rem; }
.close-modal { background: none; border: none; color: #666; font-size: 2rem; cursor: pointer; }

.modal-body label { font-size: 0.9rem; color: #aaa; display: block; margin-bottom: 10px; }

textarea {
    width: 100%;
    height: 120px;
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: inherit;
    resize: none;
    outline: none;
}

textarea:focus { border-color: var(--accent); }

.modal-hints { margin-top: 10px; font-size: 0.8rem; color: #555; font-style: italic; }

.modal-footer { margin-top: 25px; }

.btn-confirm {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-confirm:hover { background: #a00000; box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3); }



/* LOGIN PAGE SPECIFIC STYLES */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a0505, #0a0a0a);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-form {
    background: #161616;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.login-form h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.login-form .input-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    margin-left: 5px;
}

/* Specific styling for login inputs so they don't look like shop inputs */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px 20px;
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: 0.3s;
}

.login-form input:focus {
    border-color: var(--accent);
}

.error-msg {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 20px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--white);
}



/* SMOOTH IMAGE LOADING */
.lazy-img {
    opacity: 0;
    animation: fadeInImg 1s forwards;
}

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

/* Ensure the image container has a dark background while loading */
.img-container {
    background: #111;
    overflow: hidden;
    position: relative;
}