/* ============================================================================
   Digital Nexus (https://digitalnexus.lk) — Premium 3D Dark Blue & White UI/UX
   - Official Fonts: 'Plus Jakarta Sans' (Headings) & 'Inter' (Body)
   - Theme Colors: Deep Navy (#0A192F), Royal Blue (#1E3A8A), Electric Blue (#2563EB), Crisp White (#FFFFFF)
   - Strict Mobile 2-Products-Per-Row Responsive Grid (@media max-width: 768px)
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dn-bg, #FFFFFF);
    color: var(--dn-text, #0F172A);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--dn-primary, #0A192F);
    line-height: 1.22;
    letter-spacing: -0.02em;
    font-weight: 800;
}

a {
    color: var(--dn-accent, #2563EB);
    text-decoration: none;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.dn-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Topbar */
.dn-topbar {
    background: var(--dn-primary, #0A192F);
    color: #E2E8F0;
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dn-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dn-topbar-left, .dn-topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dn-topbar a {
    color: #CBD5E1;
    font-weight: 500;
}

.dn-topbar a:hover {
    color: #38BDF8;
}

.dn-topbar i {
    color: var(--dn-cyan, #06B6D4);
    margin-right: 5px;
}

/* Sticky Header & Navigation */
.dn-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--dn-border, #E2E8F0);
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.05);
}

.dn-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 16px;
}

.dn-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.dn-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.dn-brand-text {
    display: flex;
    flex-direction: column;
}

.dn-brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--dn-primary, #0A192F);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.dn-brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--dn-accent, #2563EB);
}

.dn-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dn-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E293B;
    transition: all 0.2s ease;
}

.dn-nav-link:hover, .dn-nav-link.active {
    color: var(--dn-accent, #2563EB);
    background: rgba(37, 99, 235, 0.08);
}

.dn-caret {
    font-size: 0.72rem;
    margin-left: 3px;
}

/* Dropdown */
.dn-dropdown {
    position: relative;
}

.dn-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.22s ease;
    z-index: 1100;
}

.dn-dropdown:hover .dn-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dn-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #1E293B;
    font-size: 0.9rem;
    font-weight: 600;
}

