/* ==========================================================================
   JEXPOT TEMPLATE — Main Stylesheet
   Joomla 6 | Clean Modern Architecture (No Gradients)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Colors — overridden dynamically by template params */
    --jexpot-primary: #2563eb;
    --jexpot-primary-light: #3b82f6;
    --jexpot-primary-dark: #1d4ed8;
    --jexpot-secondary: #0ea5e9;
    --jexpot-secondary-light: #38bdf8;

    --jexpot-bg: #f8fafc;
    --jexpot-bg-alt: #f1f5f9;
    --jexpot-surface: #ffffff;
    --jexpot-header-bg: #ffffff;
    --jexpot-footer-bg: #0f172a;
    --jexpot-footer-text: #e2e8f0;

    --jexpot-text: #0f172a;
    --jexpot-text-secondary: #475569;
    --jexpot-text-muted: #94a3b8;

    --jexpot-border: #e2e8f0;
    --jexpot-border-light: #f1f5f9;

    /* Typography */
    --jexpot-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --jexpot-font-size-base: 16px;
    --jexpot-font-size-sm: 0.875rem;
    --jexpot-font-size-xs: 0.75rem;
    --jexpot-font-size-lg: 1.125rem;
    --jexpot-font-size-xl: 1.25rem;
    --jexpot-line-height: 1.7;
    --jexpot-heading-weight: 800;

    /* Spacing */
    --jexpot-space-xs: 0.25rem;
    --jexpot-space-sm: 0.5rem;
    --jexpot-space-md: 1rem;
    --jexpot-space-lg: 1.5rem;
    --jexpot-space-xl: 2rem;
    --jexpot-space-2xl: 3rem;
    --jexpot-space-3xl: 4rem;
    --jexpot-space-4xl: 6rem;

    /* Layout */
    --jexpot-container-width: 1200px;
    --jexpot-container-padding: 1.5rem;
    --jexpot-sidebar-width: 300px;
    --jexpot-header-height: 72px;

    /* Borders & Shadows */
    --jexpot-radius-sm: 6px;
    --jexpot-radius-md: 10px;
    --jexpot-radius-lg: 16px;
    --jexpot-radius-xl: 20px;
    --jexpot-radius-full: 9999px;

    --jexpot-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --jexpot-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --jexpot-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --jexpot-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --jexpot-transition-fast: 150ms ease;
    --jexpot-transition-base: 250ms ease;
    --jexpot-transition-slow: 350ms ease;

    /* Z-index */
    --jexpot-z-header: 100;
    --jexpot-z-dropdown: 200;
    --jexpot-z-overlay: 300;
    --jexpot-z-modal: 400;
}

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

html {
    font-size: var(--jexpot-font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--jexpot-font-family);
    font-size: 1rem;
    line-height: var(--jexpot-line-height);
    color: var(--jexpot-text);
    background-color: var(--jexpot-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--jexpot-primary);
    text-decoration: none;
    transition: color var(--jexpot-transition-fast);
}

a:hover {
    color: var(--jexpot-primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--jexpot-primary);
    outline-offset: 2px;
    border-radius: var(--jexpot-radius-sm);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--jexpot-heading-weight);
    line-height: 1.18;
    color: var(--jexpot-text);
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--jexpot-space-md);
}

ul,
ol {
    padding-left: var(--jexpot-space-xl);
}

