:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #2dd4bf;
    --secondary-color: #f97316;
    --accent-color: #f97316;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gradient-primary: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    --gradient-secondary: linear-gradient(135deg, #0891b2 0%, #10b981 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ---- New design-system pieces (pill badge, colored icon circles, stats bar) ---- */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.hero-highlight { color: var(--secondary-color); position: relative; }
.hero-highlight-underline {
    display: block;
    width: 110px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 4px;
    margin: 0.35rem 0 0;
}

.mini-feature { display: flex; align-items: flex-start; gap: 0.6rem; }
.mini-feature-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.mini-feature h6 { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.1rem; }
.mini-feature p { font-size: 0.74rem; color: var(--gray-500); margin: 0; line-height: 1.3; }

.icon-circle {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}
.icon-circle.c-violet { background: #ede9fe; color: #7c3aed; }
.icon-circle.c-pink { background: #fce7f3; color: #db2777; }
.icon-circle.c-green { background: #d1fae5; color: #059669; }
.icon-circle.c-amber { background: #fef3c7; color: #d97706; }
.icon-circle.c-blue { background: #dbeafe; color: #2563eb; }
.icon-circle.c-teal { background: #ccfbf1; color: #0d9488; }
.icon-circle.c-orange { background: #ffedd5; color: #ea580c; }
.icon-circle.c-red { background: #fee2e2; color: #dc2626; }

.learn-more-link { color: var(--primary-color); font-weight: 600; font-size: 0.85rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.learn-more-link:hover { color: var(--primary-dark); gap: 0.5rem; }

.stats-bar {
    background: var(--dark-color);
    border-radius: 22px;
    padding: 1.6rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.stats-bar-item { display: flex; align-items: center; gap: 0.85rem; }
.stats-bar-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.stats-bar-item h3 { color: white; font-size: 1.4rem; font-weight: 800; margin-bottom: 0; line-height: 1.1; }
.stats-bar-item p { color: rgba(255,255,255,0.65); font-size: 0.78rem; margin: 0; }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px var(--primary-color); } 50% { box-shadow: 0 0 20px var(--primary-color); } }

.fade-in { animation: fadeIn 0.6s ease-out forwards; }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.fade-in-left { animation: fadeInLeft 0.8s ease-out forwards; }
.fade-in-right { animation: fadeInRight 0.8s ease-out forwards; }
.fade-in-down { animation: fadeInDown 0.6s ease-out forwards; }
.scale-in { animation: scaleIn 0.5s ease-out forwards; }
.float-animation { animation: float 3s ease-in-out infinite; }
.bounce-animation { animation: bounce 2s ease-in-out infinite; }
.pulse-animation { animation: pulse 2s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.top-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 0.35rem 0;
    font-size: 0.78rem;
}

.top-bar a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.3s; }
.top-bar a:hover { color: white; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1.25rem; }

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: visible;
}
.navbar .container { flex-wrap: nowrap; gap: 0.5rem; }

.navbar.scrolled { padding: 0.4rem 0; background: rgba(255, 255, 255, 0.98); }

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--dark-color);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 60vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.navbar-logo-img { height: 32px; width: auto; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: white;
    -webkit-text-fill-color: white;
    font-size: 0.95rem;
    font-weight: 800;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.nav-phone i { color: var(--primary-color); }
.nav-phone:hover { color: var(--primary-color); }

.navbar-nav { margin: 0 auto; }

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.4rem 1rem !important;
    margin: 0 0.15rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav-inline {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.1rem;
}
.navbar-nav-inline li { display: flex; }

.nav-link:hover { color: var(--primary-color) !important; background: var(--gray-100); }
.nav-link.active { color: var(--primary-color) !important; background: rgba(13, 148, 136, 0.1); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem;
    animation: fadeInDown 0.3s ease;
}
.dropdown-item { border-radius: 8px; padding: 0.5rem 1rem; transition: all 0.2s; }
.dropdown-item:hover { background: var(--gray-100); }

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 0.55rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: white; }
.btn-primary-custom:active { transform: translateY(0); }

.btn-secondary-custom {
    background: white;
    border: 2px solid var(--primary-color);
    padding: 0.55rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.btn-secondary-custom:hover { background: var(--primary-color); color: white; transform: translateY(-2px); }

.hero-section {
    min-height: 82vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #06b6d4 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    padding-top: 20px;
}
.hero-section.hero-compact { min-height: auto; padding: 32px 0; }
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 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='%23ffffff' 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");
}

.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 2.1rem; font-weight: 800; color: white; line-height: 1.25; margin-bottom: 0.85rem; }
.hero-subtitle { font-size: 0.98rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 1.1rem; }
.hero-image { animation: float 4s ease-in-out infinite; }

/* ---- New light hero (v2) matching the reference design ---- */
.hero-section-v2 { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); padding: 40px 0 20px; }
.hero-title-v2 { font-size: 2.3rem; font-weight: 800; color: var(--dark-color); line-height: 1.2; margin-bottom: 0.85rem; }
.hero-subtitle-v2 { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 1.25rem; max-width: 520px; }

.hero-photo-wrap-v2 { position: relative; max-width: 420px; margin: 0 auto; }
.hero-photo-v2 {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}
.hero-float-card-v2 {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: white;
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    box-shadow: var(--shadow-lg);
}

.stats-strip-v2 { padding: 0 0 40px; margin-top: -10px; }

.hero-photo-sm {
    width: 100%;
    max-width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.hero-photo-wrap { position: relative; max-width: 420px; margin: 0 auto; }
.hero-photo {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}
.hero-float-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 260px;
    max-width: 80%;
}

.floating-shapes { position: absolute; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
.floating-shapes .shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}
.floating-shapes .shape:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 10%; animation-delay: 0s; }
.floating-shapes .shape:nth-child(2) { width: 120px; height: 120px; top: 20%; right: 15%; animation-delay: 1s; }
.floating-shapes .shape:nth-child(3) { width: 60px; height: 60px; bottom: 20%; left: 20%; animation-delay: 2s; }
.floating-shapes .shape:nth-child(4) { width: 100px; height: 100px; bottom: 30%; right: 25%; animation-delay: 3s; }

.section-padding { padding: 42px 0; }
.section-title { font-size: 1.8rem; font-weight: 700; color: var(--dark-color); margin-bottom: 0.5rem; }
.section-subtitle { font-size: 0.92rem; color: var(--gray-500); max-width: 600px; margin: 0 auto 1.5rem; }

.service-card {
    background: white;
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 60px; height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }

.service-card-v2 {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}
.service-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card-v2 h6 { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--dark-color); }
.service-card-v2 p { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.7rem; line-height: 1.4; }

.pricing-card {
    background: white;
    border-radius: 18px;
    padding: 1.75rem 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.pricing-card.featured { background: var(--gradient-primary); color: white; transform: scale(1.03); }
.pricing-card:hover { transform: translateY(-8px); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-8px); }
.pricing-badge {
    position: absolute;
    top: 20px; right: -30px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 3rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}
.pricing-price { font-size: 3rem; font-weight: 800; }
.original-price { text-decoration: line-through; color: var(--gray-400); font-size: 1.2rem; }

.stats-section { background: var(--dark-color); position: relative; overflow: hidden; }
.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
}
.stat-item { text-align: center; padding: 0.75rem; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: white; margin-bottom: 0.25rem; }
.stat-label { color: var(--gray-400); font-size: 0.9rem; }

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin: 1rem;
    transition: all 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.testimonial-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.faq-accordion .accordion-item {
    border: 1px solid var(--gray-200);
    margin-bottom: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}
