/* ==========================================================================
   Apple Tech Portal - Enterprise Design System (CSS)
   Engineered for EverPOS, RestoRx & Hardware Webshop
   ========================================================================== */

:root {
    --primary: #0056fe;
    --primary-hover: #0045cb;
    --primary-glow: rgba(0, 86, 254, 0.35);
    --secondary: #00d4ff;
    --secondary-glow: rgba(0, 212, 255, 0.3);
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-purple: #8b5cf6;
    
    --bg-dark: #070a13;
    --bg-dark-2: #0d1222;
    --bg-card: rgba(17, 24, 43, 0.7);
    --bg-card-hover: rgba(25, 34, 61, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(0, 212, 255, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 35px -5px var(--primary-glow);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

button, input, select, textarea {
    font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 20%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0056fe 60%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

/* Navbar */
.portal-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

.portal-navbar.scrolled {
    background: rgba(7, 10, 19, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #00d4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary-glow);
    color: #fff;
    font-size: 1.3rem;
}

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

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.1;
}

.brand-title span {
    color: var(--secondary);
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Nav Menu Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-link {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Nav Badges */
.nav-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.badge-live {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pos {
    background: rgba(0, 86, 254, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(0, 86, 254, 0.35);
}

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

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #0d1222;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-item-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(4px);
}

.dropdown-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 86, 254, 0.15);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.dropdown-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.dropdown-item-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Navbar Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

.btn-login-outline:hover {
    border-color: var(--secondary);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, #0099ff 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--primary-glow);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 86, 254, 0.5);
    background: linear-gradient(135deg, #0066ff 0%, #00b4ff 100%);
}

.btn-emerald-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-emerald-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.45);
}

/* Mobile Hamburger */
.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px;
}

@media (max-width: 1024px) {
    .nav-menu, .nav-actions .btn-login-outline {
        display: none;
    }
    .mobile-toggle-btn {
        display: block;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #090d16;
    border-left: 1px solid var(--border-glass);
    padding: 2rem 1.5rem;
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 115px;
    padding-bottom: 60px;
    background: radial-gradient(circle at 50% 10%, rgba(0, 86, 254, 0.18) 0%, transparent 60%);
    overflow: hidden;
}

.hero-section .container {
    max-width: 1440px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--secondary);
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.35rem;
    }
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/* Hero Image Container */
.hero-media-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 86, 254, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-media-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-media-wrapper:hover .hero-media-img {
    transform: scale(1.025);
}

.hero-floating-stat {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(13, 18, 34, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.stat-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Hero Carousel & Slider Elements */
.hero-slider-wrap {
    position: relative;
    width: 100%;
}

.hero-slide {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: heroFadeSlideIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroFadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.995);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 25;
}

.hero-slider-tabs {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 18, 34, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
    position: relative;
    z-index: 26;
}

.hero-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-tab-btn:hover {
    color: #fff;
}

.hero-tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-tab-btn.active.tab-everpos {
    background: linear-gradient(135deg, rgba(0, 86, 254, 0.85) 0%, rgba(0, 212, 255, 0.85) 100%);
    box-shadow: 0 4px 15px rgba(0, 86, 254, 0.4);
}

.hero-tab-btn.active.tab-restorx {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.85) 0%, rgba(239, 68, 68, 0.85) 100%);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
}

.hero-nav-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 26;
}

.hero-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    user-select: none;
    -webkit-user-select: none;
}

.hero-arrow-btn i {
    pointer-events: none;
}

.hero-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.text-gradient-restorx {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 45%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-orange-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-orange-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(234, 88, 12, 0.6);
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: #fff;
}

/* Stats Counter Bar */
.stats-bar-section {
    background: #0d1222;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.stat-box {
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.85rem;
    }
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Dual Software Showcase Cards */
.software-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
}

@media (max-width: 900px) {
    .software-showcase-grid {
        grid-template-columns: 1fr;
    }
}

.software-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 86, 254, 0.15);
}

.software-media-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.software-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.software-card:hover .software-media-img {
    transform: scale(1.05);
}