blockquote {
    border-left: 4px solid var(--jexpot-primary);
    padding: var(--jexpot-space-md) var(--jexpot-space-lg);
    margin: var(--jexpot-space-lg) 0;
    background: var(--jexpot-bg-alt);
    border-radius: 0 var(--jexpot-radius-md) var(--jexpot-radius-md) 0;
    color: var(--jexpot-text-secondary);
    font-style: italic;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table th,
table td {
    padding: var(--jexpot-space-sm) var(--jexpot-space-md);
    text-align: left;
    border-bottom: 1px solid var(--jexpot-border);
}

table th {
    font-weight: 600;
    background-color: var(--jexpot-bg-alt);
}

table tr:hover {
    background-color: var(--jexpot-bg-alt);
}

/* --------------------------------------------------------------------------
   3. Utility Classes
   -------------------------------------------------------------------------- */
.jexpot-container {
    width: 100%;
    max-width: var(--jexpot-container-width);
    margin: 0 auto;
    padding: 0 var(--jexpot-container-padding);
}

.jexpot-container--fluid {
    max-width: 100%;
}

.jexpot-sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Language switcher */
.jexpot-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--jexpot-surface);
    padding: 0.25rem 0.5rem;
    border-radius: var(--jexpot-radius-full);
    border: 1px solid var(--jexpot-border);
    font-size: 0.8125rem;
    font-weight: 600;
}

.jexpot-lang-switcher a {
    color: var(--jexpot-text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--jexpot-radius-full);
    text-decoration: none;
    transition: all var(--jexpot-transition-fast);
}

.jexpot-lang-switcher a:hover,
.jexpot-lang-switcher a.active {
    color: var(--jexpot-primary);
    background: var(--jexpot-bg-alt);
}

/* Accent text utility (Solid primary) */
.jexpot-gradient-text {
    color: var(--jexpot-primary);
    display: inline;
}

/* Badge component */
.jexpot-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--jexpot-radius-full);
    background: rgba(37, 99, 235, 0.08);
    color: var(--jexpot-primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.jexpot-badge--pulse::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 0.25rem;
}

/* Section header */
.jexpot-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--jexpot-space-3xl);
}

.jexpot-section-header .jexpot-badge {
    margin-bottom: var(--jexpot-space-md);
}

.jexpot-section-header h2 {
    margin-bottom: var(--jexpot-space-md);
}

.jexpot-section-header p {
    color: var(--jexpot-text-secondary);
    font-size: var(--jexpot-font-size-lg);
    line-height: 1.65;
    margin-bottom: 0;
}