.faq-accordion .accordion-button { background: white; font-weight: 600; font-size: 0.95rem; color: var(--dark-color); padding: 1rem 1.25rem; }
.faq-accordion .accordion-button:not(.collapsed) { background: white; color: var(--primary-color); box-shadow: inset 0 0 0 2px var(--primary-color); }
.faq-accordion .accordion-button:focus { box-shadow: none; }

.faq-filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.faq-pill {
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}
.faq-pill.active, .faq-pill:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }

.faq-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 1.25rem auto 0;
}
.faq-search-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}
.faq-search-wrap input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}
.faq-search-wrap input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1); }

.footer { background: var(--dark-color); color: white; padding: 80px 0 30px; }
.footer-title { font-weight: 700; margin-bottom: 1.5rem; color: white; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--gray-400); text-decoration: none; transition: all 0.3s ease; }
.footer-links a:hover { color: white; padding-left: 5px; }
.social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center; justify-content: center;
    color: white;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}
.social-icons a:hover { background: var(--primary-color); transform: translateY(-3px); }

.dashboard-sidebar {
    background: var(--dark-color);
    height: 100vh;
    padding: 1.5rem 0;
    position: fixed;
    width: 260px;
    left: 0; top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* The public site's off-canvas nav clone must stay hidden on desktop -
   only the actual dashboards (admin/client/writer) get a persistent
   desktop sidebar. This one only appears when toggled open on mobile. */
.public-mobile-sidebar {
    transform: translateX(-100%);
    z-index: 1100;
}
.public-mobile-sidebar.active {
    transform: translateX(0);
}
.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;}
.dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}
.sidebar-brand {
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    padding: 0 1.25rem 1.5rem;
    display: block;
    text-decoration: none;
}
.sidebar-nav { 
    list-style: none; 
    padding: 0; 
    margin: 0;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 2rem;
}
.sidebar-nav .sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.5rem 1rem;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--primary-color);
}
.sidebar-nav li a i { width: 20px; margin-right: 10px; }
.sidebar-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 1rem 0; }

