/* Helix Medical Equipment - rebyana.com.ly */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-light: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.25; color: var(--text); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-light); }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border-radius: var(--radius); font-weight: 500;
    font-size: 0.875rem; cursor: pointer; border: none; transition: var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: white; }
.btn-turquoise { background: #06b6d4; color: white; }
.btn-turquoise:hover { background: #0891b2; color: white; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
    background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); transition: var(--transition); overflow: hidden;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-image { width: 100%; height: 240px; object-fit: cover; background: var(--bg); }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-text { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1rem; line-height: 1.5; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; color: var(--text); }
.form-control {
    width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 0.875rem; transition: var(--transition);
    background: var(--surface); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-error { color: var(--danger); font-size: 0.8125rem; margin-top: 0.25rem; }

.table-container { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 0.875rem 1.25rem; text-align: left; font-size: 0.875rem; }
th { background: var(--bg); font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
td { border-bottom: 1px solid var(--border); color: var(--text-light); }
tr:hover td { background: var(--bg); }

.navbar {
    background: var(--surface); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.25rem; color: var(--text); }
.nav-brand svg, .nav-brand img { width: 32px; height: 32px; color: var(--primary); object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-light); font-weight: 500; font-size: 0.875rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); gap: 1rem; }
    .nav-links.active { display: flex; }
}

.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 6rem 0; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%); border-radius: 50%;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1.25rem; line-height: 1.1; }
.hero-content p { font-size: 1.125rem; color: var(--text-light); margin-bottom: 2rem; max-width: 480px; }
.hero-image { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2rem; text-align: center; }
@media (max-width: 768px) { .hero .container { grid-template-columns: 1fr; } .hero-content h1 { font-size: 2.5rem; } }

.lang-switcher { position: relative; }
.lang-switcher select {
    appearance: none; background: var(--surface); border: 1px solid var(--border);
    padding: 0.375rem 2rem 0.375rem 0.75rem; border-radius: var(--radius);
    font-size: 0.8125rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.5rem center; background-size: 14px;
}

/* Hide Google Translate top banner/panel and keep layout fixed */
iframe.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

body,
html {
    top: 0 !important;
    margin-top: 0 !important;
}

.footer { background: var(--text); color: #cbd5e1; padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { color: white; font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.footer-brand svg, .footer-brand img { width: 28px; height: 28px; object-fit: contain; }
.footer-desc { color: #94a3b8; font-size: 0.875rem; line-height: 1.6; }
.footer h4 { color: white; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { color: #94a3b8; font-size: 0.875rem; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 2rem; text-align: center; font-size: 0.8125rem; color: #64748b; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
    background: var(--surface); border-right: 1px solid var(--border);
    padding: 1.5rem; position: fixed; height: 100vh; width: 260px; overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.125rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.sidebar-brand svg, .sidebar-brand img { width: 28px; height: 28px; color: var(--primary); object-fit: contain; }
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 0.25rem; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.875rem;
    border-radius: var(--radius); color: var(--text-light); font-size: 0.875rem; font-weight: 500;
    cursor: pointer;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary-light); color: var(--primary); }
.sidebar-nav svg { width: 18px; height: 18px; }
.main-content { grid-column: 2 / 3; margin-left: 0; padding: 2rem; min-width: 0; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.page-header h1 { font-size: 1.875rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.stat-label { font-size: 0.875rem; color: var(--text-light); margin-bottom: 0.5rem; }
.stat-value { font-size: 1.875rem; font-weight: 700; color: var(--text); }
.stat-icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
@media (max-width: 1024px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab { padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--text-light); cursor: pointer; border-bottom: 2px solid transparent; transition: var(--transition); background: none; border-top: none; border-left: none; border-right: none; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px);
    z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.125rem; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0.25rem; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.75rem; }

.toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1001; display: flex; flex-direction: column; gap: 0.75rem; }
.toast {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem 1.25rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem;
    min-width: 300px; animation: slideIn 0.3s ease;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 2rem;
    text-align: center; cursor: pointer; transition: var(--transition); background: var(--bg);
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-zone.dragover { border-color: var(--primary); background: var(--primary-light); }
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; margin-top: 1rem; }
.image-preview { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview .remove { position: absolute; top: 0.25rem; right: 0.25rem; background: var(--danger); color: white; border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; z-index: 10; transition: all 0.2s ease; }
.image-preview .remove:hover { background: #b91c1c; transform: scale(1.1); box-shadow: var(--shadow); }

@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .print-sheet { max-width: 800px; margin: 0 auto; padding: 2rem; }
    .print-sheet h1 { font-size: 2rem; margin-bottom: 1rem; }
    .print-sheet .meta { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--primary); }
    .print-sheet img { max-width: 100%; height: auto; margin: 1rem 0; }
    .print-sheet .features-list { list-style: none; }
    .print-sheet .features-list li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
    .print-sheet .contact-box { margin-top: 3rem; padding-top: 1rem; border-top: 2px solid var(--primary); font-size: 0.875rem; }
}

.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }
.badge-turquoise { background: #ecfeff; color: #0891b2; border: 1px solid #c5f2f7; animation: pulse-turquoise 2.5s infinite ease-in-out; }
.badge-pending { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
@keyframes pulse-turquoise {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.2); }
    50% { transform: scale(1.04); box-shadow: 0 0 6px 2px rgba(6, 182, 212, 0.4); }
}
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; }
.hidden { display: none; }
.skeleton { background: linear-gradient(90deg, var(--bg) 25%, #e2e8f0 50%, var(--bg) 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: var(--radius); }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-visual img { max-width: 80%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--surface); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box .nav-brand { justify-content: center; margin-bottom: 2rem; }
.auth-box h1 { text-align: center; margin-bottom: 0.5rem; font-size: 1.5rem; }
.auth-box p { text-align: center; color: var(--text-light); margin-bottom: 2rem; font-size: 0.875rem; }
@media (max-width: 768px) { .auth-page { grid-template-columns: 1fr; } .auth-visual { display: none; } }

/* ============================================================
   PRODUCT DETAIL PAGE LAYOUT
   ============================================================ */
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

/* ---- Gallery Column ---- */
.product-gallery {
    position: sticky;
    top: 80px;
    width: 100%;
    min-width: 0; /* prevent grid blowout */
}

/* Main display image — always a perfect square */
.product-gallery > #main-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: opacity 0.2s ease;
}

/* Thumbnail strip — wraps into a grid, never overflows */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
    max-height: 320px;        /* cap height when 20+ images */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;       /* space for scrollbar */
}
.gallery-thumbs::-webkit-scrollbar { width: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Every thumbnail is a strict square */
.gallery-thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s ease, transform 0.15s ease;
    background: var(--surface);
}
.gallery-thumbs img:hover  { transform: scale(1.05); border-color: var(--border); }
.gallery-thumbs img.active { border-color: var(--primary); }

