@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/IRANSansWeb_Medium.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/IRANSansWeb_Bold.woff2') format('woff2');
    font-display: swap;
}

:root {
    --bs-primary: #059669;
    --bs-primary-rgb: 5, 150, 105;
    --bs-primary-hover: #047857;
    --bs-link-color: #1e293b;
    --bs-link-hover-color: #059669;
    --bs-border-color: #e2e8f0;
    --bs-focus-ring-color: rgba(5, 150, 105, 0.25);
    
    --eka-primary: #059669;
    --eka-primary-hover: #047857;
    --eka-primary-light: #ecfdf5;
    --eka-secondary: #0f172a;
    --eka-secondary-light: #1e293b;
    --eka-accent: #10b981;
    --eka-accent-light: #f0fdf4;
    --eka-success: #059669;
    --eka-warning: #f59e0b;
    --eka-danger: #047857;
    --eka-bg-light: #f8fafc;
    --eka-card-bg: #ffffff;
    --eka-border: #e2e8f0;
    --eka-text-main: #1e293b;
    --eka-text-muted: #64748b;
    --eka-radius-sm: 8px;
    --eka-radius-md: 14px;
    --eka-radius-lg: 20px;
    --eka-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --eka-shadow-md: 0 4px 20px -2px rgba(5, 150, 105, 0.08);
    --eka-shadow-lg: 0 10px 30px -4px rgba(5, 150, 105, 0.12);
}

/* Bootstrap Color Overrides - Emerald Construction Green Theme */
.text-primary { color: #059669 !important; }
.bg-primary { background-color: #059669 !important; color: #ffffff !important; }
.border-primary { border-color: #059669 !important; }
.btn-primary {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #047857 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
}
.btn-outline-primary {
    color: #059669 !important;
    border-color: #059669 !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease-in-out !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
}
.badge.bg-primary {
    background-color: #059669 !important;
    color: #ffffff !important;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #059669 !important;
    color: #ffffff !important;
}
.form-control:focus, .form-select:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.15) !important;
}
.page-item.active .page-link {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}
.page-link {
    color: #0f172a !important;
}
.page-link:hover {
    color: #059669 !important;
}

html {
    font-size: clamp(13px, calc(0.82rem + 0.22vw), 15px);
    -webkit-text-size-adjust: 100%;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('/assets/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('/assets/webfonts/fa-regular-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('/assets/webfonts/fa-brands-400.woff2') format('woff2');
}

body, button, input, select, textarea, optgroup, p, h1, h2, h3, h4, h5, h6, a, table, tr, td, th, li, ul, ol, label {
    font-family: 'IRANSans', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

i, .fa, .fas, .fa-solid {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.far, .fa-regular {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.fab, .fa-brands {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
}

h1 { font-size: clamp(1.35rem, calc(1.15rem + 1.1vw), 2.1rem); font-weight: 700; }
h2 { font-size: clamp(1.2rem, calc(1.05rem + 0.8vw), 1.7rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, calc(0.92rem + 0.55vw), 1.4rem); font-weight: 700; }
h4 { font-size: clamp(0.92rem, calc(0.82rem + 0.35vw), 1.15rem); font-weight: 700; }
h5 { font-size: clamp(0.84rem, calc(0.78rem + 0.22vw), 1.02rem); font-weight: 700; }
h6 { font-size: clamp(0.76rem, calc(0.72rem + 0.15vw), 0.90rem); font-weight: 700; }
.small, small { font-size: clamp(0.68rem, calc(0.66rem + 0.1vw), 0.78rem); font-weight: 300; }
.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-bold { font-weight: 700 !important; }

body {
    direction: rtl;
    text-align: right;
    background-color: var(--eka-bg-light);
    color: var(--eka-text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                               Header & Navbar                              */
/* -------------------------------------------------------------------------- */

.eka-top-bar {
    background-color: #1e293b;
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.eka-top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.eka-top-bar a:hover {
    color: var(--eka-primary);
}

.eka-navbar {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.eka-logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.eka-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.eka-logo-text {
    display: flex;
    flex-direction: column;
}

.eka-logo-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--eka-secondary);
    line-height: 1.2;
}

.eka-logo-subtitle {
    font-size: 0.75rem;
    color: var(--eka-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------------------- */
/*                                Search Bar                                  */
/* -------------------------------------------------------------------------- */

.eka-search-container {
    position: relative;
    max-width: 540px;
    width: 100%;
}

.eka-search-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 110px;
    border-radius: 24px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.eka-search-input:focus {
    border-color: var(--eka-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
    outline: none;
}

.eka-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.eka-search-btn {
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    border-radius: 20px;
    padding: 0 18px;
    background: var(--eka-primary);
    color: #ffffff;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s;
}

.eka-search-btn:hover {
    background: var(--eka-primary-hover);
}

/* -------------------------------------------------------------------------- */
/*                              Hero & Action CTAs                            */
/* -------------------------------------------------------------------------- */

.eka-hero-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    padding: 40px 0 30px;
}

.eka-cta-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--eka-radius-md);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--eka-shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.eka-cta-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s;
}

.eka-cta-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--eka-shadow-lg);
    border-color: var(--eka-primary-light);
}

.eka-cta-card:hover::after {
    background: var(--eka-primary);
}

.eka-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 14px;
    transition: transform 0.3s;
}

.eka-cta-card:hover .eka-cta-icon {
    transform: scale(1.1);
}

.eka-cta-icon.product {
    background: #ffedd5;
    color: var(--eka-primary);
}

.eka-cta-icon.expert {
    background: #e0f2fe;
    color: var(--eka-accent);
}

.eka-cta-icon.ai {
    background: #f3e8ff;
    color: #9333ea;
}

.eka-cta-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--eka-secondary);
    margin-bottom: 6px;
}

.eka-cta-desc {
    font-size: 0.85rem;
    color: var(--eka-text-muted);
    margin: 0;
}

/* -------------------------------------------------------------------------- */
/*                               Category Grid                                */
/* -------------------------------------------------------------------------- */

.eka-category-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--eka-radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--eka-text-main);
    transition: all 0.2s ease;
    box-shadow: var(--eka-shadow-sm);
}