.dashboard-content {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
    background: var(--gray-100);
    transition: margin 0.3s ease;
}
.dashboard-header {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1150;
    flex-shrink: 0;
    pointer-events: auto;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out forwards;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-card .icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.stat-card .icon.primary { background: rgba(13, 148, 136, 0.1); color: var(--primary-color); }
.stat-card .icon.success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.stat-card .icon.warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.stat-card .icon.danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.stat-card .icon.info { background: rgba(6, 182, 212, 0.1); color: var(--secondary-color); }

.data-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.5s ease-out;
}
.data-table table { margin: 0; }
.data-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-600);
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: var(--gray-200);
    font-size: 0.9rem;
}
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: var(--gray-50); }

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-badge.pending { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.status-badge.in_progress { background: rgba(13, 148, 136, 0.1); color: var(--primary-color); }
.status-badge.submitted { background: rgba(6, 182, 212, 0.1); color: var(--secondary-color); }
.status-badge.completed { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.status-badge.cancelled, .status-badge.failed { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.status-badge.active { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }

.order-form-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.5s ease-out;
}
.form-control-custom {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

/* ---- Icon-inside-input pattern (used on auth forms) ---- */
.input-icon-wrap { position: relative; }
.input-icon-wrap > i.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}
.input-icon-wrap > input.form-control-custom { padding-left: 2.75rem; }
.input-icon-wrap > input.form-control-custom.has-toggle { padding-right: 2.75rem; }

/* Auth pages use a lighter, taller field style matching the reference design */
.auth-form-card .form-control-custom {
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
}
.auth-form-card .form-control-custom::placeholder { color: var(--gray-400); }
.auth-form-card .input-icon-wrap > .input-icon { color: var(--gray-400); font-size: 1.05rem; }
.input-icon-wrap > .toggle-password-btn {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: var(--gray-400);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.input-icon-wrap > .toggle-password-btn:hover { color: var(--gray-600); }
.form-label-custom { font-weight: 600; color: var(--gray-600); margin-bottom: 0.5rem; font-size: 0.9rem; }

.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.file-upload-area:hover { border-color: var(--primary-color); background: rgba(13, 148, 136, 0.02); }
.file-upload-area.dragover { border-color: var(--primary-color); background: rgba(13, 148, 136, 0.05); }

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    position: relative;
}
.auth-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    animation: scaleIn 0.5s ease-out;
}

/* ---- New no-background, two-column auth layout (matches reference design) ---- */
.auth-page-v2 {
    min-height: 100vh;
    background: var(--light-color);
    padding: 40px 0;
}
.auth-info-card {
    background: linear-gradient(160deg, #0f172a 0%, var(--primary-dark) 60%, var(--primary-color) 100%);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.auth-badge-pill-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}
.auth-info-card h2 { color: white; font-size: 1.7rem; font-weight: 800; line-height: 1.3; }
.auth-info-card h2 span { color: var(--primary-light); }
.auth-info-card > p.subtitle { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 1.75rem; }

.auth-feature-row { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.25rem; }
.auth-feature-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: white;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.auth-feature-row h6 { color: white; font-size: 0.92rem; font-weight: 700; margin-bottom: 0.15rem; }
.auth-feature-row p { color: rgba(255,255,255,0.65); font-size: 0.8rem; margin: 0; line-height: 1.4; }

.auth-testimonial-strip {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.auth-testimonial-avatars { display: flex; }
.auth-testimonial-avatars img {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    object-fit: cover;
    margin-left: -10px;
}
.auth-testimonial-avatars img:first-child { margin-left: 0; }
.auth-testimonial-strip .stars { color: #fbbf24; font-size: 0.8rem; }
.auth-testimonial-strip small { color: rgba(255,255,255,0.75); }

.auth-form-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    height: 100%;
}
.auth-form-card h2 { font-size: 1.6rem; font-weight: 800; }
.auth-form-card h2 span { color: var(--primary-color); }

.social-btn-row .btn-social {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
    background: white;
    width: 100%;
    transition: all 0.2s ease;
}
.social-btn-row .btn-social:hover { border-color: var(--gray-300); background: var(--gray-100); }

.auth-trust-row .icon-circle { margin: 0 auto 0.6rem; }

@media (max-width: 991px) {
    .auth-form-card, .auth-info-card { padding: 1.75rem; }
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    background: var(--gray-100);
    border-radius: 12px;
    padding: 0.25rem;
}
.auth-tabs button {
    flex: 1;
    padding: 0.625rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    color: var(--gray-500);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.auth-tabs button.active { background: white; color: var(--primary-color); box-shadow: var(--shadow-sm); }

.notification-toast {
    position: fixed;
    top: 100px; right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideLeft 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.notification-toast.success { background: var(--success-color); }
.notification-toast.error { background: var(--danger-color); }
.notification-toast.warning { background: var(--warning-color); }
.notification-toast.info { background: var(--primary-color); }

.notification-dropdown {
    position: absolute;
    top: 100%; right: 0;
    width: 350px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    animation: fadeInDown 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
}
.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.2s;
    cursor: pointer;
}
.notification-item:hover { background: var(--gray-50); }
.notification-item.unread { background: rgba(13, 148, 136, 0.05); }
.notification-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center; justify-content: center;
    z-index: 9999;
}

.modal-custom .modal-content { border: none; border-radius: 20px; box-shadow: var(--shadow-xl); }
.modal-custom .modal-header { border-bottom: 1px solid var(--gray-200); padding: 1.25rem 1.5rem; }
.modal-custom .modal-body { padding: 1.5rem; }
.modal-custom .modal-footer { border-top: 1px solid var(--gray-200); padding: 1.25rem 1.5rem; }

.profile-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow-md);
}
.profile-avatar-sm { width: 40px; height: 40px; border-width: 2px; }
.profile-avatar-upload {
    position: relative;
    display: inline-block;
}
.profile-avatar-upload input { display: none; }
.profile-avatar-upload .upload-btn {
    position: absolute;
    bottom: 5px; right: 5px;
    background: var(--primary-color);
    color: white;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.profile-avatar-upload .upload-btn:hover { transform: scale(1.1); }

.chart-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.page-header {
    background: var(--gradient-primary);
    padding: 55px 0 40px;
    color: white;
    text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.6rem; }
.page-header p { font-size: 1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

.page-header-v2 {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 45px 0 30px;
    text-align: center;
}
.page-header-v2 h1 { font-size: 1.9rem; font-weight: 800; color: var(--dark-color); margin: 0.4rem 0 0.5rem; }
.page-header-v2 p { font-size: 0.92rem; color: var(--gray-500); max-width: 560px; margin: 0 auto; }

.content-section { padding: 60px 0; }

.contact-quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    height: 100%;
    transition: all 0.3s ease;
    color: inherit;
}
.contact-quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.contact-quick-card h6 { color: var(--dark-color); }
.contact-quick-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.bg-teal { background: var(--primary-color) !important; }

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    transition: all 0.3s ease;
    color: inherit;
}
.contact-info-card:hover { transform: translateX(-4px); box-shadow: var(--shadow-md); }
.contact-info-card h6 { color: var(--dark-color); }
.content-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1050;
    padding: 0.75rem 0;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.2s;
    min-width: 60px;
}
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary-color);
}
.mobile-bottom-nav .nav-item.active { 
    color: var(--primary-color);
    font-weight: 600;
}
.mobile-bottom-nav .nav-item i { 
    font-size: 1.35rem; 
    margin-bottom: 0.25rem;
    display: block;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
    cursor: pointer;
}