/* ---- Description Column ---- */
.print-sheet {
    min-width: 0;             /* prevent grid blowout */
    word-break: break-word;   /* wrap very long words/URLs */
    overflow-wrap: break-word;
}
#product-description {
    white-space: pre-line;    /* honour newlines without breaking layout */
}

/* ---- Shared product meta / features ---- */
.product-meta { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1.5rem; }
.product-meta span { margin-right: 1.5rem; }
.features-list { list-style: none; }
.features-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; }
.features-list li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ---- Responsive breakpoints ---- */
/* Tablet: stack gallery above description */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .product-gallery {
        position: static;
        max-width: 480px;   /* keep gallery from stretching full-width on tablet */
        margin: 0 auto;
    }
}

/* Mobile: tighten up thumbnail grid */
@media (max-width: 480px) {
    .gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        max-height: 220px;
    }
    .product-gallery > #main-image {
        border-radius: var(--radius);
    }
}

.tab-content { display: none; }
.tab-content.active { display: block; }
@media (max-width: 767px) { .dashboard { grid-template-columns: 1fr; } .sidebar { display: none; } .main-content { grid-column: 1 / -1; margin-left: 0; } }

/* ============================================================
   PRODUCTS PAGE RESPONSIVE FILTERS
   ============================================================ */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.products-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.products-filters #category-filter {
    width: auto;
    min-width: 180px;
}
.products-filters #search-input {
    width: auto;
    min-width: 220px;
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .products-filters {
        width: 100%;
    }
    .products-filters #category-filter,
    .products-filters #search-input {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .products-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .products-filters #category-filter,
    .products-filters #search-input {
        width: 100%;
        flex: none;
    }
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION - For Admin & Employee Dashboards
   ============================================================ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 0.5rem 0;
}
.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    text-decoration: none;
    flex: 1;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s;
}
.mobile-nav a svg {
    width: 20px;
    height: 20px;
}
.mobile-nav a.active, .mobile-nav a:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .mobile-nav {
        display: flex !important;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }
    .mobile-nav::-webkit-scrollbar { display: none; }
    .mobile-nav a {
        flex: 0 0 auto;
        min-width: 64px;
        max-width: 80px;
        padding: 0.35rem 0.25rem;
    }
    .main-content { padding-bottom: 5rem !important; }
}

/* ============================================================
   HELIX HOMEPAGE PREMIUM REDESIGN
   Color Palette: #0A66C2 (Primary), #00B4D8 (Cyan), #0B1F33 (Navy)
   Typography: Poppins (headlines), Inter (body)
   NOTE: Add <link> in HTML for Google Fonts:
   <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
   ============================================================ */