/* Buttons */
.jexpot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--jexpot-font-family);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: var(--jexpot-radius-md);
    cursor: pointer;
    transition: all var(--jexpot-transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.jexpot-btn--primary {
    background: var(--jexpot-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.jexpot-btn--primary:hover {
    background: var(--jexpot-primary-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.jexpot-btn--secondary {
    background: var(--jexpot-surface);
    color: var(--jexpot-text) !important;
    border: 1px solid var(--jexpot-border);
    box-shadow: var(--jexpot-shadow-sm);
}

.jexpot-btn--secondary:hover {
    background: var(--jexpot-bg-alt);
    border-color: var(--jexpot-primary);
    color: var(--jexpot-primary) !important;
    transform: translateY(-1px);
    box-shadow: var(--jexpot-shadow-md);
}

/* --------------------------------------------------------------------------
   4. Topbar
   -------------------------------------------------------------------------- */
.jexpot-topbar {
    background: var(--jexpot-footer-bg);
    color: var(--jexpot-footer-text);
    font-size: var(--jexpot-font-size-xs);
    padding: var(--jexpot-space-xs) 0;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jexpot-topbar .jexpot-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--jexpot-space-md);
}

.jexpot-topbar a {
    color: var(--jexpot-footer-text);
    opacity: 0.85;
    transition: opacity var(--jexpot-transition-fast);
}

.jexpot-topbar a:hover {
    opacity: 1;
    color: #fff;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.jexpot-header {
    background: var(--jexpot-header-bg);
    border-bottom: 1px solid var(--jexpot-border);
    position: relative;
    z-index: var(--jexpot-z-header);
    transition: box-shadow var(--jexpot-transition-base), background var(--jexpot-transition-base);
}

.jexpot-header--sticky {
    position: sticky;
    top: 0;
}

.jexpot-header--scrolled {
    box-shadow: var(--jexpot-shadow-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.jexpot-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--jexpot-header-height);
    gap: var(--jexpot-space-xl);
}

/* Logo */
.jexpot-logo {
    display: flex;
    align-items: center;
    gap: var(--jexpot-space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.jexpot-logo__image {
    height: 70px;
    width: auto;
    max-height: 70px;
}

.jexpot-logo__text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--jexpot-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.jexpot-logo__text span {
    color: var(--jexpot-primary);
}

.jexpot-logo__tagline {
    font-size: var(--jexpot-font-size-xs);
    color: var(--jexpot-text-muted);
    display: block;
    margin-top: 2px;
}

/* Navigation */
.jexpot-nav {
    display: flex;
    align-items: center;
    gap: var(--jexpot-space-sm);
    flex: 1;
    justify-content: flex-end;
}

.jexpot-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--jexpot-space-xs);
}

.jexpot-nav a {
    display: inline-flex;
    align-items: center;
    padding: var(--jexpot-space-sm) var(--jexpot-space-md);
    color: var(--jexpot-text-secondary);
    font-size: var(--jexpot-font-size-sm);
    font-weight: 500;
    border-radius: var(--jexpot-radius-md);
    transition: all var(--jexpot-transition-fast);
    white-space: nowrap;
}

.jexpot-nav a:hover,
.jexpot-nav a:focus {
    color: var(--jexpot-primary);
    background: var(--jexpot-bg-alt);
}

.jexpot-nav li.active>a,
.jexpot-nav li.current>a {
    color: var(--jexpot-primary);
    background: rgba(37, 99, 235, 0.08);
    font-weight: 600;
}

/* Dropdown */
.jexpot-nav li.deeper {
    position: relative;
}

.jexpot-nav li.deeper>ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    padding: var(--jexpot-space-sm);
    background: var(--jexpot-surface);
    border: 1px solid var(--jexpot-border);
    border-radius: var(--jexpot-radius-md);
    box-shadow: var(--jexpot-shadow-lg);
    flex-direction: column;
    z-index: var(--jexpot-z-dropdown);
    margin-top: 6px;
}

/* Invisible bridge so moving cursor between menu item and dropdown never loses hover */
.jexpot-nav li.deeper>ul::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

.jexpot-nav li.deeper:hover>ul,
.jexpot-nav li.deeper:focus-within>ul {
    display: flex;
}

.jexpot-nav li.deeper>ul li {
    width: 100%;
}

.jexpot-nav li.deeper>ul a {
    display: flex;
    align-items: center;
    padding: var(--jexpot-space-sm) var(--jexpot-space-md);
    border-radius: var(--jexpot-radius-sm);
    width: 100%;
    color: var(--jexpot-text-secondary);
    transition: all var(--jexpot-transition-fast);
}

.jexpot-nav li.deeper>ul a:hover,
.jexpot-nav li.deeper>ul a:focus {
    color: var(--jexpot-primary);
    background: var(--jexpot-bg-alt);
}

/* Search */
.jexpot-header__search {
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.jexpot-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--jexpot-space-sm);
    border-radius: var(--jexpot-radius-md);
    transition: background var(--jexpot-transition-fast);
    z-index: calc(var(--jexpot-z-overlay) + 1);
}

.jexpot-burger:hover {
    background: var(--jexpot-bg-alt);
}

.jexpot-burger__line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--jexpot-text);
    border-radius: 2px;
    transition: all var(--jexpot-transition-base);
    transform-origin: center;
}

.jexpot-burger--active .jexpot-burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.jexpot-burger--active .jexpot-burger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.jexpot-burger--active .jexpot-burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.jexpot-hero {
    position: relative;
    padding: var(--jexpot-space-4xl) 0;
    background: var(--jexpot-bg);
}

.jexpot-hero__orb {
    display: none;
}

.jexpot-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--jexpot-space-3xl);
    align-items: center;
    max-width: var(--jexpot-container-width);
    margin: 0 auto;
    padding: 0 var(--jexpot-container-padding);
}

.jexpot-hero__content {
    max-width: 600px;
}

.jexpot-hero__content h1 {
    margin-bottom: var(--jexpot-space-lg);
    line-height: 1.15;
}