@media (max-width: 991px) {
    .top-bar { display: none; }
    
    .dashboard-sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1100;
        height: 100vh;
        max-height: 100vh;
    }
    .dashboard-sidebar.active { 
        transform: translateX(0); 
    }
    .sidebar-overlay { 
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1099;
        cursor: pointer;
    }
    .sidebar-overlay.active { 
        display: block !important; 
    }
    
    .dashboard-content { margin-left: 0; padding: 1rem; padding-bottom: 100px; }
    
    .mobile-menu-toggle { display: flex !important; }
    .mobile-bottom-nav { display: flex !important; flex-direction: column; }
    .footer { display: none !important; }
    
    .hero-title { font-size: 2.5rem; }
    
    .stat-card { padding: 1rem; }
    .stat-card h3 { font-size: 1.5rem; }
    .stat-card .icon { width: 40px; height: 40px; font-size: 1rem; }
    
    .data-table th, .data-table td { padding: 0.75rem; font-size: 0.8rem; }
    
    
    .dashboard-header h4 { font-size: 1.1rem; }
    .dashboard-header p { font-size: 0.85rem; }
    .dashboard-header {
        position: sticky;
        top: 0;
        z-index: 900;
        border-radius: 0;
        margin: -1rem -1rem 1rem;
        width: calc(100% + 2rem);
    }

    body { padding-bottom: 80px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .section-title { font-size: 1.5rem; }
    .section-padding { padding: 32px 0; }
    
    .service-card { padding: 1.5rem; }
    .service-icon { width: 60px; height: 60px; font-size: 1.5rem; }
    
    .pricing-card { padding: 2rem 1.5rem; }
    .pricing-card.featured { transform: scale(1); }
    
    .order-form-card { padding: 1.5rem; }
    .auth-card { padding: 1.5rem; margin: 1rem auto; max-width: 400px; }
    
    .row.g-4 > * { padding-left: 0.5rem; padding-right: 0.5rem; }
    
    .stat-card { margin-bottom: 0.75rem; }
    
    .btn-primary-custom, .btn-secondary-custom { padding: 0.625rem 1.5rem; font-size: 0.9rem; }
    
    .notification-dropdown { width: 300px; right: -50px; }
}