/* --- Design Tokens --- */
:root {
    --hx-primary: #0A66C2;
    --hx-primary-hover: #0952a5;
    --hx-cyan: #00B4D8;
    --hx-cyan-light: rgba(0, 180, 216, 0.1);
    --hx-navy: #0B1F33;
    --hx-navy-light: #112d4e;
    --hx-white: #FFFFFF;
    --hx-light-gray: #F4F7FA;
    --hx-text-dark: #1a1a2e;
    --hx-text-body: #4a5568;
    --hx-text-muted: #718096;
    --hx-border-light: rgba(255,255,255,0.15);
    --hx-glass-bg: rgba(255, 255, 255, 0.08);
    --hx-glass-border: rgba(255, 255, 255, 0.18);
    --hx-shadow-glow: 0 0 40px rgba(10, 102, 194, 0.15);
    --hx-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --hx-shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
    --hx-radius: 12px;
    --hx-radius-lg: 20px;
    --hx-radius-xl: 28px;
    --hx-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --hx-transition-fast: all 0.25s ease;
}

/* --- Animations --- */
@keyframes hx-fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hx-fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes hx-fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes hx-scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes hx-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes hx-pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 180, 216, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 180, 216, 0.4); }
}
@keyframes hx-ecg-line {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}
@keyframes hx-particle-float {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
    25% { transform: translateY(-30px) translateX(15px) scale(1.1); opacity: 0.8; }
    50% { transform: translateY(-60px) translateX(-10px) scale(0.9); opacity: 0.5; }
    75% { transform: translateY(-90px) translateX(20px) scale(1.05); opacity: 0.7; }
    100% { transform: translateY(-120px) translateX(0) scale(1); opacity: 0; }
}
@keyframes hx-scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes hx-count-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes hx-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Scroll Reveal Base --- */
.hx-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hx-reveal.hx-visible {
    opacity: 1;
    transform: translateY(0);
}
.hx-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hx-reveal-left.hx-visible {
    opacity: 1;
    transform: translateX(0);
}
.hx-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hx-reveal-right.hx-visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Navbar Override for Homepage --- */
.hx-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--hx-transition);
}
.hx-navbar.hx-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.hx-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.hx-navbar .nav-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--hx-navy);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.hx-navbar .nav-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}
.hx-navbar .nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--hx-text-body);
    position: relative;
    padding-bottom: 4px;
}
.hx-navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--hx-primary);
    transition: var(--hx-transition-fast);
    transform: translateX(-50%);
}
.hx-navbar .nav-links a:hover::after,
.hx-navbar .nav-links a.active::after {
    width: 100%;
}
.hx-navbar .nav-links a:hover,
.hx-navbar .nav-links a.active {
    color: var(--hx-primary);
}
.hx-nav-cta {
    background: var(--hx-primary);
    color: white !important;
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--hx-transition-fast);
    text-decoration: none;
}
.hx-nav-cta:hover {
    background: var(--hx-primary-hover);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}

/* --- HERO SECTION --- */
.hx-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #f8fbff 0%, #e8f4fd 40%, #dbeafe 100%);
    overflow: hidden;
    padding-top: 72px;
}
.hx-hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 102, 194, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 102, 194, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.hx-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.5;
}
.hx-hero-glow-1 {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
}
.hx-hero-glow-2 {
    bottom: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(10, 102, 194, 0.12) 0%, transparent 70%);
}
.hx-hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.hx-hero-content {
    animation: hx-fadeInLeft 1s ease forwards;
}
.hx-hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.12;
    color: var(--hx-navy);
    margin-bottom: 1.25rem;
}
.hx-hero-content h1 span {
    background: linear-gradient(135deg, var(--hx-primary), var(--hx-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hx-hero-content > p {
    font-size: 1.125rem;
    color: var(--hx-text-body);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2rem;
}
.hx-hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.hx-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--hx-primary);
    color: white;
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--hx-transition-fast);
    border: none;
    cursor: pointer;
}
.hx-btn-primary:hover {
    background: var(--hx-primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 102, 194, 0.35);
}
.hx-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--hx-primary);
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--hx-transition-fast);
    border: 2px solid var(--hx-primary);
    cursor: pointer;
}
.hx-btn-secondary:hover {
    background: var(--hx-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 102, 194, 0.2);
}
.hx-trust-badges {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.hx-trust-badges .hx-badge-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--hx-text-muted);
    font-weight: 500;
}
.hx-trust-badges .hx-badge-item svg {
    width: 16px;
    height: 16px;
    color: var(--hx-cyan);
    flex-shrink: 0;
}
.hx-hero-visual {
    position: relative;
    animation: hx-fadeInRight 1s ease forwards;
}
.hx-hero-img-wrapper {
    position: relative;
    border-radius: var(--hx-radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(10, 102, 194, 0.18);
    animation: hx-float 6s ease-in-out infinite;
}
.hx-hero-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}
.hx-hero-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hx-hero-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hx-navy);
    z-index: 3;
}
.hx-hero-floating-card svg {
    width: 20px;
    height: 20px;
}
.hx-floating-card-1 {
    top: 10%;
    right: -20px;
    animation: hx-float 5s ease-in-out infinite;
}
.hx-floating-card-2 {
    bottom: 15%;
    left: -25px;
    animation: hx-float 7s ease-in-out infinite 1s;
}
.hx-floating-card-3 {
    bottom: 5%;
    right: 10%;
    animation: hx-float 6s ease-in-out infinite 0.5s;
}

