/* ============================================================
   INFRA HOME STUDIO - Main Stylesheet
   ============================================================ */

:root {
    --primary: #1a1f2e;
    --primary-light: #252b3b;
    --gold: #c9a84c;
    --gold-light: #e4c76b;
    --gold-dark: #a8863c;
    --white: #ffffff;
    --light: #f8f9fa;
    --text-muted: #8a9bb0;
    --border: rgba(201, 168, 76, 0.2);
    --card-bg: #1e2433;
    --gradient: linear-gradient(135deg, #1a1f2e 0%, #252b3b 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
    background: rgba(12, 16, 26, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: all 0.4s ease;
    padding: 12px 0;
    border-bottom: 1px solid rgba(201,168,76,0.18);
}

#mainNav.scrolled {
    background: rgba(12, 16, 26, 0.97) !important;
    padding: 9px 0;
    border-bottom: 2px solid rgba(201,168,76,0.45);
    box-shadow: 0 4px 32px rgba(0,0,0,0.55);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

.brand-icon { font-size: 1.5rem; }

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 8px 13px !important;
    letter-spacing: 0.35px;
    position: relative;
    transition: color 0.25s;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.28s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #c9a84c !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.cart-link { position: relative; }
.cart-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: var(--gold);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
    background: var(--gold);
    color: var(--primary);
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}
.btn-gold:hover { background: var(--gold-light); color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.4); }

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--primary); }