@media (max-width: 576px) {
    .hero-section { padding: 60px 0; min-height: auto; }
    .hero-title { font-size: 1.75rem; }
    
    .stat-number { font-size: 2.5rem; }
    
    .navbar-brand { font-size: 1.25rem; }
    
    .modal-dialog { margin: 0.5rem; }
    
    .profile-avatar { width: 80px; height: 80px; }
}

@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

.ripple-effect {
    position: relative;
    overflow: hidden;
}
.ripple-effect::after {
    content: '';
    position: absolute;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.hover-lift { transition: transform 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); }

.hover-glow { transition: box-shadow 0.3s ease; }
.hover-glow:hover { box-shadow: 0 0 20px rgba(13, 148, 136, 0.3); }

.theme-toggle {
    background: var(--gray-100);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    color: var(--gray-600);
}
.theme-toggle:hover {
    background: var(--gray-200);
    transform: rotate(15deg);
}

body.dark-mode {
    --light-color: #0f172a;
    --dark-color: #f8fafc;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
}

body.dark-mode {
    background-color: #0f172a;
    color: #f8fafc;
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.95);
}

body.dark-mode .navbar-brand {
    color: white;
}

body.dark-mode .nav-link {
    color: #94a3b8 !important;
}
body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: #2dd4bf !important;
    background: rgba(13, 148, 136, 0.2);
}