/* Particles */
.hx-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.hx-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hx-cyan);
    opacity: 0;
    animation: hx-particle-float 8s linear infinite;
}
.hx-particle:nth-child(1) { left: 10%; bottom: 20%; animation-delay: 0s; animation-duration: 10s; }
.hx-particle:nth-child(2) { left: 25%; bottom: 10%; animation-delay: 2s; animation-duration: 12s; width: 4px; height: 4px; background: var(--hx-primary); }
.hx-particle:nth-child(3) { left: 50%; bottom: 5%; animation-delay: 4s; animation-duration: 9s; }
.hx-particle:nth-child(4) { left: 70%; bottom: 15%; animation-delay: 1s; animation-duration: 11s; width: 8px; height: 8px; background: rgba(10, 102, 194, 0.3); }
.hx-particle:nth-child(5) { left: 85%; bottom: 25%; animation-delay: 3s; animation-duration: 13s; width: 5px; height: 5px; }
.hx-particle:nth-child(6) { left: 40%; bottom: 30%; animation-delay: 5s; animation-duration: 10s; width: 4px; height: 4px; background: var(--hx-primary); }
.hx-particle:nth-child(7) { left: 60%; bottom: 0%; animation-delay: 6s; animation-duration: 14s; }
.hx-particle:nth-child(8) { left: 15%; bottom: 40%; animation-delay: 7s; animation-duration: 11s; width: 3px; height: 3px; }

/* --- STATS SECTION --- */
.hx-stats-section {
    padding: 5rem 0;
    background: var(--hx-white);
    position: relative;
}
.hx-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.hx-section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--hx-navy);
    margin-bottom: 0.75rem;
}
.hx-section-header p {
    font-size: 1.05rem;
    color: var(--hx-text-body);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.hx-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hx-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    background: rgba(10, 102, 194, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}
.hx-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.hx-stat-card {
    background: var(--hx-white);
    border: 1px solid #e8edf3;
    border-radius: var(--hx-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--hx-transition);
    position: relative;
    overflow: hidden;
}
.hx-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hx-primary), var(--hx-cyan));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.hx-stat-card:hover::before {
    transform: scaleX(1);
}
.hx-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hx-shadow-card-hover);
}
.hx-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.1), rgba(0, 180, 216, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.hx-stat-icon svg {
    width: 26px;
    height: 26px;
    color: var(--hx-primary);
}
.hx-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hx-navy);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.hx-stat-number .hx-counter-suffix {
    font-size: 1.5rem;
    color: var(--hx-cyan);
}
.hx-stat-label {
    font-size: 0.9rem;
    color: var(--hx-text-body);
    font-weight: 500;
}

/* --- ABOUT SECTION --- */
.hx-about-section {
    padding: 6rem 0;
    background: var(--hx-light-gray);
}
.hx-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hx-about-img {
    position: relative;
    border-radius: var(--hx-radius-xl);
    overflow: hidden;
    box-shadow: var(--hx-shadow-card);
}
.hx-about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
}
.hx-about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.05) 0%, transparent 50%);
}
.hx-about-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--hx-navy);
    margin-bottom: 1.25rem;
    line-height: 1.25;
}
.hx-about-content p {
    font-size: 1rem;
    color: var(--hx-text-body);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.hx-about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
.hx-about-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--hx-text-dark);
}
.hx-about-feature svg {
    width: 20px;
    height: 20px;
    color: var(--hx-cyan);
    flex-shrink: 0;
}