.btn-primary-dark {
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary-dark:hover { background: var(--primary-light); color: var(--gold); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 100vh;
    background: var(--gradient);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-title .gold { color: var(--gold); }

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 20px 0 36px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

.hero-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.hero-badge {
    position: absolute;
    background: var(--gold);
    color: var(--primary);
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.hero-badge.top-right { top: 20px; right: 20px; }
.hero-badge.bottom-left { bottom: 20px; left: 20px; }

/* ============================================================
   SECTION STYLES
   ============================================================ */
section { padding: 80px 0; }

.section-tag {
    display: inline-block;
    background: rgba(201,168,76,0.1);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(201,168,76,0.3);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.section-title.white { color: #fff; }
.section-title span { color: var(--gold); }

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 16px 0 24px;
}

.section-divider.center { margin: 16px auto 24px; }

/* Dark sections */
.section-dark {
    background: var(--primary);
    color: #fff;
}

.section-dark .section-title { color: #fff; }

.section-light { background: #f8f9fa; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.plan-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: var(--gold);
}

.plan-card-image {
    position: relative;
    overflow: hidden;
    background: #f1f3f5;
}

.plan-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.plan-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.sale { background: #e53e3e; color: #fff; }

.plan-card-body { padding: 20px; }

.plan-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.plan-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
}

.plan-meta-item i { color: var(--gold); font-size: 0.75rem; }

.plan-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.plan-price .current { font-size: 1.4rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; }
.plan-price .original { font-size: 0.9rem; color: #999; text-decoration: line-through; }

.plan-card-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 8px;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: rgba(201,168,76,0.1);
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--gold);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
}

.service-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.service-price { color: var(--gold); font-weight: 600; margin-top: 16px; font-size: 0.95rem; }

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.testimonial-card {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    transition: all 0.3s;
}

.testimonial-card:hover { border-color: var(--gold); transform: translateY(-4px); }

.testimonial-stars { color: var(--gold); margin-bottom: 14px; }
.testimonial-text { color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.7; font-style: italic; }
.testimonial-author { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--gold);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.testimonial-name { color: #fff; font-weight: 600; }
.testimonial-location { color: var(--text-muted); font-size: 0.8rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: var(--gold);
    padding: 80px 0;
}
.cta-section h2 { color: var(--primary); font-size: 2.5rem; }
.cta-section p { color: rgba(26,31,46,0.8); font-size: 1.1rem; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 36px;
    border: 1px solid #eee;
}

.filter-bar .form-control,
.filter-bar .form-select {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filter-tag {
    background: #f0f0f0;
    color: #555;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.filter-tag:hover, .filter-tag.active {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
    font-weight: 600;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-section { background: var(--light); padding: 60px 0; }

.form-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-label { font-weight: 500; color: var(--primary); margin-bottom: 6px; font-size: 0.9rem; }

.form-control, .form-select {
    border: 2px solid #e0e6ef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

textarea.form-control { min-height: 120px; resize: vertical; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    background: var(--gradient);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    position: relative;
}

.page-header .breadcrumb {
    background: none;
    justify-content: center;
    position: relative;
}

.page-header .breadcrumb-item a { color: var(--gold); text-decoration: none; }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.cart-item {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #eee;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.cart-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-color: var(--gold); }

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-title { font-weight: 600; color: var(--primary); }
.cart-item-meta { font-size: 0.85rem; color: #888; }
.cart-item-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; }

.order-summary {
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 90px;
}

.order-summary h5 { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; }
.summary-row.total { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 8px; font-size: 1.1rem; font-weight: 700; color: var(--gold); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #eee;
    transition: all 0.3s;
}
.dashboard-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); border-color: var(--gold); }

.dashboard-stat {
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}
.dashboard-stat .stat-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 12px; }
.dashboard-stat .stat-value { font-size: 2rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.dashboard-stat .stat-label { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 460px;
    margin: 0 auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo i { font-size: 3rem; color: var(--gold); }
.auth-logo h2 { font-family: 'Playfair Display', serif; color: var(--primary); margin-top: 10px; }

.divider-text {
    position: relative;
    text-align: center;
    color: #999;
    margin: 20px 0;
    font-size: 0.85rem;
}
.divider-text::before, .divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #eee;
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    height: 48px;
    background: #1a1f2e;
    color: #fff;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px 0 14px;
    font-size: 1.1rem;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 2px solid #c9a84c;
}
.chat-float-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(201,168,76,0.45); color: #c9a84c; }
.whatsapp-float:hover .chat-float-label { color: #c9a84c; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
    70% { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9998;
    max-width: 380px;
    width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.8); }

.footer-top { padding: 70px 0 50px; border-bottom: 1px solid var(--border); }

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-desc { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.65); }

.footer-contact p { font-size: 0.88rem; margin-bottom: 6px; }
.footer-contact i { color: var(--gold); width: 18px; }

.footer-heading {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); padding-left: 6px; }

.footer-bottom {
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   ABOUT / FEATURES
   ============================================================ */
.feature-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.feature-icon { width: 48px; height: 48px; background: rgba(201,168,76,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }
.feature-item h5 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.feature-item p { font-size: 0.9rem; color: #666; line-height: 1.6; margin: 0; }

/* Process Steps */
.process-step { text-align: center; position: relative; }
.step-number {
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: 'Playfair Display', serif;
}

/* Plan Detail */
.plan-detail-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.plan-detail-image img { width: 100%; display: block; }

.plan-detail-info { padding: 10px 0; }
.plan-spec { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.plan-spec i { width: 36px; height: 36px; background: rgba(201,168,76,0.1); color: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.plan-spec-label { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.plan-spec-value { font-weight: 600; color: var(--primary); font-size: 0.95rem; }

/* Success page */
.success-icon { font-size: 5rem; color: #22c55e; }

/* Download badge */
.download-badge {
    background: rgba(201,168,76,0.1);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(201,168,76,0.3);
}

/* ============================================================
   ANIMATIONS & MISC
   ============================================================ */
.hover-lift { transition: transform 0.3s; }
.hover-lift:hover { transform: translateY(-5px); }

.text-gold { color: var(--gold) !important; }
.bg-primary-dark { background: var(--primary); }
.bg-gold { background: var(--gold); }
.border-gold { border-color: var(--gold) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ============================================================
   RESPONSIVE — TABLET (max 991px)
   ============================================================ */
@media (max-width: 991px) {
    /* Navbar */
    .navbar-collapse {
        background: rgba(12,16,26,0.98);
        border: 1px solid rgba(201,168,76,0.2);
        border-radius: 14px;
        padding: 16px;
        margin-top: 10px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.5);
        backdrop-filter: blur(12px);
    }
    .navbar-nav .nav-link { padding: 10px 14px !important; border-radius: 8px; }
    .navbar-nav .nav-link::after { display: none; }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active { background: rgba(201,168,76,0.12); color: #c9a84c !important; }

    /* Hero */
    .hero-section { min-height: auto; padding: 120px 0 60px; }
    .hero-image-wrap { margin-top: 40px; }

    /* CTA */
    .cta-section h2 { font-size: 2rem; }

    /* Footer columns spacing */
    .footer-top [class*="col-"] { margin-bottom: 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 767px)
   ============================================================ */
@media (max-width: 767px) {
    /* Global */
    section { padding: 50px 0; }

    /* Navbar */
    #mainNav { background: rgba(12,16,26,0.97) !important; padding: 10px 0; border-bottom: 1px solid rgba(201,168,76,0.25); }
    .navbar-brand { font-size: 1.15rem; }
    .brand-icon { font-size: 1.3rem; }
    .navbar-toggler { border-color: rgba(201,168,76,0.5); padding: 6px 10px; }
    .navbar-toggler-icon { filter: invert(1); }

    /* Hero */
    .hero-section { padding: 90px 0 50px; text-align: center; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; margin: 16px auto 28px; }
    .hero-stats { gap: 20px; justify-content: center; }
    .stat-number { font-size: 1.6rem; }
    .hero-badge { display: none; }
    .hero-content .d-flex { flex-direction: column; gap: 12px !important; align-items: center; }
    .hero-content .btn { width: 100%; max-width: 280px; }

    /* Section titles */
    .section-title { font-size: 1.7rem; }

    /* Plan cards */
    .plan-card-footer { flex-direction: column; }
    .plan-card-footer .btn { width: 100%; }

    /* Filter bar */
    .filter-bar { padding: 16px; }
    .filter-tags { gap: 6px; }

    /* Cart */
    .cart-item { flex-wrap: wrap; }
    .cart-item-image { width: 60px; height: 60px; }
    .order-summary { position: static; margin-top: 24px; }

    /* Forms */
    .form-card { padding: 20px 14px; }
    .auth-card { padding: 28px 20px; }
    .auth-page { padding: 80px 0 40px; }
    .consultancy-section { padding: 40px 0 !important; }
    .consultancy-sidebar { order: -1; margin-bottom: 24px; }
    .consultancy-sidebar .p-4 { padding: 18px !important; }

    /* Page header */
    .page-header { padding: 90px 0 30px; }
    .page-header h1 { font-size: 1.6rem; }

    /* Plan detail */
    .plan-detail-image { margin-bottom: 24px; }
    .plan-spec { padding: 10px 0; }

    /* Dashboard stats */
    .dashboard-stat { margin-bottom: 16px; }

    /* CTA */
    .cta-section { padding: 50px 0; }
    .cta-section h2 { font-size: 1.7rem; }
    .cta-section p { font-size: 0.95rem; }
    .cta-section .d-flex { flex-direction: column; align-items: center; gap: 12px !important; }
    .cta-section .btn { width: 100%; max-width: 280px; }

    /* Footer */
    .footer-top { padding: 48px 0 32px; }
    .footer-top [class*="col-"] { margin-bottom: 28px; }
    .footer-bottom .d-flex { flex-direction: column; text-align: center; gap: 8px; }

    /* Live chat float button */
    .whatsapp-float { bottom: 16px; right: 16px; height: 42px; padding: 0 14px 0 12px; font-size: 1rem; }
    .chat-float-label { font-size: 0.78rem; }

    /* Flash messages */
    .flash-container { right: 10px; left: 10px; max-width: 100%; }

    /* Process steps */
    .process-step { margin-bottom: 32px; }
    .step-number { width: 48px; height: 48px; font-size: 1.1rem; }

    /* Feature items */
    .feature-item { gap: 12px; }

    /* Blog */
    .blog-card-featured .blog-card-image { height: auto; }

    /* Testimonials */
    .testimonial-card { padding: 20px; }

    /* Buttons full-width on small screens */
    .plan-card-footer .btn,
    .btn-block-mobile { display: block; width: 100%; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
    .navbar-brand span { display: none; }
    .cta-section h2 { font-size: 1.5rem; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-item { min-width: 80px; }
    .auth-card { padding: 24px 16px; }
    .whatsapp-float .chat-float-label { display: none; }
    .whatsapp-float { width: 42px; padding: 0; justify-content: center; border-radius: 50%; }
}

/* ============================================================
   BLOG STYLES
   ============================================================ */

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-color: var(--gold); }
.blog-card-featured .blog-card-image { height: auto; }

.blog-card-image {
    position: relative;
    overflow: hidden;
    background: #f1f3f5;
}
.blog-card-image img { width: 100%; height: auto; display: block; object-fit: contain; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.03); }

.blog-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    z-index: 1;
}

.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.blog-meta { font-size: 0.8rem; color: #999; margin-bottom: 10px; }

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card-title a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
.blog-card-title a:hover { color: var(--gold); }

.blog-card-excerpt { font-size: 0.9rem; color: #666; line-height: 1.6; flex: 1; margin-bottom: 14px; }

.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.blog-tag {
    font-size: 0.78rem;
    color: var(--gold);
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}
.blog-tag:hover { background: var(--gold); color: var(--primary); }

.blog-read-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}
.blog-read-more:hover { color: var(--gold-dark); }

/* Blog Sidebar */
.blog-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eee;
}
.blog-sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}
.blog-category-list { list-style: none; padding: 0; margin: 0; }
.blog-category-list li { border-bottom: 1px solid #f5f5f5; }
.blog-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.blog-category-list a:hover, .blog-category-list a.active { color: var(--gold); font-weight: 600; }
.blog-category-list a span { background: #f0f0f0; padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; }
.blog-category-list a.active span { background: rgba(201,168,76,0.15); color: var(--gold); }

/* Recent post widget */
.recent-post-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.recent-post-item:last-child { margin-bottom: 0; }
.recent-post-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.recent-post-img img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-title { font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; display: block; margin-bottom: 4px; line-height: 1.4; transition: color 0.2s; }
.recent-post-title:hover { color: var(--gold); }
.recent-post-date { font-size: 0.75rem; color: #aaa; }

/* Blog post content */
.blog-post-content { font-size: 1rem; line-height: 1.9; color: #333; }
.blog-post-content h2, .blog-post-content h3 { font-family: 'Playfair Display', serif; color: var(--primary); margin: 2rem 0 1rem; }
.blog-post-content h3 { font-size: 1.3rem; padding-bottom: 8px; border-bottom: 2px solid rgba(201,168,76,0.3); }
.blog-post-content p { margin-bottom: 1.2rem; }
.blog-post-content strong { color: var(--primary); }
.blog-post-content ul, .blog-post-content ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.blog-post-content li { margin-bottom: 0.5rem; }
.blog-post-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 20px;
    background: rgba(201,168,76,0.05);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
    margin: 1.5rem 0;
}
.blog-post-content img { max-width: 100%; border-radius: 10px; margin: 1rem 0; }

/* Blog post meta */
.blog-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Admin blog table */
.blog-status-published { color: #16a34a; font-weight: 600; }
.blog-status-draft { color: #d97706; font-weight: 600; }

/* ============================================================
   CHAT - Customer
   ============================================================ */

/* Force navbar solid on chat page so transparent bg doesn't bleed */
/* ============================================================
   CHAT PAGE
   ============================================================ */

/* 1. Lock page scroll, use body as flex column container */
body.page-chat {
    overflow: hidden;
    height: 100vh;
    padding-top: 76px;
    box-sizing: border-box;
}
body.page-chat .site-footer,
body.page-chat .whatsapp-float { display: none !important; }

/* 2. Section = full remaining height, dark bg, centres its child */
.chat-section {
    width: 100%;
    height: calc(100vh - 76px);
    background: linear-gradient(150deg, #1a1f2e 0%, #2d3a5e 50%, #1a1f2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 3. Wrapper: centred card, full height of section minus padding */
.chat-window-wrap {
    width: 100%;
    max-width: 900px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 4. Chat card fills wrapper height */
.chat-window {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.55);
}

/* ── Topbar ── */
.chat-win-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    background: #1a1f2e;
    border-bottom: 1px solid rgba(201,168,76,.2);
    flex-shrink: 0;
}
.chat-win-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    color: #1a1f2e; font-size: 1.15rem; flex-shrink: 0;
}
.chat-win-name { font-weight: 700; font-size: .93rem; color: #fff; }
.chat-win-name small { font-weight: 400; opacity: .7; }
.chat-win-sub { font-size: .76rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 5px; }
.chat-online-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chat-online-dot.online  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.3); }
.chat-online-dot.offline { background: #9ca3af; }

/* ── Messages area ── */
.chat-win-messages {
    flex: 1;
    min-height: 0;              /* critical — allows internal scroll */
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f5f7fa;
}
.chat-win-empty { text-align: center; color: #9ca3af; padding: 50px 0; }
.chat-win-empty i { font-size: 3rem; display: block; margin-bottom: 10px; color: #d1d5db; }

/* ── Bubbles ── */
.chat-bubble-wrap { display: flex; align-items: flex-end; gap: 8px; max-width: 68%; }
.chat-bubble-wrap.mine   { align-self: flex-end;  flex-direction: row-reverse; }
.chat-bubble-wrap.theirs { align-self: flex-start; }
.bubble-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: #1a1f2e;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .78rem; flex-shrink: 0;
}
.bubble-col { display: flex; flex-direction: column; gap: 2px; max-width: 100%; }
.bubble-sender { font-size: .72rem; color: #6b7280; padding: 0 6px; font-weight: 600; }
.chat-bubble {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 10px 15px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    word-break: break-word;
}
.chat-bubble-wrap.mine .chat-bubble {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1f2e;
    border-bottom-right-radius: 4px;
}
.chat-bubble-wrap.theirs .chat-bubble { border-bottom-left-radius: 4px; }
.bot-bubble { background: #1a1f2e !important; border-color: #c9a84c !important; color: #f3f4f6 !important; }
.bot-avatar { background: #c9a84c !important; color: #1a1f2e !important; }

/* ── Typing indicator dots ── */
.typing-bubble { display: flex !important; align-items: center; gap: 5px; padding: 12px 16px !important; }
.typing-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #c9a84c;
    display: inline-block;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30%            { transform: translateY(-6px); opacity: 1; }
}
.chat-bubble p { margin: 0; font-size: .88rem; line-height: 1.55; }
.chat-img-preview { max-width: 240px; max-height: 240px; border-radius: 12px; display: block; cursor: pointer; margin-bottom: 4px; }

/* ── Chat image wrapper with download button ── */
.chat-img-wrap { position: relative; display: inline-block; margin-bottom: 4px; }
.chat-img-wrap .chat-img-preview { margin-bottom: 0; }
.chat-img-download {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,.6); color: #fff;
    border: none; border-radius: 8px;
    padding: 5px 9px; font-size: .75rem; cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    opacity: 0; transition: opacity .2s;
    text-decoration: none;
    backdrop-filter: blur(4px);
}
.chat-img-wrap:hover .chat-img-download { opacity: 1; }
.chat-img-download:hover { background: rgba(0,0,0,.85); color: #fff; }
.bubble-time { font-size: .68rem; color: #9ca3af; padding: 0 6px; }
.chat-bubble-wrap.mine .bubble-time { text-align: right; }

/* ── Input bar ── */
.chat-win-input {
    padding: 14px 20px;
    border-top: 1px solid #e9ecef;
    background: #fff;
    flex-shrink: 0;
}
.chat-image-preview { position: relative; display: inline-block; margin-bottom: 8px; }
.chat-image-preview img { max-height: 80px; border-radius: 8px; border: 1px solid #e5e7eb; }
.remove-img {
    position: absolute; top: -6px; right: -6px;
    background: #ef4444; color: #fff; border: none; border-radius: 50%;
    width: 20px; height: 20px; font-size: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.chat-input-row { display: flex; align-items: flex-end; gap: 10px; }
.attach-btn { cursor: pointer; color: #9ca3af; font-size: 1.2rem; padding: 6px; flex-shrink: 0; transition: color .2s; }
.attach-btn:hover { color: var(--gold); }
.chat-textarea {
    flex: 1; border: 1.5px solid #e5e7eb; border-radius: 24px;
    padding: 10px 18px; font-size: .9rem; resize: none; outline: none;
    font-family: inherit; max-height: 120px; overflow-y: auto; transition: border-color .2s;
    background: #f9fafb;
}
.chat-textarea:focus { border-color: var(--gold); background: #fff; }
.send-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gold); border: none; color: #1a1f2e;
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: transform .15s, box-shadow .15s;
}
.send-btn:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(201,168,76,.5); }
.send-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.chat-win-closed {
    padding: 14px 20px; text-align: center; color: #6b7280;
    background: #f9fafb; border-top: 1px solid #e5e7eb; flex-shrink: 0;
    font-size: .88rem;
}

/* ── Start chat — two-panel ── */
.chat-start-wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 5fr 6fr;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.5);
}
.chat-info-panel {
    background: #1a1f2e;
    padding: 48px 36px;
    color: rgba(255,255,255,.82);
    display: flex; flex-direction: column; gap: 18px;
    border-right: 1px solid rgba(201,168,76,.15);
}
.chat-info-panel .chat-info-icon {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(201,168,76,.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.5rem;
}
.chat-info-panel h4 { color: #fff; font-weight: 700; margin: 0; font-size: 1.15rem; }
.chat-info-panel p  { font-size: .86rem; line-height: 1.65; opacity: .75; margin: 0; }
.chat-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.chat-info-list li { font-size: .84rem; display: flex; align-items: center; gap: 10px; }
.chat-info-list i  { color: var(--gold); width: 16px; }
.chat-info-timing  { font-size: .78rem; opacity: .5; margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }

.chat-form-panel {
    background: #fff;
    padding: 48px 40px;
    display: flex; flex-direction: column; justify-content: center;
}
.chat-start-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #1a1f2e; margin-bottom: 16px;
}
.chat-form-panel h5 { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; color: #1a1f2e; }
.chat-user-greeting { font-size: .87rem; color: #374151; background: #fdf8ee; border-radius: 8px; padding: 10px 14px; margin-bottom: 4px; }

/* ── Mobile ── */
@media (max-width: 768px) {
    body.page-chat { padding-top: 62px; }
    .chat-section { height: calc(100vh - 62px); padding: 10px; overflow-y: auto; align-items: flex-start; }
    .chat-window { border-radius: 12px; }
    .chat-bubble-wrap { max-width: 88%; }

    /* Start form: hide info panel, show only the form panel */
    .chat-start-wrap {
        grid-template-columns: 1fr;
        max-width: 100%;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,.35);
    }
    .chat-info-panel { display: none; }
    .chat-form-panel {
        padding: 28px 20px 32px;
        border-radius: 16px;
    }
    .chat-form-panel .chat-form-icon {
        width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: 12px;
    }
}