body.dark-mode .dropdown-menu {
    background: #1e293b;
    border: 1px solid #334155;
}
body.dark-mode .dropdown-item {
    color: #e2e8f0;
}
body.dark-mode .dropdown-item:hover {
    background: #334155;
}

body.dark-mode .dashboard-content {
    background: #0f172a;
}

body.dark-mode .dashboard-header,
body.dark-mode .stat-card,
body.dark-mode .data-table,
body.dark-mode .content-card,
body.dark-mode .chart-container,
body.dark-mode .order-form-card,
body.dark-mode .service-card,
body.dark-mode .pricing-card,
body.dark-mode .testimonial-card {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

body.dark-mode .data-table th {
    background: #0f172a;
    color: #94a3b8;
}

body.dark-mode .data-table td {
    border-color: #334155;
}

body.dark-mode .data-table tbody tr:hover {
    background: #334155;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .form-control-custom {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus,
body.dark-mode .form-control-custom:focus {
    background: #1e293b;
    border-color: #0d9488;
    color: #e2e8f0;
}

body.dark-mode .form-label,
body.dark-mode .form-label-custom {
    color: #94a3b8;
}

body.dark-mode .modal-content {
    background: #1e293b;
    color: #e2e8f0;
}
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: #334155;
}

body.dark-mode .btn-close {
    filter: invert(1);
}

body.dark-mode .mobile-bottom-nav {
    background: #1e293b;
    border-top: 1px solid #334155;
}
body.dark-mode .mobile-bottom-nav .nav-item {
    color: #94a3b8;
}
body.dark-mode .mobile-bottom-nav .nav-item.active {
    color: #2dd4bf;
}

body.dark-mode .theme-toggle {
    background: #334155;
    color: #fbbf24;
}

body.dark-mode .notification-dropdown {
    background: #1e293b;
    border: 1px solid #334155;
}
body.dark-mode .notification-item {
    border-color: #334155;
}
body.dark-mode .notification-item:hover {
    background: #334155;
}

body.dark-mode .file-upload-area {
    border-color: #475569;
    background: #1e293b;
}
body.dark-mode .file-upload-area:hover {
    border-color: #0d9488;
    background: rgba(13, 148, 136, 0.1);
}

body.dark-mode .auth-tabs {
    background: #1e293b;
}
body.dark-mode .auth-tabs button {
    color: #94a3b8;
}
body.dark-mode .auth-tabs button.active {
    background: #334155;
    color: #2dd4bf;
}

body.dark-mode .top-bar {
    background: #0f172a;
}

body.dark-mode .text-muted {
    color: #64748b !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #64748b;
}

.ticket-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.ticket-card:hover {
    box-shadow: var(--shadow-md);
}
.ticket-card.priority-high {
    border-left-color: var(--danger-color);
}
.ticket-card.priority-medium {
    border-left-color: var(--warning-color);
}
.ticket-card.priority-low {
    border-left-color: var(--success-color);
}

body.dark-mode .ticket-card {
    background: #1e293b;
}

.promo-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}
.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.promo-code-display {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
}

