/* CSS Variables for Theme */
:root {
    --primary-color: #900c3f; /* Deep ruby red */
    --secondary-color: #ffd700; /* Gold */
    --text-dark: #1a1a1a;
    --text-light: #f8f8f8;
    --bg-color: #fafafa;
    --card-bg: #ffffff;
    --surface-soft: #fbf2f5;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.dark-mode {
    --primary-color: #e03e78;
    --text-dark: #f5eef2;
    --bg-color: #120d10;
    --card-bg: #1c1418;
    --surface-soft: #261920;
    --glass-bg: rgba(24, 17, 21, 0.9);
}

body.dark-mode .navbar {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

body.dark-mode .faq-section {
    background-color: #161013;
}

body.dark-mode .accordion-item {
    border-bottom-color: #2f2127;
}

body.dark-mode .accordion-content p,
body.dark-mode .step p,
body.dark-mode .modal-details p {
    color: #c7b8c0;
}

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

body.dark-mode .catalog-search-input {
    background: #1c1418;
    border-color: rgba(224, 62, 120, 0.35);
}

body.dark-mode .custom-upload-banner {
    background: #261920;
    border-color: rgba(224, 62, 120, 0.35);
}

body.dark-mode .price-inquiry {
    background: #2b1a22;
    border-color: rgba(224, 62, 120, 0.35);
}

body.dark-mode .mobile-bottom-nav {
    background: rgba(24, 17, 21, 0.96);
    border-top-color: rgba(224, 62, 120, 0.2);
}

.theme-toggle-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, .brand-logo, .brand {
    font-family: 'Playfair Display', serif;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
}

.brand-logo span {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links li a:not(.btn-outline):hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Fallback background if video fails */
    background: radial-gradient(circle at center, #ffffff 0%, #f0e6eb 100%);
    overflow: hidden;
    text-align: center;
    padding-top: 80px;
}

/* Updated Hero Slideshow */
.hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Overlay to darken the background so the white glass pops */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 50px 60px;
    border-radius: 30px; /* Softer, rounder corners */
}

/* Refined, Smooth Glassmorphism Effect */
.glassmorphism {
    background: rgba(255, 255, 255, 0.15); /* Much more transparent */
    backdrop-filter: blur(25px); /* Stronger blur for smooth melting effect */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Softer border */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Deeper, softer shadow */
}

.hero-title {
    font-size: 4.5rem;
    color: #ffffff; /* White text stands out better on glass over dark background */
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Softer, darker shadow for readability */
}

.hero-title em {
    color: #ffd700; /* Gold text for emphasis */
    font-style: italic;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #f0f0f0; /* Off-white for better readability */
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Collection Section */
.collection-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-search-wrap {
    max-width: 480px;
    margin: 0 auto 24px auto;
}

.catalog-search-input {
    width: 100%;
    padding: 13px 20px;
    border-radius: 30px;
    border: 1.5px solid rgba(144, 12, 63, 0.22);
    background: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--text-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.catalog-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(144, 12, 63, 0.12);
}

.tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 24px;
}

.custom-upload-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fbf2f5;
    border: 1px dashed rgba(144, 12, 63, 0.35);
    border-radius: 14px;
    padding: 14px 22px;
    margin: 0 auto 40px auto;
    max-width: 720px;
    text-align: center;
}

.custom-upload-banner span {
    color: var(--text-dark);
    font-weight: 500;
}

.custom-upload-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.custom-upload-link:hover {
    text-decoration: underline;
}

.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: rgba(144, 12, 63, 0.1);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(144, 12, 63, 0.15);
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.card:hover .card-overlay {
    opacity: 1;
}

.btn-view {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    color: var(--primary-color);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transform: translateY(20px);
    transition: var(--transition);
}

.card:hover .btn-view {
    transform: translateY(0);
}

.btn-view:hover {
    background: var(--primary-color);
    color: white;
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.price {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 600;
}

.price-inquiry {
    display: inline-block;
    font-size: 0.88rem;
    background: #fdf2f6;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(144, 12, 63, 0.18);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: #fbf6f8;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.step {
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.contact-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #630530 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(144, 12, 63, 0.2);
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5); /* Gold focus ring */
}