.jexpot-hero__lead {
    font-size: var(--jexpot-font-size-lg);
    color: var(--jexpot-text-secondary);
    line-height: 1.65;
    margin-bottom: var(--jexpot-space-xl);
}

.jexpot-hero__actions {
    display: flex;
    gap: var(--jexpot-space-md);
    flex-wrap: wrap;
    margin-bottom: var(--jexpot-space-2xl);
}

/* Hero Stats */
.jexpot-hero-stats {
    display: flex;
    gap: 1px;
    background: var(--jexpot-border);
    border-radius: var(--jexpot-radius-lg);
    overflow: hidden;
    box-shadow: var(--jexpot-shadow-sm);
    border: 1px solid var(--jexpot-border);
}

.jexpot-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--jexpot-space-lg) var(--jexpot-space-md);
    background: var(--jexpot-surface);
    text-align: center;
    gap: 0.25rem;
}

.jexpot-stat-item strong {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--jexpot-primary);
    line-height: 1.2;
}

.jexpot-stat-item span {
    font-size: var(--jexpot-font-size-xs);
    color: var(--jexpot-text-muted);
    font-weight: 500;
}

/* Hero Visual — Code Card */
.jexpot-hero__visual {
    display: flex;
    justify-content: center;
}

.jexpot-hero-card {
    width: 100%;
    max-width: 460px;
    background: var(--jexpot-surface);
    border-radius: var(--jexpot-radius-xl);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--jexpot-border);
    box-shadow: var(--jexpot-shadow-lg);
    transition: transform var(--jexpot-transition-base), box-shadow var(--jexpot-transition-base);
}

.jexpot-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--jexpot-shadow-xl);
}

.jexpot-hero-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--jexpot-space-md) var(--jexpot-space-lg);
    background: var(--jexpot-bg-alt);
    border-bottom: 1px solid var(--jexpot-border);
}

.jexpot-hero-card__dots {
    display: flex;
    gap: 6px;
}

.jexpot-hero-card__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.jexpot-hero-card__dots span:nth-child(1) {
    background: #ef4444;
}

.jexpot-hero-card__dots span:nth-child(2) {
    background: #f59e0b;
}

.jexpot-hero-card__dots span:nth-child(3) {
    background: #10b981;
}

.jexpot-hero-card__body {
    padding: var(--jexpot-space-lg);
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--jexpot-text);
    line-height: 1.7;
}

/* Version pills */
.jexpot-version-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: var(--jexpot-space-md) 0;
}

.jexpot-version-pill {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--jexpot-radius-full);
    background: var(--jexpot-bg-alt);
    color: var(--jexpot-text-muted);
    border: 1px solid var(--jexpot-border);
    transition: all var(--jexpot-transition-fast);
}

.jexpot-version-pill--active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--jexpot-primary);
    border-color: rgba(37, 99, 235, 0.3);
}

/* --------------------------------------------------------------------------
   7. Breadcrumbs
   -------------------------------------------------------------------------- */
.jexpot-breadcrumbs {
    padding: var(--jexpot-space-md) 0;
    font-size: var(--jexpot-font-size-sm);
    color: var(--jexpot-text-muted);
}

.jexpot-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    gap: var(--jexpot-space-xs);
}

.jexpot-breadcrumbs a {
    color: var(--jexpot-text-secondary);
}

.jexpot-breadcrumbs a:hover {
    color: var(--jexpot-primary);
}

/* --------------------------------------------------------------------------
   8. Main Content Area
   -------------------------------------------------------------------------- */
.jexpot-main {
    flex: 1;
    padding: var(--jexpot-space-xl) 0 var(--jexpot-space-4xl);
}

.jexpot-main__top,
.jexpot-main__bottom {
    margin-bottom: var(--jexpot-space-2xl);
}

.jexpot-main__bottom {
    margin-bottom: 0;
    margin-top: var(--jexpot-space-2xl);
}

/* Layout Grid */
.jexpot-layout {
    display: grid;
    gap: var(--jexpot-space-2xl);
}