.promotion-banner {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}
.promotion-banner.type-promotion {
    border-left-color: var(--success-color);
}
.promotion-banner.type-announcement {
    border-left-color: var(--primary-color);
}
.promotion-banner.type-notice {
    border-left-color: var(--warning-color);
}
.promotion-banner.priority-high {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(6, 182, 212, 0.05));
}

body.dark-mode .promotion-banner {
    background: #1e293b;
}

.chat-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 12px;
}
.chat-message {
    margin-bottom: 1rem;
    display: flex;
}
.chat-message.sent {
    justify-content: flex-end;
}
.chat-message .message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow-sm);
}
.chat-message.sent .message-content {
    background: var(--primary-color);
    color: white;
}
.chat-message .message-time {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}
.chat-message.sent .message-time {
    color: rgba(255,255,255,0.7);
}

body.dark-mode .chat-container {
    background: #0f172a;
}
body.dark-mode .chat-message .message-content {
    background: #334155;
    color: #e2e8f0;
}
body.dark-mode .chat-message.sent .message-content {
    background: var(--primary-color);
    color: white;
}

.notification-page-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.notification-page-item:hover {
    box-shadow: var(--shadow-md);
}
.notification-page-item.unread {
    background: rgba(13, 148, 136, 0.05);
    border-left-color: var(--primary-color);
}
.notification-page-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notification-page-item .icon.order { background: rgba(13, 148, 136, 0.1); color: var(--primary-color); }
.notification-page-item .icon.payment { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.notification-page-item .icon.ticket { background: rgba(6, 182, 212, 0.1); color: var(--secondary-color); }
.notification-page-item .icon.promotion { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.notification-page-item .icon.general { background: rgba(100, 116, 139, 0.1); color: var(--gray-500); }

body.dark-mode .notification-page-item {
    background: #1e293b;
}
body.dark-mode .notification-page-item.unread {
    background: rgba(13, 148, 136, 0.1);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    display: block;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}
.whatsapp-float .whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

@media (max-width: 767px) {
    .whatsapp-float {
        display: none;
    }
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.5rem 0;
}

.message-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.message-card:hover {
    box-shadow: var(--shadow-md);
}
.message-card.unread {
    border-left-color: var(--primary-color);
    background: rgba(13, 148, 136, 0.02);
}
.message-card .message-subject {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}
.message-card .message-preview {
    color: var(--gray-500);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.message-card .message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-400);
}

body.dark-mode .message-card {
    background: #1e293b;
}
body.dark-mode .message-card .message-subject {
    color: #f1f5f9;
}
body.dark-mode .message-card.unread {
    background: rgba(13, 148, 136, 0.1);
}

/* ============================================================
   Floating AI chat widget
   ============================================================ */
.chat-widget-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
    z-index: 1200;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
    /* Gentle idle float + pulse so the button actually reads as "live"
       instead of a static circle - this was previously the widget's only
       state: no motion of any kind drew the eye to it. Stops automatically
       once opened (see .chat-widget-toggle.open below). */
    animation: chatWidgetFloat 3s ease-in-out infinite;
}
.chat-widget-toggle:hover { transform: scale(1.08); animation-play-state: paused; }
.chat-widget-toggle.open {
    animation: none;
    transform: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
@keyframes chatWidgetFloat {
    0%, 100% { transform: translateY(0); box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4); }
    50% { transform: translateY(-6px); box-shadow: 0 10px 26px rgba(13, 148, 136, 0.5); }
}
/* Icon swap: rotate the outgoing icon away and the incoming one in,
   instead of an instant className swap that just snapped between glyphs
   with no transition at all. */