.dn-dropdown-menu a i {
    color: var(--dn-accent, #2563EB);
    width: 18px;
}

.dn-dropdown-menu a:hover {
    background: #F1F5F9;
    color: var(--dn-accent, #2563EB);
}

.dn-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dn-cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: var(--dn-primary, #0A192F);
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dn-cart-btn:hover {
    background: var(--dn-primary, #0A192F);
    color: #FFFFFF;
}

.dn-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--dn-accent, #2563EB);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #FFFFFF;
}

.dn-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: var(--dn-primary, #0A192F);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Buttons */
.dn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.dn-btn-sm {
    padding: 9px 16px;
    font-size: 0.86rem;
    border-radius: 10px;
}

.dn-btn-primary {
    background: linear-gradient(135deg, var(--dn-secondary, #1E3A8A) 0%, var(--dn-accent, #2563EB) 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.45);
}

.dn-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -6px rgba(37, 99, 235, 0.6);
    color: #FFFFFF;
}

.dn-btn-white {
    background: #FFFFFF;
    color: var(--dn-primary, #0A192F);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.dn-btn-white:hover {
    transform: translateY(-2px);
    background: #F8FAFC;
    color: var(--dn-accent, #2563EB);
}

.dn-btn-outline {
    background: transparent;
    border-color: var(--dn-border, #CBD5E1);
    color: var(--dn-primary, #0A192F);
}

.dn-btn-outline:hover {
    border-color: var(--dn-accent, #2563EB);
    color: var(--dn-accent, #2563EB);
    background: rgba(37, 99, 235, 0.04);
}

.dn-btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
}

.dn-btn-outline-light:hover {
    background: #FFFFFF;
    color: var(--dn-primary, #0A192F);
}

.dn-btn-wa {
    background: #16A34A;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.dn-btn-wa:hover {
    background: #15803D;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.dn-w-100 {
    width: 100%;
}

/* ============================================================================
   3D Interactive Hero Slider (Multi-Banner, Mobile Responsive)
   ============================================================================ */
.dn-hero-slider {
    position: relative;
    background: radial-gradient(circle at 80% 20%, var(--dn-secondary, #1E3A8A) 0%, var(--dn-primary, #0A192F) 70%);
    color: #FFFFFF;
    overflow: hidden;
    padding: 64px 0 84px;
}

#dnHeroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dn-slider-container {
    position: relative;
    z-index: 2;
}

.dn-slide {
    display: none;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 44px;
    animation: dnSlideFade 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.dn-slide.active {
    display: grid;
}

@keyframes dnSlideFade {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dn-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.dn-hero-title {
    color: #FFFFFF;
    font-size: clamp(2rem, 4.2vw, 3.45rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
}

.dn-hero-subtitle {
    color: #CBD5E1;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    margin-bottom: 28px;
    max-width: 620px;
}

.dn-hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.dn-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dn-metric-item strong {
    display: block;
    font-size: 1.45rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #38BDF8;
}

.dn-metric-item span {
    font-size: 0.82rem;
    color: #94A3B8;
}

/* 3D Floating Hero Visual Card */
.dn-hero-visual-3d {
    perspective: 1200px;
}

.dn-hero-card-3d {
    position: relative;
    border-radius: 24px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    transform-style: preserve-3d;
    animation: dnFloat3D 6s ease-in-out infinite;
}

.dn-hero-card-3d img {
    border-radius: 16px;
    width: 100%;
    height: auto;
}

@keyframes dnFloat3D {
    0%, 100% { transform: translateY(0px) rotateX(2deg) rotateY(-4deg); }
    50% { transform: translateY(-12px) rotateX(-2deg) rotateY(4deg); }
}

.dn-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
    position: relative;
    z-index: 3;
}

.dn-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
}

.dn-slider-dot.active {
    width: 36px;
    background: #38BDF8;
}

.dn-slider-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dn-slider-arrow:hover {
    background: var(--dn-accent, #2563EB);
}

/* Page Sub-Hero Banner */
.dn-page-hero {
    background: linear-gradient(135deg, var(--dn-primary, #0A192F) 0%, var(--dn-secondary, #1E3A8A) 100%);
    color: #FFFFFF;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.dn-page-hero h1 {
    color: #FFFFFF;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    margin-bottom: 12px;
}

.dn-page-hero p {
    color: #CBD5E1;
    max-width: 720px;
    font-size: 1.05rem;
}

.dn-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #93C5FD;
    margin-bottom: 14px;
}

.dn-breadcrumb a {
    color: #E2E8F0;
}

/* Sections */
.dn-section {
    padding: 76px 0;
}

.dn-section-alt {
    background-color: var(--dn-surface, #F8FAFC);
}

.dn-section-dark {
    background: linear-gradient(145deg, var(--dn-primary, #0A192F) 0%, var(--dn-secondary, #1E3A8A) 100%);
    color: #FFFFFF;
}

.dn-section-dark h2, .dn-section-dark h3 {
    color: #FFFFFF;
}

.dn-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.dn-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dn-accent, #2563EB);
    background: rgba(37, 99, 235, 0.09);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.dn-section-title {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    margin-bottom: 12px;
}

.dn-section-desc {
    color: var(--dn-muted, #475569);
    font-size: 1.02rem;
}

/* 3D Interactive Cards Grid (Services, Features, Portfolio) */
.dn-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.dn-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.dn-card-3d {
    background: #FFFFFF;
    border-radius: var(--dn-radius, 16px);
    border: 1px solid var(--dn-border, #E2E8F0);
    padding: 28px;
    box-shadow: var(--dn-shadow);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dn-card-3d:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--dn-shadow-3d);
    border-color: rgba(37, 99, 235, 0.4);
}

.dn-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--dn-primary, #0A192F), var(--dn-accent, #2563EB));
    color: #FFFFFF;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.dn-card-3d h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.dn-card-3d p {
    color: var(--dn-muted, #475569);
    font-size: 0.94rem;
    margin-bottom: 18px;
}

.dn-feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.dn-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #334155;
    padding: 5px 0;
}

.dn-feature-list li i {
    color: var(--dn-accent, #2563EB);
    font-size: 0.8rem;
}

/* ============================================================================
   Product Cards & Strict Mobile 2-Products-Per-Row Layout
   ============================================================================ */
.dn-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.dn-product-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    box-shadow: var(--dn-shadow);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.dn-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dn-shadow-3d);
    border-color: var(--dn-accent, #2563EB);
}

.dn-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #DC2626, #EA580C);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.dn-product-thumb {
    position: relative;
    background: #0F172A;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.dn-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.dn-product-card:hover .dn-product-thumb img {
    transform: scale(1.05);
}

.dn-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.dn-product-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dn-accent, #2563EB);
    margin-bottom: 4px;
}

.dn-product-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--dn-primary, #0A192F);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dn-product-title a {
    color: inherit;
}

.dn-product-title a:hover {
    color: var(--dn-accent, #2563EB);
}

.dn-product-warranty {
    font-size: 0.76rem;
    color: #059669;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dn-product-price-wrap {
    margin-bottom: 12px;
}

.dn-price-current {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--dn-primary, #0A192F);
    display: block;
}

.dn-price-old {
    font-size: 0.78rem;
    color: #94A3B8;
    text-decoration: line-through;
}

.dn-product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

/* Forms & Inputs */
.dn-form-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    padding: 32px;
    box-shadow: var(--dn-shadow);
}

.dn-form-group {
    margin-bottom: 18px;
}

.dn-form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dn-primary, #0A192F);
    margin-bottom: 6px;
}

.dn-input, .dn-select, .dn-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 11px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0F172A;
    transition: all 0.2s ease;
}

.dn-input:focus, .dn-select:focus, .dn-textarea:focus {
    outline: none;
    border-color: var(--dn-accent, #2563EB);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.dn-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-weight: 600;
    font-size: 0.94rem;
}

.dn-alert-success {
    background: #ECFDF5;
    border: 1px solid #34D399;
    color: #065F46;
}

.dn-alert-error {
    background: #FEF2F2;
    border: 1px solid #F87171;
    color: #991B1B;
}

/* Cart Drawer */
.dn-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.dn-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.dn-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 2000;
    box-shadow: -12px 0 40px rgba(10, 25, 47, 0.2);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dn-cart-drawer.open {
    right: 0;
}

.dn-cart-header {
    padding: 20px 22px;
    background: var(--dn-primary, #0A192F);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dn-cart-header h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
}

.dn-cart-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
}

.dn-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
}

.dn-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E2E8F0;
}

.dn-cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.dn-cart-item-info span {
    font-size: 0.82rem;
    color: var(--dn-accent, #2563EB);
    font-weight: 700;
}

.dn-cart-footer {
    padding: 20px 22px;
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.dn-cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.08rem;
    margin-bottom: 14px;
}

.dn-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Footer */
.dn-footer {
    background: var(--dn-primary, #0A192F);
    color: #CBD5E1;
    padding: 72px 0 28px;
    border-top: 4px solid var(--dn-accent, #2563EB);
}

.dn-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.85fr 0.95fr 1.2fr;
    gap: 36px;
    margin-bottom: 48px;
}

.dn-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.dn-footer-desc {
    font-size: 0.9rem;
    color: #94A3B8;
    margin-bottom: 18px;
}

.dn-footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dn-footer-contact i {
    color: #38BDF8;
}

.dn-footer-col h4 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.dn-footer-links {
    list-style: none;
}

.dn-footer-links li {
    margin-bottom: 10px;
}

.dn-footer-links a {
    color: #CBD5E1;
    font-size: 0.9rem;
}

.dn-footer-links a:hover {
    color: #38BDF8;
    padding-left: 4px;
}

.dn-payment-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.dn-pay-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
}

.dn-pay-badge i {
    font-size: 1.25rem;
    color: #FBBF24;
    margin-top: 3px;
}

.dn-pay-badge.dn-pay-genie i {
    color: #38BDF8;
}

.dn-pay-badge div {
    display: flex;
    flex-direction: column;
}

.dn-pay-badge strong {
    color: #FFFFFF;
    font-size: 0.88rem;
}

.dn-legal-links {
    font-size: 0.82rem;
}

.dn-legal-links a {
    color: #93C5FD;
}

.dn-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.86rem;
}

.dn-socials {
    display: flex;
    gap: 10px;
}

.dn-socials a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dn-socials a:hover {
    background: var(--dn-accent, #2563EB);
}

/* Floating WhatsApp Button */
.dn-wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1500;
    background: #16A34A;
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.42);
}

.dn-wa-float i {
    font-size: 1.3rem;
}

.dn-wa-float:hover {
    background: #15803D;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* ============================================================================
   Mobile Responsive Design & Mandatory 1-Row 2-Products Grid on Mobile
   ============================================================================ */
@media (max-width: 1024px) {
    .dn-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dn-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .dn-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dn-hide-mobile, .dn-hide-sm {
        display: none !important;
    }

    .dn-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .dn-nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px;
        border-bottom: 2px solid var(--dn-accent, #2563EB);
        box-shadow: 0 20px 35px rgba(10, 25, 47, 0.15);
        display: none;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }

    .dn-nav.open {
        display: flex;
    }

    .dn-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        background: #F8FAFC;
    }

    .dn-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: center;
    }

    .dn-hero-cta-group {
        justify-content: center;
    }

    .dn-grid-3, .dn-grid-2 {
        grid-template-columns: 1fr;
    }

    /* MANDATORY USER REQUIREMENT: 1 Row = 2 Products Viewing on Mobile */
    .dn-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .dn-product-body {
        padding: 11px;
    }

    .dn-product-cat {
        font-size: 0.64rem;
    }

    .dn-product-title {
        font-size: 0.84rem;
        margin-bottom: 6px;
    }

    .dn-product-warranty {
        font-size: 0.68rem;
        margin-bottom: 6px;
    }

    .dn-price-current {
        font-size: 0.92rem;
    }

    .dn-price-old {
        font-size: 0.7rem;
    }

    .dn-product-actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dn-product-actions .dn-btn {
        padding: 8px 10px;
        font-size: 0.76rem;
    }

    .dn-footer-grid {
        grid-template-columns: 1fr;
    }

    .dn-wa-float span {
        display: none;
    }

    .dn-wa-float {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}


/* ============================================================================
   Official Landscape Logo (No Text), Animated Site Loader & Icon-Only WhatsApp
   ============================================================================ */
.dn-page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at center, #1E3A8A 0%, #0A192F 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.dn-page-loader.dn-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dn-loader-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 32px;
}

.dn-loader-logo {
    width: 220px;
    max-width: 75vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(56, 189, 248, 0.35));
    animation: dnLogoPulse 1.6s ease-in-out infinite;
}

.dn-loader-bar {
    width: 180px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.dn-loader-progress {
    width: 60%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563EB, #38BDF8, #06B6D4);
    animation: dnLoaderSlide 1.1s ease-in-out infinite;
}

@keyframes dnLogoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes dnLoaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Landscape Logo Only (No Text) */
.dn-logo-landscape {
    height: 46px;
    width: auto;
    max-width: 195px;
    object-fit: contain;
    display: block;
}

.dn-logo-landscape-footer {
    height: 48px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: block;
    margin-bottom: 6px;
}

/* Icon-Only Floating WhatsApp Widget */
.dn-wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    width: 58px !important;
    height: 58px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.45);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.dn-wa-float i {
    font-size: 1.85rem !important;
    line-height: 1;
    margin: 0 !important;
}

.dn-wa-float:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 34px rgba(22, 163, 74, 0.6);
    color: #FFFFFF;
}


/* ============================================================================
   Portfolio, Clients, Blog & Contact Page User-Friendly Alignment System
   ============================================================================ */

/* Filter Bar (Portfolio / Products) */
.dn-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 38px;
}

/* 1. Portfolio Grid & Cards (projects.php) */
.dn-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.dn-portfolio-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    box-shadow: var(--dn-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.dn-portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dn-shadow-3d);
    border-color: var(--dn-accent, #2563EB);
}

.dn-portfolio-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0A192F;
    overflow: hidden;
}

.dn-portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.dn-portfolio-card:hover .dn-portfolio-thumb img {
    transform: scale(1.04);
}

.dn-portfolio-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(8px);
    color: #38BDF8;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.dn-portfolio-year-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: #0F172A;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
}

.dn-portfolio-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 18px;
}

.dn-portfolio-client {
    font-size: 0.84rem;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dn-portfolio-client i {
    color: var(--dn-accent, #2563EB);
}

.dn-portfolio-title {
    font-size: 1.28rem;
    color: var(--dn-primary, #0A192F);
    margin-bottom: 10px;
    line-height: 1.3;
}

.dn-portfolio-summary {
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 14px;
}

.dn-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dn-tech-pill {
    background: #F1F5F9;
    color: #1E293B;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.dn-portfolio-actions {
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* 2. Clients Page Logo Matrix & Testimonials (clients.php) */
.dn-client-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.dn-client-logo-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: var(--dn-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.dn-client-logo-card:hover {
    transform: translateY(-4px);
    border-color: var(--dn-accent, #2563EB);
}

.dn-client-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dn-primary, #0A192F);
    background: #EFF6FF;
    padding: 8px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.dn-client-logo-badge i {
    color: var(--dn-accent, #2563EB);
}

.dn-client-company-name {
    font-size: 0.84rem;
    color: #64748B;
    font-weight: 600;
}

.dn-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.dn-testimonial-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--dn-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.dn-testimonial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dn-quote-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #EFF6FF;
    color: var(--dn-accent, #2563EB);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.dn-stars {
    color: #F59E0B;
    font-size: 0.92rem;
    display: flex;
    gap: 3px;
}

.dn-testimonial-text {
    font-size: 1rem;
    color: #1E293B;
    font-style: italic;
    line-height: 1.7;
    flex: 1;
}

.dn-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}

.dn-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dn-primary, #0A192F), var(--dn-accent, #2563EB));
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dn-author-meta strong {
    display: block;
    font-size: 0.96rem;
    color: var(--dn-primary, #0A192F);
}

.dn-author-meta span {
    font-size: 0.82rem;
    color: #64748B;
}

/* 3. Blog / News Grid & Reader View (news.php) */
.dn-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.dn-blog-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    box-shadow: var(--dn-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.dn-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dn-shadow-3d);
}

.dn-blog-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0A192F;
    overflow: hidden;
    display: block;
}

.dn-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.dn-blog-card:hover .dn-blog-thumb img {
    transform: scale(1.04);
}

.dn-blog-cat-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(10, 25, 47, 0.86);
    color: #38BDF8;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
    text-transform: uppercase;
}

.dn-blog-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 16px;
}

.dn-blog-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    color: #64748B;
    margin-bottom: 10px;
}

.dn-blog-title {
    font-size: 1.14rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.dn-blog-title a {
    color: var(--dn-primary, #0A192F);
}

.dn-blog-title a:hover {
    color: var(--dn-accent, #2563EB);
}

.dn-blog-excerpt {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dn-blog-reader-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.dn-blog-article-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--dn-shadow);
}

.dn-blog-hero-img {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
}

.dn-blog-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.86rem;
    color: #64748B;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid #E2E8F0;
}

.dn-blog-meta-bar i {
    color: var(--dn-accent, #2563EB);
    margin-right: 4px;
}

.dn-blog-content-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #1E293B;
    white-space: pre-line;
}

/* 4. Contact Us Page Quick Cards & Balanced 2-Column Layout (contact.php) */
.dn-contact-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 44px;
    align-items: stretch;
}

.dn-contact-quick-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--dn-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.dn-contact-quick-card h3 {
    font-size: 1.18rem;
}

.dn-contact-quick-card p {
    font-size: 0.92rem;
    color: #475569;
    flex: 1;
}

.dn-contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: stretch;
}

.dn-contact-info-panel {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--dn-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dn-contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dn-contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.dn-contact-detail-item i {
    font-size: 1.25rem;
    color: var(--dn-accent, #2563EB);
    margin-top: 3px;
    width: 22px;
    text-align: center;
}

.dn-contact-detail-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
    color: #334155;
}

.dn-contact-detail-item strong {
    color: var(--dn-primary, #0A192F);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .dn-blog-grid, .dn-contact-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dn-client-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dn-blog-reader-layout, .dn-contact-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dn-portfolio-grid,
    .dn-testimonial-grid,
    .dn-blog-grid,
    .dn-contact-quick-grid {
        grid-template-columns: 1fr;
    }
    .dn-portfolio-actions {
        grid-template-columns: 1fr;
    }
}


/* ============================================================================
   Animated Movable Client Logos Marquee (.dn-marquee-wrapper)
   ============================================================================ */
.dn-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 22px 0;
    box-shadow: var(--dn-shadow);
    margin-bottom: 28px;
}

.dn-marquee-wrapper::before,
.dn-marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
    z-index: 2;
    pointer-events: none;
}

.dn-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #FFFFFF 0%, rgba(255,255,255,0) 100%);
}

.dn-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #FFFFFF 0%, rgba(255,255,255,0) 100%);
}

.dn-marquee-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: dnMarqueeScroll 26s linear infinite;
}

.dn-marquee-wrapper:hover .dn-marquee-track {
    animation-play-state: paused;
}

.dn-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 10px 18px;
    height: 78px;
    min-width: 210px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dn-marquee-item:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--dn-accent, #2563EB);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

.dn-marquee-item img {
    max-height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@keyframes dnMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================================================
   Dual-Mode Live Admin + Google AI Studio Auto-Reply Chat Widget
   ============================================================================ */
.dn-ai-widget-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    font-family: 'Inter', sans-serif;
}

.dn-ai-float-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, var(--dn-primary, #0A192F) 0%, var(--dn-accent, #2563EB) 100%);
    color: #FFFFFF;
    font-size: 1.65rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(10, 25, 47, 0.42);
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.dn-ai-float-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.55);
}

.dn-ai-pulse-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #10B981;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 999px;
    border: 2px solid #FFFFFF;
    letter-spacing: 0.04em;
}