.software-badge-float {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.software-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.software-brand {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.software-type {
    font-size: 0.88rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.software-bullets {
    list-style: none;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.software-bullets li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.software-bullets li i {
    color: var(--accent-emerald);
    font-size: 0.9rem;
}

/* Hardware Catalog Grid & Cards */
.catalog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: #0d1222;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cat-pill {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.search-input-box {
    position: relative;
    min-width: 250px;
}

.search-input-box input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    background: rgba(7, 10, 19, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.search-input-box input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary-glow);
}

.search-input-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: #0d1222;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.product-thumb-wrap {
    height: 190px;
    background: #111827;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    overflow: hidden;
}

.product-thumb {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-thumb {
    transform: scale(1.08);
}

.product-badge-sync {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.product-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.74rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.product-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-curr {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.btn-whatsapp-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-whatsapp-order:hover {
    background: #20bd5a;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    color: #fff;
}

/* Client Showcase Grid & Cards */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}

.client-card {
    background: #0d1222;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.client-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.client-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.client-avatar-box {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 86, 254, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--secondary);
    font-size: 1.1rem;
}

.client-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.tag-restorx {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-everpos {
    background: rgba(0, 86, 254, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(0, 86, 254, 0.3);
}

.client-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.client-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.client-stars {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.client-quote {
    font-size: 0.84rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
    margin-top: auto;
}

/* Floating WhatsApp Radar Button */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1500;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: radar-pulse 2s infinite ease-out;
}

@keyframes radar-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Lead Capture & Demo Form Section (Fully Responsive) */
.cta-banner-section {
    position: relative;
    background: linear-gradient(135deg, #091228 0%, #060b18 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.cta-banner-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.cta-banner-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-banner-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-contacts-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.cta-contact-item:hover {
    transform: translateY(-2px);
}

.cta-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cta-icon-phone {
    background: rgba(0, 212, 255, 0.15);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.cta-icon-wa {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
}

.cta-contact-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.cta-contact-value {
    font-weight: 700;
    color: #fff;
    font-size: 0.98rem;
}

.cta-form-card {
    background: rgba(7, 10, 19, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.cta-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.cta-form-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 1.3rem;
}

.cta-form-group {
    margin-bottom: 1rem;
}

.cta-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    background: rgba(13, 18, 34, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}

.form-control-custom:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 12px var(--secondary-glow);
}

@media (max-width: 992px) {
    .cta-banner-section {
        padding: 2.8rem 2rem;
    }
    .cta-banner-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .cta-banner-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .cta-banner-section {
        padding: 1.8rem 1.2rem;
        border-radius: var(--radius-md);
    }
    .cta-banner-grid {
        gap: 2rem;
    }
    .cta-banner-title {
        font-size: 1.55rem;
        line-height: 1.25;
        margin-bottom: 0.8rem;
    }
    .cta-banner-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    .cta-contacts-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .cta-form-card {
        padding: 1.4rem 1rem;
    }
    .cta-form-title {
        font-size: 1.15rem;
    }
    .cta-submit-btn {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
}

/* Footer */
.portal-footer {
    background: #04070e;
    border-top: 1px solid var(--border-glass);
    padding: 4.5rem 0 2rem 0;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.4rem;
}

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

.footer-links-list li {
    margin-bottom: 0.7rem;
}

.footer-links-list a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links-list a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   MOBILE & RESPONSIVE BUTTON / NAVIGATION ENHANCEMENTS
   ========================================================================== */

/* Navbar Free Demo Button */
.nav-btn-demo {
    white-space: nowrap;
}
.nav-btn-text-mobile {
    display: none;
}
.nav-btn-text-desktop {
    display: inline;
}

/* Hero Slider Tabs Text Switch */
.hero-tab-text-short {
    display: none;
}
.hero-tab-text-full {
    display: inline;
}

/* Software Showcase Card Actions */
.software-card-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
    align-items: center;
}
.software-card-actions .btn-software-explore {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    padding: 12px 18px;
    font-size: 0.9rem;
}
.software-card-actions .btn-software-demo {
    padding: 12px 20px;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Modern Dark Glassmorphism Pagination */
.portal-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 18, 34, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.portal-pagination .pagination-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.portal-pagination .pagination-btn:hover:not(.disabled) {
    background: var(--primary);
    border-color: var(--secondary);
    color: #fff;
    transform: scale(1.08);
}

.portal-pagination .pagination-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.portal-pagination .pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-pagination .pagination-num {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.portal-pagination .pagination-num:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.portal-pagination .pagination-num.active {
    background: linear-gradient(135deg, var(--primary) 0%, #00d4ff 100%);
    color: #fff;
    font-weight: 800;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 86, 254, 0.45);
}

.portal-pagination .pagination-ellipsis {
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 0 4px;
}

.portal-pagination .pagination-mobile-info {
    display: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 8px;
    white-space: nowrap;
}

/* Strict constraint on ANY pagination SVG arrows */
nav[role="navigation"] svg,
.pagination svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Hide duplicate Tailwind pagination text wrappers if rendered */
nav[role="navigation"] > div:first-child.flex.justify-between.flex-1 {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Mobile Viewport Adjustments (<= 768px and <= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Hero Controls Responsive Layout */
    .hero-slider-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .hero-slider-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-radius: 14px;
        padding: 4px;
        box-sizing: border-box;
    }

    .hero-tab-btn {
        justify-content: center;
        padding: 9px 8px;
        font-size: 0.78rem;
        border-radius: 10px;
        white-space: nowrap;
        text-align: center;
        gap: 6px;
    }

    .hero-tab-text-full {
        display: none;
    }
    .hero-tab-text-short {
        display: inline;
    }

    .hero-nav-arrows {
        justify-content: center;
        gap: 1.2rem;
    }

    .hero-arrow-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    /* Pagination Mobile */
    .portal-pagination .pagination-numbers {
        display: none;
    }
    .portal-pagination .pagination-mobile-info {
        display: inline-block;
    }
}

@media (max-width: 640px) {
    /* Navbar Mobile Optimization */
    .navbar-inner {
        height: 64px;
    }

    .brand-logo img {
        height: 32px !important;
        max-width: 145px !important;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-btn-demo {
        padding: 7px 14px !important;
        font-size: 0.8rem !important;
        font-weight: 700;
        border-radius: var(--radius-full);
        gap: 5px;
    }

    .nav-btn-text-desktop {
        display: none;
    }
    .nav-btn-text-mobile {
        display: inline;
    }

    .mobile-toggle-btn {
        padding: 4px;
        font-size: 1.35rem;
    }

    /* Hero Action Buttons on Mobile */
    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    .hero-actions a,
    .hero-actions button {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 13px 20px !important;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    /* Software Cards Buttons Stacking */
    .software-card-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    .software-card-actions .btn-software-explore,
    .software-card-actions .btn-software-demo {
        width: 100%;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    /* Navbar on very narrow screens (<= 380px) */
    .brand-logo img {
        height: 28px !important;
        max-width: 125px !important;
    }
    .nav-btn-demo {
        padding: 6px 10px !important;
        font-size: 0.74rem !important;
    }

    /* General Button Polish on small mobile */
    .btn-primary-glow,
    .btn-orange-glow,
    .btn-emerald-glow,
    .btn-login-outline {
        white-space: nowrap;
    }
}