/* --- SERVICES SECTION --- */
.hx-services-section {
    padding: 6rem 0;
    background: var(--hx-white);
}
.hx-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.hx-service-card {
    background: var(--hx-white);
    border: 1px solid #e8edf3;
    border-radius: var(--hx-radius-lg);
    padding: 2rem;
    transition: var(--hx-transition);
    position: relative;
    overflow: hidden;
}
.hx-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.03) 0%, rgba(0, 180, 216, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.hx-service-card:hover::before {
    opacity: 1;
}
.hx-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hx-shadow-card-hover);
    border-color: rgba(10, 102, 194, 0.15);
}
.hx-service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.1), rgba(0, 180, 216, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--hx-transition);
    position: relative;
    z-index: 1;
}
.hx-service-card:hover .hx-service-icon {
    background: linear-gradient(135deg, var(--hx-primary), var(--hx-cyan));
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.25);
}
.hx-service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--hx-primary);
    transition: color 0.3s ease;
}
.hx-service-card:hover .hx-service-icon svg {
    color: white;
}
.hx-service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hx-navy);
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}
.hx-service-card p {
    font-size: 0.9rem;
    color: var(--hx-text-body);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* --- WHY CHOOSE US SECTION (Dark) --- */
.hx-why-section {
    padding: 6rem 0;
    background: linear-gradient(165deg, var(--hx-navy) 0%, #0d2847 100%);
    position: relative;
    overflow: hidden;
}
.hx-why-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hx-why-section .hx-section-header h2 {
    color: var(--hx-white);
}
.hx-why-section .hx-section-header p {
    color: rgba(255, 255, 255, 0.65);
}
.hx-why-section .hx-section-label {
    background: rgba(0, 180, 216, 0.15);
    color: var(--hx-cyan);
}
.hx-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.hx-why-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--hx-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--hx-transition);
}
.hx-why-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.hx-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 180, 216, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: var(--hx-transition);
}
.hx-why-card:hover .hx-why-icon {
    background: linear-gradient(135deg, var(--hx-primary), var(--hx-cyan));
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.3);
}
.hx-why-icon svg {
    width: 26px;
    height: 26px;
    color: var(--hx-cyan);
    transition: color 0.3s ease;
}
.hx-why-card:hover .hx-why-icon svg {
    color: white;
}
.hx-why-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--hx-white);
    margin-bottom: 0.5rem;
}
.hx-why-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* --- INDUSTRIES SECTION --- */
.hx-industries-section {
    padding: 6rem 0;
    background: var(--hx-light-gray);
}
.hx-industries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}
.hx-industry-card {
    background: var(--hx-white);
    border: 1px solid #e8edf3;
    border-radius: var(--hx-radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--hx-transition);
}
.hx-industry-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hx-shadow-card-hover);
    border-color: rgba(10, 102, 194, 0.2);
}
.hx-industry-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.08), rgba(0, 180, 216, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
}
.hx-industry-icon svg {
    width: 24px;
    height: 24px;
    color: var(--hx-primary);
}
.hx-industry-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hx-navy);
}

/* --- PARTNERS / LOGOS CAROUSEL --- */
.hx-partners-section {
    padding: 5rem 0;
    background: var(--hx-white);
    overflow: hidden;
}
.hx-logos-track-wrapper {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.hx-logos-track {
    display: flex;
    gap: 3rem;
    animation: hx-scroll-logos 25s linear infinite;
    width: max-content;
}
.hx-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 70px;
    background: var(--hx-light-gray);
    border-radius: 12px;
    padding: 0 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #b0b8c4;
    letter-spacing: 0.05em;
    transition: var(--hx-transition);
    filter: grayscale(1);
    opacity: 0.6;
    user-select: none;
}
.hx-logo-item:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--hx-primary);
    box-shadow: 0 4px 20px rgba(10, 102, 194, 0.1);
    background: var(--hx-white);
}

/* --- TESTIMONIALS --- */
.hx-testimonials-section {
    padding: 6rem 0;
    background: var(--hx-light-gray);
}
.hx-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.hx-testimonial-card {
    background: var(--hx-white);
    border: 1px solid #e8edf3;
    border-radius: var(--hx-radius-lg);
    padding: 2rem;
    transition: var(--hx-transition);
    position: relative;
}
.hx-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hx-shadow-card-hover);
}
.hx-quote-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.1), rgba(0, 180, 216, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.hx-quote-icon svg {
    width: 22px;
    height: 22px;
    color: var(--hx-primary);
}
.hx-testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--hx-text-body);
    line-height: 1.8;
    font-style: italic;
    margin: 0 0 1.25rem 0;
    padding: 0;
    border: none;
}
.hx-testimonial-stars {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 1rem;
}
.hx-testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: #f59e0b;
    color: #f59e0b;
}
.hx-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hx-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hx-primary), var(--hx-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}
.hx-testimonial-author-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hx-navy);
    margin: 0;
}
.hx-testimonial-author-info span {
    font-size: 0.8rem;
    color: var(--hx-text-muted);
}