.jexpot-layout--sidebar-left {
    grid-template-columns: var(--jexpot-sidebar-width) 1fr;
}

.jexpot-layout--sidebar-right {
    grid-template-columns: 1fr var(--jexpot-sidebar-width);
}

.jexpot-layout--both-sidebars {
    grid-template-columns: var(--jexpot-sidebar-width) 1fr var(--jexpot-sidebar-width);
}

.jexpot-content {
    min-width: 0;
}

/* Content typography */
.jexpot-content h1,
.jexpot-content h2,
.jexpot-content h3,
.jexpot-content h4 {
    margin-top: var(--jexpot-space-2xl);
    margin-bottom: var(--jexpot-space-md);
}

.jexpot-content h1:first-child,
.jexpot-content h2:first-child,
.jexpot-content h3:first-child {
    margin-top: 0;
}

.jexpot-content img {
    border-radius: var(--jexpot-radius-md);
    margin: var(--jexpot-space-lg) 0;
}

/* --------------------------------------------------------------------------
   9. Services Grid
   -------------------------------------------------------------------------- */
.jexpot-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--jexpot-space-lg);
}

.jexpot-service-card {
    background: var(--jexpot-surface);
    border: 1px solid var(--jexpot-border);
    border-radius: var(--jexpot-radius-lg);
    padding: var(--jexpot-space-xl);
    position: relative;
    transition: all var(--jexpot-transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: var(--jexpot-shadow-sm);
}

.jexpot-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--jexpot-shadow-lg);
    border-color: var(--jexpot-primary-light);
}

.jexpot-service-card__icon-wrap {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--jexpot-radius-md);
    background: rgba(37, 99, 235, 0.08);
    color: var(--jexpot-primary);
    margin-bottom: var(--jexpot-space-lg);
    font-size: 1.5rem;
    transition: all var(--jexpot-transition-base);
}

.jexpot-service-card:hover .jexpot-service-card__icon-wrap {
    background: var(--jexpot-primary);
    color: #ffffff;
}

.jexpot-service-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--jexpot-space-sm);
}

.jexpot-service-card>p {
    color: var(--jexpot-text-secondary);
    font-size: var(--jexpot-font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--jexpot-space-md);
}

.jexpot-service-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--jexpot-space-lg);
    flex: 1;
}

.jexpot-service-card__features li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.25rem;
    font-size: var(--jexpot-font-size-sm);
    color: var(--jexpot-text-secondary);
    line-height: 1.5;
}

.jexpot-service-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.35rem;
    font-weight: 700;
    color: #10b981;
    font-size: 0.85rem;
}

.jexpot-service-card__link {
    font-size: var(--jexpot-font-size-sm);
    font-weight: 600;
    color: var(--jexpot-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    transition: all var(--jexpot-transition-fast);
}

.jexpot-service-card__link:hover {
    gap: 0.5rem;
    color: var(--jexpot-primary-dark);
}

/* --------------------------------------------------------------------------
   10. Why Us Section
   -------------------------------------------------------------------------- */
.jexpot-why-section {
    padding: var(--jexpot-space-3xl) 0;
    position: relative;
}

.jexpot-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--jexpot-space-lg);
}

.jexpot-why-card {
    background: var(--jexpot-surface);
    border: 1px solid var(--jexpot-border);
    border-radius: var(--jexpot-radius-lg);
    padding: var(--jexpot-space-xl);
    transition: all var(--jexpot-transition-base);
    box-shadow: var(--jexpot-shadow-sm);
}

.jexpot-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--jexpot-shadow-lg);
    border-color: var(--jexpot-primary-light);
}

.jexpot-why-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--jexpot-radius-md);
    background: var(--jexpot-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: var(--jexpot-space-lg);
}

.jexpot-why-card h4 {
    font-size: 1.1rem;
    margin-bottom: var(--jexpot-space-sm);
}

.jexpot-why-card p {
    color: var(--jexpot-text-secondary);
    font-size: var(--jexpot-font-size-sm);
    line-height: 1.6;
    margin: 0;
}