/* Custom Design Photo Upload */
.upload-box {
    border: 2px dashed rgba(255, 215, 0, 0.65);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.upload-box.dragover {
    background: rgba(255, 215, 0, 0.18);
    border-color: #ffd700;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #fff;
}

.upload-icon {
    font-size: 1.8rem;
}

.upload-title {
    font-weight: 600;
    font-size: 0.98rem;
}

.upload-hint {
    font-size: 0.82rem;
    opacity: 0.85;
}

.upload-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 10px;
    border-radius: 10px;
}

.upload-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.upload-preview-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.upload-preview-info span {
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-upload-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
}

.form-status {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 22px;
}

.form-status.success {
    color: #ffd700;
}

.form-status.error {
    color: #ffccd5;
}

.contact-form button {
    margin-top: 10px;
    border: none;
    cursor: pointer;
    background: #ffd700;
    color: var(--primary-color);
    font-weight: bold;
}

.contact-form button:hover {
    background: #ffffff;
    color: var(--primary-color);
}


/* Footer */
footer {
    background: #111;
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-body img {
    flex: 1;
    min-width: 300px;
    width: 100%;
    object-fit: cover;
    max-height: 500px;
}

.modal-details {
    flex: 1;
    padding: 40px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-details p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.modal-details .price {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

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

    .hero-title {
        font-size: 3rem;
    }
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-align: right;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.open {
    max-height: 200px; /* arbitrary large enough number */
}

.accordion-content p {
    padding-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/* --- Interactive Timeline (How it Works) --- */
.how-it-works {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
    gap: 30px;
}

/* The connecting line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 35px; /* Centers with the step number circles */
    left: 10%;
    right: 10%;
    height: 3px;
    background: #ffd700; /* Gold line */
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 25px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(144, 12, 63, 0.15);
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: -55px auto 20px auto; /* Pulls it up onto the line */
    border: 4px solid var(--bg-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.step:hover .step-number {
    background-color: #ffd700; /* Gold */
    color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

/* --- Animations & Floating Buttons --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-btn-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 2rem;
}

.back-to-top {
    background-color: var(--primary-color);
    color: white;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #630530;
    transform: scale(1.1);
}

.step h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step p {
    color: #666;
    line-height: 1.5;
}

/* Live Order Tracking Card */
.track-order-card {
    max-width: 760px;
    margin: 56px auto 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(144, 12, 63, 0.14);
}

.track-order-card h3 {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.track-order-card p {
    color: #666;
    margin-bottom: 20px;
}

body.dark-mode .track-order-card p {
    color: #c7b8c0;
}

.track-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.track-form input {
    flex: 1;
    min-width: 210px;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1.5px solid rgba(144, 12, 63, 0.25);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-dark);
}

.track-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.track-result {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(144, 12, 63, 0.14);
    text-align: left;
}

.track-steps-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .track-steps-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.track-stage {
    padding: 10px 8px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-color);
    color: #888;
    border: 1px solid rgba(144, 12, 63, 0.12);
}

.track-stage.done {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Tablet and mobile timeline & touch-friendly quick view */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid::before {
        display: none;
    }
    .step-number {
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 600px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .modal-body img {
        min-width: 0;
        max-height: 260px;
    }
    .modal-details {
        min-width: 0;
        padding: 25px;
    }
}

/* Mobile App Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(144, 12, 63, 0.12);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
        justify-content: space-around;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-dark);
        font-size: 0.75rem;
        font-weight: 500;
        gap: 2px;
        padding: 4px 10px;
    }

    .mobile-nav-item:active,
    .mobile-nav-item:hover {
        color: var(--primary-color);
    }

    .mobile-nav-icon {
        font-size: 1.2rem;
    }

    .floating-btn-container {
        bottom: 82px;
        right: 16px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    footer {
        padding-bottom: 90px;
    }
}

@media (hover: none) {
    .card-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 45%);
        align-items: flex-end;
        padding-bottom: 16px;
    }
    .btn-view {
        transform: translateY(0);
        font-size: 0.9rem;
        padding: 8px 18px;
    }
}