/* --- CTA BANNER --- */
.hx-cta-section {
    padding: 5rem 0;
    background: linear-gradient(145deg, var(--hx-primary) 0%, #0952a5 50%, var(--hx-navy) 100%);
    position: relative;
    overflow: hidden;
}
.hx-cta-section::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.2) 0%, transparent 70%);
    pointer-events: none;
}
.hx-cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.hx-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}
.hx-cta-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hx-white);
    margin-bottom: 1rem;
}
.hx-cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.hx-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.hx-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--hx-primary);
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--hx-transition-fast);
    border: none;
    cursor: pointer;
}
.hx-btn-white:hover {
    background: var(--hx-light-gray);
    color: var(--hx-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.hx-btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--hx-transition-fast);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
}
.hx-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.hx-footer {
    background: var(--hx-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 0;
    margin-top: 0;
}
.hx-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.hx-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
}
.hx-footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.hx-footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.5rem;
}
.hx-footer-social {
    display: flex;
    gap: 0.75rem;
}
.hx-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--hx-transition-fast);
}
.hx-footer-social a:hover {
    background: var(--hx-primary);
    color: white;
    transform: translateY(-2px);
}
.hx-footer-social a svg {
    width: 18px;
    height: 18px;
}
.hx-footer h4 {
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.hx-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hx-footer-links li {
    margin-bottom: 0.65rem;
}
.hx-footer-links a,
.hx-footer-links span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    transition: color 0.2s ease;
    text-decoration: none;
}
.hx-footer-links a:hover {
    color: var(--hx-cyan);
}
.hx-footer-links .hx-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.hx-footer-links .hx-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--hx-cyan);
    flex-shrink: 0;
    margin-top: 3px;
}
.hx-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}
.hx-footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.hx-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-decoration: none;
}
.hx-footer-bottom-links a:hover {
    color: var(--hx-cyan);
}

/* --- FEATURED PRODUCTS SECTION (dynamic from API) --- */
.hx-featured-section {
    padding: 5rem 0;
    background: var(--hx-white);
}
.hx-featured-section .grid-3 {
    gap: 1.75rem;
}
.hx-featured-section .card {
    border: 1px solid #e8edf3;
    border-radius: var(--hx-radius-lg);
    transition: var(--hx-transition);
}
.hx-featured-section .card:hover {
    box-shadow: var(--hx-shadow-card-hover);
    transform: translateY(-6px);
}

/* --- PREMIUM NAVBAR SWITCHER --- */
.hx-navbar .lang-switcher select {
    appearance: none;
    background-color: rgba(10, 102, 194, 0.04);
    border: 1px solid rgba(10, 102, 194, 0.15);
    padding: 0.45rem 2.2rem 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hx-navy);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230A66C2' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 11px;
    font-family: 'Inter', sans-serif;
    transition: var(--hx-transition-fast);
}
.hx-navbar .lang-switcher select:hover {
    border-color: var(--hx-primary);
    background-color: var(--hx-cyan-light);
}
.hx-navbar .lang-switcher select:focus {
    outline: none;
    border-color: var(--hx-primary);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

/* --- FAQ SECTION --- */
.hx-faq-section {
    padding: 6rem 0;
    background: var(--hx-white);
}
.hx-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.hx-faq-item {
    border: 1px solid #e8edf3;
    border-radius: var(--hx-radius);
    background: var(--hx-white);
    overflow: hidden;
    transition: var(--hx-transition);
}
.hx-faq-item:hover {
    border-color: rgba(10, 102, 194, 0.2);
    box-shadow: 0 4px 20px rgba(10, 102, 194, 0.05);
}
.hx-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--hx-navy);
    cursor: pointer;
    transition: var(--hx-transition-fast);
}
.hx-faq-question:hover {
    color: var(--hx-primary);
}
.hx-faq-icon {
    color: var(--hx-text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}
.hx-faq-item.active .hx-faq-icon {
    transform: rotate(180deg);
    color: var(--hx-primary);
}
.hx-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.5rem;
}
.hx-faq-item.active .hx-faq-answer {
    padding: 0 1.5rem 1.5rem;
}
.hx-faq-answer p {
    font-size: 0.95rem;
    color: var(--hx-text-body);
    line-height: 1.7;
    margin: 0;
}

/* --- FOOTER BUTTON LINK --- */
.hx-footer-links button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: color 0.2s ease;
}
.hx-footer-links button:hover {
    color: var(--hx-cyan);
}

/* --- PRELOADER --- */
#hx-preloader {
    position: fixed;
    inset: 0;
    background: #FFFFFF;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#hx-preloader.hx-fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.hx-preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hx-preloader-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    animation: hx-preloader-pulse 2s ease-in-out infinite;
    z-index: 2;
}
.hx-preloader-pulse {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.15);
    animation: hx-preloader-ripple 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    z-index: 1;
}

@keyframes hx-preloader-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(10, 102, 194, 0.15)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 25px rgba(0, 180, 216, 0.35)); }
}