/* --------------------------------------------------------------------------
   11. Audit Box (CTA Section)
   -------------------------------------------------------------------------- */
.jexpot-audit-box {
    position: relative;
    margin: var(--jexpot-space-3xl) 0;
}

.jexpot-audit-box__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    background: var(--jexpot-footer-bg);
    border-radius: var(--jexpot-radius-xl);
    overflow: hidden;
    box-shadow: var(--jexpot-shadow-xl);
}

.jexpot-audit-box__info {
    padding: var(--jexpot-space-3xl);
    color: #ffffff;
}

.jexpot-audit-box__info h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--jexpot-space-md);
}

.jexpot-audit-box__info>p {
    color: #94a3b8;
    font-size: var(--jexpot-font-size-lg);
    line-height: 1.65;
}

/* Audit checklist items */
.jexpot-audit-checklist {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.jexpot-audit-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jexpot-audit-check__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.jexpot-audit-check__text {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Audit Form */
.jexpot-audit-form {
    padding: var(--jexpot-space-3xl);
    background: rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
}

.jexpot-audit-form form {
    width: 100%;
}

.jexpot-form-group {
    margin-bottom: var(--jexpot-space-md);
}

.jexpot-form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: var(--jexpot-font-size-sm);
    font-weight: 600;
    color: #e2e8f0;
}

.jexpot-input,
.jexpot-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--jexpot-font-family);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--jexpot-radius-md);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: all var(--jexpot-transition-fast);
}

.jexpot-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.jexpot-input:focus,
.jexpot-select:focus {
    outline: none;
    border-color: var(--jexpot-primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.jexpot-select option {
    background: var(--jexpot-footer-bg);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   12. Sidebar
   -------------------------------------------------------------------------- */
.jexpot-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--jexpot-space-lg);
}

.jexpot-sidebar .moduletable {
    background: var(--jexpot-surface);
    border: 1px solid var(--jexpot-border);
    border-radius: var(--jexpot-radius-lg);
    padding: var(--jexpot-space-lg);
    transition: all var(--jexpot-transition-base);
    box-shadow: var(--jexpot-shadow-sm);
}

.jexpot-sidebar .moduletable:hover {
    box-shadow: var(--jexpot-shadow-md);
}

.jexpot-sidebar .moduletable h3 {
    font-size: var(--jexpot-font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jexpot-text-muted);
    margin: 0 0 var(--jexpot-space-md);
    padding-bottom: var(--jexpot-space-sm);
    border-bottom: 2px solid var(--jexpot-border-light);
    font-weight: 600;
}

.jexpot-sidebar ul {
    list-style: none;
    padding: 0;
}

.jexpot-sidebar ul li {
    border-bottom: 1px solid var(--jexpot-border-light);
}

.jexpot-sidebar ul li:last-child {
    border-bottom: none;
}

.jexpot-sidebar ul li a {
    display: block;
    padding: var(--jexpot-space-sm) 0;
    color: var(--jexpot-text-secondary);
    font-size: var(--jexpot-font-size-sm);
    transition: all var(--jexpot-transition-fast);
}

.jexpot-sidebar ul li a:hover {
    color: var(--jexpot-primary);
    padding-left: var(--jexpot-space-sm);
}

.jexpot-sidebar ul li.active a {
    color: var(--jexpot-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.jexpot-footer {
    background: var(--jexpot-footer-bg);
    color: var(--jexpot-footer-text);
    padding: var(--jexpot-space-3xl) 0 var(--jexpot-space-xl);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jexpot-footer a {
    color: var(--jexpot-footer-text);
    opacity: 0.75;
    transition: all var(--jexpot-transition-fast);
}

.jexpot-footer a:hover {
    opacity: 1;
    color: #ffffff;
}

.jexpot-footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--jexpot-space-2xl);
    margin-bottom: var(--jexpot-space-2xl);
}

.jexpot-footer .moduletable h3 {
    font-size: var(--jexpot-font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--jexpot-space-md);
    font-weight: 600;
}

.jexpot-footer .moduletable ul {
    list-style: none;
    padding: 0;
}

.jexpot-footer .moduletable ul li {
    margin-bottom: var(--jexpot-space-xs);
}

.jexpot-footer .moduletable ul li a {
    font-size: var(--jexpot-font-size-sm);
    padding: var(--jexpot-space-xs) 0;
    display: inline-block;
}

.jexpot-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--jexpot-space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--jexpot-space-md);
    font-size: var(--jexpot-font-size-sm);
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   14. Joomla System Messages
   -------------------------------------------------------------------------- */
#system-message-container {
    padding: var(--jexpot-space-md) 0;
}