.dn-ai-chat-window {
    position: absolute;
    bottom: 78px;
    right: 0;
    width: 370px;
    max-width: calc(100vw - 32px);
    height: 510px;
    max-height: calc(100vh - 120px);
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #CBD5E1;
    box-shadow: 0 24px 60px rgba(10, 25, 47, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.96);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.dn-ai-chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dn-ai-chat-header {
    background: linear-gradient(135deg, var(--dn-primary, #0A192F) 0%, var(--dn-secondary, #1E3A8A) 100%);
    color: #FFFFFF;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dn-ai-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dn-ai-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38BDF8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.dn-ai-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #0A192F;
    background: #38BDF8;
}

.dn-ai-status-dot.online {
    background: #22C55E;
}

.dn-ai-header-info strong {
    display: block;
    font-size: 0.95rem;
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dn-ai-header-info span {
    display: block;
    font-size: 0.74rem;
    color: #93C5FD;
}

.dn-ai-close-btn {
    background: none;
    border: none;
    color: #CBD5E1;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.dn-ai-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dn-chat-bubble {
    max-width: 85%;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    white-space: pre-line;
    position: relative;
}

.dn-chat-bubble.customer {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--dn-secondary, #1E3A8A), var(--dn-accent, #2563EB));
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

.dn-chat-bubble.admin {
    align-self: flex-start;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    border-bottom-left-radius: 4px;
}

.dn-chat-bubble.ai {
    align-self: flex-start;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #0F172A;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.dn-chat-sender-tag {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    opacity: 0.8;
}

.dn-ai-typing {
    padding: 8px 16px;
    background: #F1F5F9;
    font-size: 0.78rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dn-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dn-accent, #2563EB);
    animation: dnBlink 1.2s infinite ease-in-out;
}

@keyframes dnBlink {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

.dn-ai-chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
}

.dn-ai-chat-input-area input {
    flex: 1;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #F8FAFC;
}

.dn-ai-chat-input-area input:focus {
    outline: none;
    border-color: var(--dn-accent, #2563EB);
    background: #FFFFFF;
}

.dn-ai-chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--dn-accent, #2563EB);
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dn-ai-chat-footer {
    padding: 8px 14px;
    background: #F1F5F9;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #64748B;
}

.dn-ai-chat-footer a {
    color: #15803D;
    font-weight: 700;
}


/* ============================================================================
   Center-Aligned User-Friendly Marquee (Square Photo + Landscape Logo)
   ============================================================================ */
.dn-marquee-center-shell {
    max-width: 1180px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: center;
}

.dn-marquee-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 12px 22px !important;
    height: 84px !important;
    min-width: 245px !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 6px 18px rgba(10, 25, 47, 0.05) !important;
}

.dn-marquee-sq-img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.dn-marquee-land-img {
    max-height: 48px !important;
    width: auto !important;
    max-width: 145px !important;
    object-fit: contain !important;
}

/* ============================================================================
   Multimodal Chat Toolbar Buttons (Attach Doc, Voice Mic, TTS Readout)
   ============================================================================ */
.dn-chat-tool-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
    border: 1px solid #CBD5E1 !important;
    background: #F8FAFC !important;
    color: #334155 !important;
    font-size: 0.92rem !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.dn-chat-tool-btn:hover,
.dn-chat-tool-btn.active {
    background: #EFF6FF !important;
    border-color: #2563EB !important;
    color: #2563EB !important;
}

.dn-chat-tool-btn.recording {
    background: #DC2626 !important;
    border-color: #DC2626 !important;
    color: #FFFFFF !important;
    animation: dnBlink 1s infinite;
}

/* ============================================================================
   Mobile-Friendly Topbar (Kalmunai, Phone, Email, Offers, Track Order, FAQ)
   ============================================================================ */
@media (max-width: 768px) {
    .dn-topbar {
        padding: 8px 0 !important;
        font-size: 0.75rem !important;
    }
    .dn-topbar-inner {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        text-align: center !important;
    }
    .dn-topbar-left,
    .dn-topbar-right {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px 12px !important;
        width: 100% !important;
    }
    .dn-topbar-right {
        padding-top: 5px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    .dn-topbar .dn-top-link {
        background: rgba(255, 255, 255, 0.08);
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 0.73rem;
    }
}


/* ============================================================================
   v8.0 Center-Aligned Marquee (Single Landscape Logo OR Single Square Photo)
   ============================================================================ */
.dn-marquee-center-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dn-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 26px 0;
    box-shadow: 0 10px 30px -10px rgba(10, 25, 47, 0.08);
}

.dn-marquee-track {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    width: max-content !important;
    margin: 0 auto !important;
    animation: dnMarqueeScroll 28s linear infinite;
}

.dn-marquee-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 24px !important;
    height: 112px !important;
    min-width: 215px !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.04) !important;
    text-align: center !important;
}

.dn-marquee-img-box {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.dn-marquee-land-only {
    max-height: 52px !important;
    width: auto !important;
    max-width: 165px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

.dn-marquee-sq-only {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.dn-marquee-caption {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    text-align: center;
    white-space: nowrap;
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
}