@keyframes hx-preloader-ripple {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .hx-hero-content h1 { font-size: 3rem; }
    .hx-industries-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .hx-hero .container { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hx-hero-content > p { margin-left: auto; margin-right: auto; }
    .hx-hero-ctas { justify-content: center; }
    .hx-trust-badges { justify-content: center; }
    .hx-hero-visual { max-width: 500px; margin: 0 auto; }
    .hx-floating-card-1, .hx-floating-card-2, .hx-floating-card-3 { display: none; }
    .hx-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hx-about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hx-services-grid { grid-template-columns: repeat(2, 1fr); }
    .hx-why-grid { grid-template-columns: repeat(2, 1fr); }
    .hx-industries-grid { grid-template-columns: repeat(3, 1fr); }
    .hx-testimonials-grid { grid-template-columns: 1fr; }
    .hx-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hx-hero { padding-top: 72px; min-height: auto; padding-bottom: 3rem; }
    .hx-hero-content h1 { font-size: 2.25rem; }
    .hx-section-header h2 { font-size: 1.75rem; }
    .hx-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hx-services-grid { grid-template-columns: 1fr; }
    .hx-why-grid { grid-template-columns: 1fr; }
    .hx-industries-grid { grid-template-columns: repeat(2, 1fr); }
    .hx-cta-content h2 { font-size: 1.75rem; }
    .hx-footer-grid { grid-template-columns: 1fr; }
    .hx-footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .hx-navbar .nav-links {
        top: 72px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(10, 102, 194, 0.1);
        box-shadow: 0 10px 30px rgba(10, 102, 194, 0.08);
        padding: 1.5rem;
        gap: 1.25rem;
    }
}
@media (max-width: 480px) {
    .hx-hero-content h1 { font-size: 1.85rem; }
    .hx-hero-ctas { flex-direction: column; }
    .hx-hero-ctas a { width: 100%; text-align: center; justify-content: center; }
    .hx-stats-grid { grid-template-columns: 1fr; }
    .hx-about-features { grid-template-columns: 1fr; }
    .hx-industries-grid { grid-template-columns: 1fr; }
    .hx-cta-buttons { flex-direction: column; }
    .hx-cta-buttons a { width: 100%; text-align: center; justify-content: center; }
}

/* ============================================================
   ADMIN & EMPLOYEE DASHBOARD COMPLETE MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 767px) {
    /* Mobile Header Visibility */
    .mobile-header {
        display: flex !important;
    }

    /* Main Content Padding & Density */
    .main-content {
        padding: 1.25rem !important;
        padding-bottom: 5.5rem !important; /* Ensure mobile bottom nav doesn't overlap content */
    }

    /* Stackable Page Headers */
    .page-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.875rem !important;
        margin-bottom: 1.5rem !important;
        text-align: right !important; /* Matches RTL direction beautifully */
    }
    
    .page-header h1 {
        font-size: 1.5rem !important;
        margin: 0 !important;
    }
    
    .page-header .btn, 
    .page-header button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Collapsible Grid Layouts */
    .grid.grid-2, 
    .grid.grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Stats Grid Adaptations */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .stat-card {
        padding: 1.25rem !important;
    }

    .stat-value {
        font-size: 1.5rem !important;
    }

    /* Form Fields & Grouping */
    .form-group {
        margin-bottom: 1rem !important;
    }

    /* Translation Tab Key-Value Stack */
    #translations-editor .form-group {
        grid-template-columns: 1fr !important;
        gap: 0.375rem !important;
        align-items: stretch !important;
        padding: 0.75rem !important;
        background: var(--bg) !important;
        border-radius: var(--radius) !important;
        border: 1px solid var(--border) !important;
    }

    #translations-editor label {
        font-family: monospace !important;
        font-size: 0.75rem !important;
        color: var(--text-muted) !important;
        word-break: break-all !important;
        display: block !important;
        margin-bottom: 0.125rem !important;
    }

    #translations-editor input {
        width: 100% !important;
    }

    /* Settings Control Cards Stack */
    .tab-content .card > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.875rem !important;
        padding: 1rem !important;
    }

    .tab-content .card div[style*="justify-content: flex-end"],
    .tab-content .card div[style*="justify-content:flex-end"] {
        justify-content: stretch !important;
        width: 100% !important;
    }

    .tab-content .card input,
    .tab-content .card select {
        max-width: 100% !important;
        width: 100% !important;
    }

    .tab-content .card button {
        width: 100% !important;
        justify-content: center !important;
    }

    .tab-content .card label {
        justify-content: flex-start !important;
        width: 100% !important;
    }

    /* Modal Overlay Adjustments */
    .modal-overlay {
        padding: 0.75rem !important;
    }

    .modal {
        max-height: 92vh !important;
        margin: 0 !important;
    }

    .modal-header {
        padding: 1rem 1.25rem !important;
    }

    .modal-header h3 {
        font-size: 1rem !important;
    }

    .modal-body {
        padding: 1.25rem !important;
    }

    .modal-footer {
        padding: 0.875rem 1.25rem !important;
        flex-direction: column-reverse !important;
        gap: 0.5rem !important;
    }

    .modal-footer button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Responsive Mobile Cards for Tables (Fit Perfectly Without Scrolling) */
    .table-container table,
    .table-container thead,
    .table-container tbody,
    .table-container th,
    .table-container td,
    .table-container tr {
        display: block !important;
        width: 100% !important;
    }

    /* Hide table column headers on mobile */
    .table-container thead tr {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Render each table row as a clean, rounded material card */
    .table-container tr {
        background: var(--surface) !important;
        border: 1px solid var(--border) !important;
        border-radius: 12px !important;
        margin-bottom: 1.25rem !important;
        padding: 0.875rem 1.125rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
        box-sizing: border-box !important;
    }

    /* Format each cell as a horizontal line with its label on the right and value on the left */
    .table-container td {
        border: none !important;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.06) !important;
        position: relative !important;
        padding: 0.65rem 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: right !important;
        min-height: 2.75rem !important;
        box-sizing: border-box !important;
    }

    .table-container td:last-child {
        border-bottom: none !important;
        padding-bottom: 0.25rem !important;
    }

    /* Inject columns titles as labels aligned beautifully */
    .table-container td::before {
        content: attr(data-label) !important;
        font-weight: 700 !important;
        color: var(--text-dark) !important;
        font-size: 0.8125rem !important;
        margin-left: 1rem !important;
        flex-shrink: 0 !important;
    }

    .table-container td .table-cell-value {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 0.35rem !important;
        max-width: 65% !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .table-container td .table-cell-value span.badge {
        margin: 0 !important;
        white-space: wrap !important;
        word-break: break-word !important;
        display: inline-block !important;
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        line-height: 1.2 !important;
    }

    .table-container td .flex.gap-2 {
        justify-content: flex-end !important;
        width: auto !important;
        flex-wrap: wrap !important;
        gap: 0.375rem !important;
    }

    .table-container td button {
        padding: 0.375rem 0.65rem !important;
        font-size: 0.75rem !important;
        width: auto !important;
    }

    /* Fix settings card checkbox and save button stacking (Using high-specificity selectors to override generic styles) */
    .tab-content .card .card-inline-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 0.75rem !important;
        margin: 0.5rem 0 0 0 !important;
        padding: 0.875rem 0 0 0 !important;
        border-top: 1px solid var(--border) !important;
        box-sizing: border-box !important;
    }

    .tab-content .card .card-inline-actions label {
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .tab-content .card .card-inline-actions button {
        width: auto !important;
        padding: 0.35rem 1.25rem !important;
        justify-content: center !important;
        display: inline-flex !important;
    }

    /* Fix settings card inputs and save button stacking on mobile */
    .tab-content .card .card-input-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 0.75rem !important;
        margin: 0.5rem 0 0 0 !important;
        padding: 0.875rem 0 0 0 !important;
        border-top: 1px solid var(--border) !important;
        box-sizing: border-box !important;
    }

    .tab-content .card .card-input-actions input {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        display: inline-block !important;
        box-sizing: border-box !important;
    }

    .tab-content .card .card-input-actions button {
        width: auto !important;
        padding: 0.35rem 1.25rem !important;
        justify-content: center !important;
        display: inline-flex !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    /* Languages Translator Header Flex box */
    .tab-content .page-header .flex.gap-2,
    .tab-content .page-header .flex {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }

    .tab-content .page-header select {
        width: 100% !important;
    }
}

/* Tablet Optimizations (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
    
    .grid.grid-2,
    .grid.grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Premium Product Image Upload Progress & Rearranging Controls */
.image-preview.uploading {
    filter: brightness(0.85);
}
.upload-progress-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    backdrop-filter: blur(2px);
    z-index: 8;
}
.upload-progress-overlay .progress-bar-container {
    width: 80%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    overflow: hidden;
}
.upload-progress-overlay .progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
    transition: width 0.15s ease-out;
}
.upload-progress-overlay .progress-percent {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.image-preview-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
    z-index: 5;
}
.image-preview:hover .image-preview-controls {
    opacity: 1;
}
.image-preview-controls .ctrl-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
}
.image-preview-controls .ctrl-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}
.image-preview-controls .ctrl-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.image-preview-controls .image-index {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Navigation Task Notification Badges */
.sidebar-nav a {
    position: relative;
}
.mobile-nav a {
    position: relative;
}
.nav-task-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.mobile-nav a .nav-task-badge {
    position: absolute;
    top: 2px;
    right: 14px;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    margin: 0;
}