.eka-category-pill:hover {
    border-color: var(--eka-primary);
    color: var(--eka-primary);
    transform: translateY(-2px);
    box-shadow: var(--eka-shadow-md);
}

.eka-category-pill i {
    font-size: 1.3rem;
    color: var(--eka-primary);
}

/* -------------------------------------------------------------------------- */
/*                        Marketplace & Product Cards UI                      */
/* -------------------------------------------------------------------------- */

.eka-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.eka-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.05);
    border-color: #fed7aa;
}

.eka-product-img-box {
    position: relative;
    height: 220px;
    width: 100%;
    background: #0f172a;
    display: block;
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
}

.eka-product-img-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.eka-product-img-box img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.eka-product-card:hover .eka-product-img-box img {
    transform: scale(1.08);
}

.eka-product-category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.eka-product-stock-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid #a7f3d0;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
}

.eka-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.eka-product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.45;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.eka-product-card:hover .eka-product-title {
    color: #ea580c;
}

.eka-product-brand {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Selling Method Badges */
.badge-selling-cash {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-selling-credit {
    background: #fff7ed !important;
    color: #9a3412 !important;
    border: 1px solid #fed7aa !important;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-selling-installment {
    background: #fefce8 !important;
    color: #854d0e !important;
    border: 1px solid #fef08a !important;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-selling-lc {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-selling-wholesale {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.eka-product-price-box {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    gap: 8px;
}

.eka-price-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.02em;
}

.eka-price-unit {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: normal;
}

.btn-eka-card-action {
    background: #1e293b;
    color: #ffffff !important;
    border: 1px solid #1e293b;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-eka-card-action:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- */
/*                            AI Assistant Banner                             */
/* -------------------------------------------------------------------------- */

.eka-ai-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: var(--eka-radius-lg);
    color: #ffffff;
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.eka-ai-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/*                             Engineering Tools                              */
/* -------------------------------------------------------------------------- */

.eka-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--eka-radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--eka-text-main);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.eka-tool-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.eka-tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.eka-tool-info {
    display: flex;
    flex-direction: column;
}

.eka-tool-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.eka-tool-desc {
    font-size: 0.75rem;
    color: #64748b;
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */

.eka-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 60px;
}

.eka-footer h5 {
    color: #f8fafc;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.eka-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 2px;
    background: var(--eka-primary);
}

.eka-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eka-footer ul li {
    margin-bottom: 10px;
}

.eka-footer ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.eka-footer ul li a:hover {
    color: var(--eka-primary);
}

.eka-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/*                                   Badges                                   */
/* -------------------------------------------------------------------------- */

.badge-selling-cash {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.badge-selling-installment {
    background: #fef3c7;
    color: #b45309;
    font-weight: 600;
}

.badge-selling-credit {
    background: #dcfce7;
    color: #15803d;
    font-weight: 600;
}

.badge-selling-lc {
    background: #f3e8ff;
    color: #7e22ce;
    font-weight: 600;
}

.badge-selling-wholesale {
    background: #ffe4e6;
    color: #be123c;
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/*                                Custom Buttons                              */
/* -------------------------------------------------------------------------- */

.btn-eka-primary {
    background-color: var(--eka-primary);
    border-color: var(--eka-primary);
    color: #ffffff;
    font-weight: 700;
    border-radius: var(--eka-radius-sm);
    padding: 8px 18px;
    transition: all 0.2s;
}

.btn-eka-primary:hover {
    background-color: var(--eka-primary-hover);
    border-color: var(--eka-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-eka-outline {
    background-color: transparent;
    border: 2px solid var(--eka-primary);
    color: var(--eka-primary);
    font-weight: 700;
    border-radius: var(--eka-radius-sm);
    padding: 7px 16px;
    transition: all 0.2s;
}

.btn-eka-outline:hover {
    background-color: var(--eka-primary);
    color: #ffffff;
}

.btn-eka-dark {
    background-color: var(--eka-secondary);
    border-color: var(--eka-secondary);
    color: #ffffff;
    font-weight: 700;
    border-radius: var(--eka-radius-sm);
    padding: 8px 18px;
}

.btn-eka-dark:hover {
    background-color: #000000;
    color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/*                            Admin Panel Sidebar                             */
/* -------------------------------------------------------------------------- */

.admin-sidebar {
    background: #0f172a;
    min-height: 100vh;
    color: #94a3b8;
    padding-top: 20px;
    border-left: 1px solid rgba(255,255,255,0.05);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.admin-nav-item:hover, .admin-nav-item.active {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    border-right-color: var(--eka-primary);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* -------------------------------------------------------------------------- */
/*                     Luxury Dark Smoky Engineering Tools UI                 */
/* -------------------------------------------------------------------------- */

.eka-tools-nav-bar {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.eka-tools-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.eka-tool-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
}

.eka-tool-tab-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.eka-tool-tab-btn.active {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
    border-color: #f97316 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.45);
    transform: translateY(-1px);
}

.eka-tool-card-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.eka-tool-card-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.eka-tool-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.eka-tool-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.eka-calc-result-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.eka-calc-result-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.02em;
}

/* Digital Level Bubble Gauge */
.spirit-level-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, #334155 0%, #0f172a 100%);
    border: 6px solid #475569;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.25);
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.spirit-level-bubble {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, #34d399 20%, #059669 80%);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
}

.spirit-level-crosshair {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.spirit-level-crosshair-v {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.spirit-level-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 50%;
}

/* -------------------------------------------------------------------------- */
/*                        Mobile Responsive Enhancements                      */
/* -------------------------------------------------------------------------- */

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

.min-w-160 {
    min-width: 160px;
}

@media (max-width: 768px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .eka-top-bar {
        font-size: 0.72rem !important;
        padding: 4px 0 !important;
    }
    
    .eka-logo-title {
        font-size: 1.05rem !important;
    }
    
    .eka-logo-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        border-radius: 10px !important;
    }
    
    .min-w-160 {
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .dashboard-stat-box {
        width: 100% !important;
    }
    
    .role-switcher-row {
        gap: 6px !important;
    }
    
    .role-switcher-row .btn, .role-switcher-row .badge {
        font-size: 0.72rem !important;
        padding: 4px 8px !important;
    }
    
    .eka-product-card {
        margin-bottom: 8px !important;
    }
    
    .eka-product-img-box {
        height: 185px !important;
    }
}