.chat-widget-toggle i {
    transition: transform 0.25s ease;
}
.chat-widget-toggle.open i {
    transform: rotate(90deg);
}
.chat-widget-toggle .chat-badge-dot {
    position: absolute;
    top: 4px; right: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid white;
    animation: chatBadgePulse 1.6s ease-in-out infinite;
}
@keyframes chatBadgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

.chat-widget-panel {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: calc(100vh - 140px);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    z-index: 1200;
    display: none;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
}
.chat-widget-panel.active { display: flex; opacity: 1; transform: translateY(0) scale(1); }

.chat-widget-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-widget-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.chat-widget-status { font-size: 0.72rem; opacity: 0.85; display: flex; align-items: center; gap: 0.3rem; }
.chat-widget-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chat-widget-close { background: none; border: none; color: white; font-size: 1rem; opacity: 0.85; cursor: pointer; }
.chat-widget-close:hover { opacity: 1; }

.chat-widget-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--gray-100);
}
.chat-bubble {
    max-width: 82%;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
}
.chat-bubble.ai {
    background: white;
    color: var(--dark-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.chat-bubble.user {
    background: var(--gradient-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble-time { font-size: 0.65rem; opacity: 0.6; margin-top: 0.2rem; display: block; }

.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 0.7rem 0.9rem; background: white; border-radius: 14px; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-400); animation: chatTypingBounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-widget-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--gray-200);
    background: white;
    flex-shrink: 0;
}
.chat-widget-input input {
    flex: 1;
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    outline: none;
}
.chat-widget-input input:focus { border-color: var(--primary-color); }
.chat-widget-input button {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Chat widget on mobile/tablet: previously this just set
   display:none !important on both the toggle AND the panel for any
   screen under 991px - which is effectively every phone and most
   tablets, so the widget was completely unreachable on mobile with no
   way to open it at all. Now it stays available, just repositioned so
   it doesn't collide with the fixed mobile bottom nav bar, and the
   panel becomes a near-fullscreen sheet on small phones where a
   360px-wide floating box wouldn't be usable anyway. Still fully
   hidden on dashboard pages regardless of screen size (see footer.php
   - the widget markup itself is never output there). */
/* Floating chat bubble: desktop/tablet only again, per explicit request -
   mobile users use the full-page live_chat.php (linked from the mobile
   menu) instead of the floating bubble. */
@media (max-width: 991px) {
    .chat-widget-toggle,
    .chat-widget-panel {
        display: none !important;
    }
}

/* Belt-and-suspenders: the widget's markup is already fully omitted on
   admin/client/writer dashboards by footer.php (gated on $isDashboard,
   which every dashboard page sets before including it) - this rule is a
   second line of defense so it stays hidden even if some future
   dashboard sub-view ever includes footer.php without setting that
   flag. body gets the "dashboard-page" class from header.php whenever
   $isDashboard is set, on every screen size, not just mobile. */
.dashboard-page .chat-widget-toggle,
.dashboard-page .chat-widget-panel {
    display: none !important;
}

/* Sticky social sidebar - fixed to the right edge, vertically centered.
   Sits well above the floating chat toggle (bottom-right, ~24px from
   bottom) since this is anchored to vertical center instead, so the two
   don't collide on typical viewport heights. */
.sticky-social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1150;
    display: flex;
    flex-direction: column;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.sticky-social-sidebar a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-color);
    color: white;
    font-size: 1.15rem;
    text-decoration: none;
    transition: background 0.2s ease, width 0.2s ease, padding-right 0.2s ease;
}
.sticky-social-sidebar a:hover {
    background: var(--primary-color);
    width: 50px;
}
.dashboard-page .sticky-social-sidebar {
    display: none !important;
}
/* Smaller on phones instead of hidden - it's a thin edge strip, not
   something that meaningfully competes with page content the way a
   full chat panel would. */
@media (max-width: 576px) {
    .sticky-social-sidebar a {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
}