.jexpot-messages .alert {
    padding: var(--jexpot-space-md) var(--jexpot-space-lg);
    border-radius: var(--jexpot-radius-md);
    margin-bottom: var(--jexpot-space-md);
    font-size: var(--jexpot-font-size-sm);
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--jexpot-space-sm);
}

.jexpot-messages .alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.jexpot-messages .alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.jexpot-messages .alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.jexpot-messages .alert-danger,
.jexpot-messages .alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* --------------------------------------------------------------------------
   15. Buttons (Joomla Core Overrides)
   -------------------------------------------------------------------------- */
.btn,
button[type="submit"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--jexpot-space-sm);
    padding: 0.625rem 1.25rem;
    font-family: var(--jexpot-font-family);
    font-size: var(--jexpot-font-size-sm);
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: var(--jexpot-radius-md);
    cursor: pointer;
    transition: all var(--jexpot-transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--jexpot-primary);
    color: #ffffff;
}

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

.btn-secondary {
    background: var(--jexpot-surface);
    color: var(--jexpot-text);
    border: 1px solid var(--jexpot-border);
}

.btn-secondary:hover {
    background: var(--jexpot-bg-alt);
    border-color: var(--jexpot-primary);
    color: var(--jexpot-primary);
}

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    font-family: var(--jexpot-font-family);
    font-size: 1rem;
    padding: 0.625rem var(--jexpot-space-md);
    border: 1px solid var(--jexpot-border);
    border-radius: var(--jexpot-radius-md);
    background: var(--jexpot-surface);
    color: var(--jexpot-text);
    transition: border-color var(--jexpot-transition-fast), box-shadow var(--jexpot-transition-fast);
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--jexpot-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------------------------------
   17. Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--jexpot-space-xs);
    padding: var(--jexpot-space-xl) 0;
    list-style: none;
    flex-wrap: wrap;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--jexpot-space-sm);
    border-radius: var(--jexpot-radius-md);
    font-size: var(--jexpot-font-size-sm);
    font-weight: 500;
    color: var(--jexpot-text-secondary);
    background: var(--jexpot-surface);
    border: 1px solid var(--jexpot-border);
    transition: all var(--jexpot-transition-fast);
}

.pagination li a:hover {
    background: var(--jexpot-bg-alt);
    border-color: var(--jexpot-primary);
    color: var(--jexpot-primary);
}

.pagination li.active span {
    background: var(--jexpot-primary);
    color: #ffffff;
    border-color: var(--jexpot-primary);
}

/* --------------------------------------------------------------------------
   18. Scroll Reveals
   -------------------------------------------------------------------------- */
.jexpot-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.jexpot-fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

.jexpot-stagger>* {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.jexpot-stagger--visible>*:nth-child(1) {
    transition-delay: 0ms;
    opacity: 1;
    transform: none;
}

.jexpot-stagger--visible>*:nth-child(2) {
    transition-delay: 60ms;
    opacity: 1;
    transform: none;
}

.jexpot-stagger--visible>*:nth-child(3) {
    transition-delay: 120ms;
    opacity: 1;
    transform: none;
}

.jexpot-stagger--visible>*:nth-child(4) {
    transition-delay: 180ms;
    opacity: 1;
    transform: none;
}

.jexpot-stagger--visible>*:nth-child(5) {
    transition-delay: 240ms;
    opacity: 1;
    transform: none;
}

.jexpot-card-stagger .jexpot-service-card,
.jexpot-card-stagger .jexpot-why-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.jexpot-card-stagger--visible .jexpot-service-card,
.jexpot-card-stagger--visible .jexpot-why-card {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   19. Mobile Overlay
   -------------------------------------------------------------------------- */
.jexpot-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--jexpot-z-overlay);
    opacity: 0;
    transition: opacity var(--jexpot-transition-base);
}

.jexpot-overlay--active {
    display: block;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   20. Responsive Design
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --jexpot-container-padding: 1.25rem;
        --jexpot-sidebar-width: 250px;
    }

    .jexpot-hero__inner {
        grid-template-columns: 1fr;
        gap: var(--jexpot-space-2xl);
        text-align: center;
    }

    .jexpot-hero__content {
        max-width: 640px;
        margin: 0 auto;
    }

    .jexpot-hero__actions {
        justify-content: center;
    }

    .jexpot-hero-stats {
        max-width: 500px;
        margin: 0 auto;
    }

    .jexpot-hero__visual {
        justify-content: center;
    }

    .jexpot-hero-card {
        max-width: 420px;
    }

    .jexpot-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jexpot-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jexpot-audit-box__inner {
        grid-template-columns: 1fr;
    }

    .jexpot-audit-form {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .jexpot-layout--both-sidebars {
        grid-template-columns: var(--jexpot-sidebar-width) 1fr;
    }

    .jexpot-layout--both-sidebars .jexpot-sidebar:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --jexpot-container-padding: 1rem;
        --jexpot-header-height: 60px;
        --jexpot-space-4xl: 3rem;
    }

    .jexpot-burger {
        display: flex;
    }

    .jexpot-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--jexpot-surface);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--jexpot-header-height) + var(--jexpot-space-lg)) var(--jexpot-space-lg) var(--jexpot-space-lg);
        z-index: var(--jexpot-z-overlay);
        box-shadow: var(--jexpot-shadow-xl);
        transition: right var(--jexpot-transition-slow);
        overflow-y: auto;
        justify-content: flex-start;
    }

    .jexpot-nav--open {
        right: 0;
    }

    .jexpot-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .jexpot-nav a {
        width: 100%;
        padding: var(--jexpot-space-md);
        font-size: 1rem;
    }

    .jexpot-nav li.deeper>ul {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: var(--jexpot-space-md);
        display: none;
        background: transparent;
    }

    .jexpot-nav li.deeper.open>ul {
        display: flex;
    }

    /* Hero responsive */
    .jexpot-hero {
        padding: var(--jexpot-space-2xl) 0;
    }

    .jexpot-hero-stats {
        flex-direction: column;
        border-radius: var(--jexpot-radius-lg);
    }

    .jexpot-hero-card {
        max-width: 100%;
    }

    /* Services responsive */
    .jexpot-services-grid {
        grid-template-columns: 1fr;
    }

    .jexpot-why-grid {
        grid-template-columns: 1fr;
    }

    /* Layout stacking */
    .jexpot-layout--sidebar-left,
    .jexpot-layout--sidebar-right,
    .jexpot-layout--both-sidebars {
        grid-template-columns: 1fr;
    }

    .jexpot-footer__content {
        grid-template-columns: 1fr;
    }

    .jexpot-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Audit box responsive */
    .jexpot-audit-box__info,
    .jexpot-audit-form {
        padding: var(--jexpot-space-xl);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    :root {
        --jexpot-container-padding: 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    .jexpot-hero__actions {
        flex-direction: column;
    }

    .jexpot-hero__actions .jexpot-btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   21. Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .jexpot-header,
    .jexpot-topbar,
    .jexpot-footer,
    .jexpot-sidebar,
    .jexpot-breadcrumbs,
    .jexpot-banner,
    .jexpot-burger,
    #system-message-container {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .jexpot-layout {
        display: block;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555;
    }
}