/* ---------------------------------
   1. VARIABLES & RESET
--------------------------------- */
:root {
    /* Color Palette - Cyberpunk / Trading Dark Theme */
    --bg-darker: #050b14;
    --bg-dark: #0a1120;
    --bg-card: rgba(16, 25, 43, 0.6);
    --primary: #0ea5e9;
    /* Neon Cyan */
    --primary-glow: rgba(14, 165, 233, 0.5);
    --secondary: #6366f1;
    /* Indigo */
    --secondary-glow: rgba(99, 102, 241, 0.5);
    --accent: #10b981;
    /* Neon Green for Up trends */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-family: 'Tajawal', sans-serif;

    /* Transition */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Light/Dark Toggle Values */
    --text-heading: #ffffff;
    --btn-secondary-bg: rgba(255, 255, 255, 0.1);
    --btn-secondary-hover: rgba(255, 255, 255, 0.15);
    --btn-text: #ffffff;
    --product-bg: linear-gradient(45deg, var(--bg-dark), #151e32);
    --hero-bg-url: url('../assets/darkbg.png');
    --hero-overlay-bg: linear-gradient(to bottom, rgba(5, 11, 20, 0.4) 0%, rgba(5, 11, 20, 0.9) 100%);
    --nav-scrolled-bg: rgba(5, 11, 20, 0.85);
    --nav-scrolled-shadow: rgba(0, 0, 0, 0.3);
    --scrollbar-track: rgba(148, 163, 184, 0.12);
    --scrollbar-thumb: linear-gradient(180deg, #f8fbff 0%, #d9ecfb 36%, #c9e6fb 68%, #edf6fd 100%);
    --scrollbar-thumb-hover: linear-gradient(180deg, #ffffff 0%, #d5ebfb 42%, #bfe0f8 100%);
}

/* Light Theme Overrides */
body.light-theme {
    --bg-darker: #f8fafc;
    --bg-dark: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.1);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Buttons in light mode need slightly darker shadows */
    --primary-glow: rgba(14, 165, 233, 0.3);

    --text-heading: #0f172a;
    --btn-secondary-bg: rgba(0, 0, 0, 0.05);
    --btn-secondary-hover: rgba(0, 0, 0, 0.1);
    --btn-text: #ffffff;
    --product-bg: linear-gradient(45deg, rgba(255, 255, 255, 0.8), #e2e8f0);
    --hero-bg-url: url('../assets/www.png');
    --hero-overlay-bg: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.7) 100%);
    --nav-scrolled-bg: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    --nav-scrolled-shadow: rgba(0, 0, 0, 0.05);
    --scrollbar-track: rgba(203, 213, 225, 0.38);
    --scrollbar-thumb: linear-gradient(180deg, #ffffff 0%, #e4f1fc 38%, #cce8fb 70%, #f5faff 100%);
    --scrollbar-thumb-hover: linear-gradient(180deg, #ffffff 0%, #d8ebfb 45%, #bfe0f8 100%);
}

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

html {
    scroll-behavior: smooth;
}

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

html {
    scrollbar-color: rgba(191, 224, 248, 0.95) var(--scrollbar-track);
    scrollbar-width: thin;
}

body::-webkit-scrollbar {
    width: 14px;
}

body::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

body::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
    background-clip: padding-box;
}

/* ---------------------------------
   2. UTILITIES & TYPOGRAPHY
--------------------------------- */
.container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-cyan {
    color: #06b6d4;
}

.text-purple {
    color: #a855f7;
}

.text-emerald {
    color: #10b981;
}

.text-amber {
    color: #f59e0b;
}

.text-rose {
    color: #f43f5e;
}

.mt-4 {
    margin-top: 1.5rem;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--text-heading);
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--glass-border);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.section-padding {
    padding: 6rem 0;
}

/* ---------------------------------
   3. NAVBAR
--------------------------------- */
.navbar {
    position: fixed;
    top: 0.75rem;
    left: 0;
    width: calc(100% - 3rem);
    z-index: 1000;
    padding: 0 0 1rem;
    margin-inline: 1.5rem;
    transition: var(--transition);
    border-bottom: 0;
}

.navbar:not(.no-bg) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 0 0 1rem;
}

.navbar.scrolled {
    padding: 0 0 1rem;
}

.navbar.no-bg {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    padding: 0 0 1rem;
}

.navbar.no-bg .nav-content {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.dark-theme .navbar.no-bg .nav-content {
    background: rgba(12, 18, 30, 0.58);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    min-height: 76px;
    padding: 0.95rem 1.2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    direction: rtl;
}

body.dark-theme .nav-content {
    background: rgba(11, 18, 31, 0.92);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.navbar .container {
    max-width: 100%;
    width: 100%;
    padding: 0 1.5rem;
}

.nav-profile,
.nav-actions {
    flex: 0 0 auto;
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 220px;
    direction: rtl;
    order: 1;
}

.nav-profile-brand {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    justify-content: center;
    background: #f4f8fc;

    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.dark-theme .nav-profile-brand {
    background: rgba(18, 28, 46, 0.9);
    border-color: rgba(71, 85, 105, 0.55);
}

.nav-profile-brand:hover {
    transform: translateY(-2px) rotate(-6deg) scale(1.04);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.16);
}

.nav-profile-brand:hover .logo-img {
    transform: scale(1.08);
}

.nav-profile-copy {
    display: grid;
    gap: 0.1rem;
    text-align: right;
    line-height: 1.25;
}

.nav-profile-copy strong {
    font-size: 1.05rem;
    color: #132238;
}

.nav-profile-copy span {
    font-size: 0.92rem;
    color: #62748a;
}

body.dark-theme .nav-profile-copy strong {
    color: #f8fafc;
}

body.dark-theme .nav-profile-copy span {
    color: #94a3b8;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
    font-size: 1.75rem;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo span {
    font-weight: 300;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex: 1 1 auto;
    min-width: 0;
    direction: rtl;
    order: 2;
}

.nav-item {
    position: relative;
    padding-bottom: 0.35rem;
    margin-bottom: -0.35rem;
}

.nav-item-has-menu > a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-caret {
    font-size: 0.72rem;
    transition: var(--transition);
}

.nav-item-has-menu:hover .nav-caret,
.nav-item-has-menu:focus-within .nav-caret {
    transform: rotate(180deg);
}

.nav-links a {
    color: #23364b;
    position: relative;
    padding: 0.6rem 0;
    white-space: nowrap;
    font-size: 0.97rem;
}

body.dark-theme .nav-links a {
    color: #dbe7f5;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--primary-glow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 401px;
    padding: 0.9rem;
    border-radius: 22px;
    border: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
    display: grid;
    gap: 0.45rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: var(--transition);
}

body.dark-theme .nav-dropdown {
    background: rgba(10, 17, 32, 0.96);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

body.light-theme .nav-dropdown {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.nav-item-has-menu:hover .nav-dropdown,
.nav-item-has-menu:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-link {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem 0.9rem !important;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(248, 250, 252, 0.82);
}

body.light-theme .nav-dropdown-link {
    background: rgba(248, 250, 252, 0.82);
}

.nav-dropdown-link::after {
    display: none;
}

.nav-dropdown-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.2rem;
}

body.light-theme .nav-dropdown-thumb {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(148, 163, 184, 0.2);
}

.nav-dropdown-copy {
    display: grid;
    gap: 0.15rem;
}

.nav-dropdown-link strong {
    color: var(--text-main);
    font-size: 0.98rem;
}

.nav-dropdown-link span {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.2);
    background: rgba(14, 165, 233, 0.08);
}

body.dark-theme .nav-dropdown-link {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-theme .nav-dropdown-thumb {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(71, 85, 105, 0.45);
}

body.dark-theme .nav-dropdown-link strong {
    color: #f8fafc;
}

body.dark-theme .nav-dropdown-link span {
    color: #94a3b8;
}

body.dark-theme .nav-dropdown-link:hover,
body.dark-theme .nav-dropdown-link:focus-visible {
    background: rgba(14, 165, 233, 0.14);
    border-color: rgba(56, 189, 248, 0.26);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    direction: ltr;
    flex: 0 0 auto;
    order: 3;
    margin-inline-start: auto;
}

.menu-toggle {
    display: none !important;
}

.nav-square-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #d5dde7;
    background: #eef3f8;
    color: #5c7089;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

body.dark-theme .nav-square-btn {
    background: rgba(19, 30, 49, 0.95);
    border-color: rgba(71, 85, 105, 0.52);
    color: #dbe7f5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-square-btn:hover {
    transform: translateY(-1px);
    border-color: #c5d2df;
    color: #24415f;
}

body.dark-theme .nav-square-btn:hover {
    border-color: rgba(96, 165, 250, 0.42);
    color: #ffffff;
    background: rgba(24, 39, 63, 0.98);
}

.nav-brand-btn {
    background: #eef3f8;
    border-color: #d5dde7;
    color: #5c7089;
    font-size: 1rem;
    font-weight: 700;
}

.font-control-btn {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 6rem;
    right: -300px;
    width: 300px;
    height: calc(100dvh - 6rem);
    max-height: calc(100dvh - 6rem);
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(210, 220, 231, 0.9);
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.12);
    border-top-left-radius: 28px;
    border-bottom-left-radius: 28px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

body.dark-theme .mobile-menu {
    background: rgba(10, 17, 32, 0.98);
    border-left-color: rgba(71, 85, 105, 0.45);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.28);
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(223, 231, 239, 0.95);
    font-weight: 500;
    color: #16283b;
}

body.dark-theme .mobile-link {
    color: #e2e8f0;
    border-bottom-color: rgba(51, 65, 85, 0.8);
}

.mobile-group {
    border-bottom: 1px solid rgba(223, 231, 239, 0.95);
}

body.dark-theme .mobile-group {
    border-bottom-color: rgba(51, 65, 85, 0.8);
}

.mobile-group .mobile-link {
    border-bottom: 0;
}

.mobile-submenu {
    display: grid;
    gap: 0.35rem;
    padding: 0 5% 0.9rem;
}

.mobile-sublink {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-size: 0.94rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

body.light-theme .mobile-sublink {
    background: rgba(248, 250, 252, 0.9);
    border-color: rgba(148, 163, 184, 0.18);
}

body.dark-theme .mobile-sublink {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(71, 85, 105, 0.38);
    color: #f8fafc;
}

.mobile-sublink:hover,
.mobile-sublink:focus-visible {
    background: rgba(14, 165, 233, 0.08);
    color: var(--text-main);
}

.mobile-sublink-thumb {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 0.15rem;
}

body.dark-theme .mobile-sublink-thumb {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(71, 85, 105, 0.45);
}

/* ---------------------------------
   4. HERO SECTION
--------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 132px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-bg-url) no-repeat center center/cover;
    z-index: 0;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay-bg);
    z-index: 1;
}

.hero.no-bg .hero-bg {
    opacity: 0;
    animation: none;
    transform: none;
    pointer-events: none;
}

.hero.no-bg .hero-overlay {
    background: linear-gradient(to bottom, rgba(5, 11, 20, 0.2) 0%, rgba(5, 11, 20, 0.88) 100%);
}

body.light-theme .hero.no-bg .hero-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 0%, rgba(241, 245, 249, 0.92) 100%);
}

.tool-hero.no-bg .tool-hero-bg {
    opacity: 0;
    transform: none;
}

.tool-hero.no-bg::before {
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.2) 0%, rgba(5, 11, 20, 0.88) 100%);
}

body.light-theme .tool-hero.no-bg::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(241, 245, 249, 0.92) 100%);
}

.tool-hero.no-bg::after {
    opacity: 0;
}

body[data-hero-bg="disabled"].services-body::before,
body[data-hero-bg="disabled"].news-body::before {
    background: none !important;
    opacity: 0 !important;
}

body[data-hero-bg="disabled"] .articles-hero.no-bg::before,
body[data-hero-bg="disabled"] .article-hero.no-bg::before {
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.24) 0%, rgba(5, 11, 20, 0.9) 100%) !important;
    transform: none !important;
}

body.light-theme[data-hero-bg="disabled"] .articles-hero.no-bg::before,
body.light-theme[data-hero-bg="disabled"] .article-hero.no-bg::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(241, 245, 249, 0.94) 100%) !important;
}

body[data-background-style="signal-grid"] .hero-bg {
    background:
        radial-gradient(circle at 14% 18%, rgba(14, 165, 233, 0.22), transparent 22%),
        radial-gradient(circle at 84% 16%, rgba(99, 102, 241, 0.18), transparent 24%),
        radial-gradient(circle at 55% 78%, rgba(16, 185, 129, 0.14), transparent 20%),
        linear-gradient(160deg, #07111f 0%, #0b1830 42%, #091426 68%, #050b14 100%);
}

body.light-theme[data-background-style="signal-grid"] .hero-bg {
    background:
        radial-gradient(circle at 14% 18%, rgba(14, 165, 233, 0.16), transparent 22%),
        radial-gradient(circle at 84% 16%, rgba(99, 102, 241, 0.12), transparent 24%),
        radial-gradient(circle at 55% 78%, rgba(16, 185, 129, 0.1), transparent 20%),
        linear-gradient(160deg, #fbfdff 0%, #eef5fe 42%, #f3f8ff 68%, #f7fbff 100%);
}

body[data-background-style="signal-grid"] .hero-bg::before,
body[data-background-style="signal-grid"] .tool-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.08), transparent 16%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.06), transparent 14%),
        linear-gradient(116deg, transparent 0 36%, rgba(14, 165, 233, 0.08) 36% 39%, transparent 39% 100%),
        linear-gradient(145deg, transparent 0 58%, rgba(16, 185, 129, 0.08) 58% 61%, transparent 61% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%, rgba(255, 255, 255, 0.02) 100%);
    background-size: auto, auto, 100% 100%, 100% 100%, 100% 100%;
    background-position: center, center, center, center, center;
    mix-blend-mode: screen;
    opacity: 0.78;
}

body.light-theme[data-background-style="signal-grid"] .hero-bg::before,
body.light-theme[data-background-style="signal-grid"] .tool-hero-bg::before {
    background:
        radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.7), transparent 16%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.4), transparent 14%),
        linear-gradient(116deg, transparent 0 36%, rgba(14, 165, 233, 0.06) 36% 39%, transparent 39% 100%),
        linear-gradient(145deg, transparent 0 58%, rgba(16, 185, 129, 0.06) 58% 61%, transparent 61% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%, rgba(255, 255, 255, 0.07) 100%);
    background-size: auto, auto, 100% 100%, 100% 100%, 100% 100%;
    background-position: center, center, center, center, center;
    mix-blend-mode: screen;
    opacity: 0.85;
}

body[data-background-style="signal-grid"] .hero-bg::after,
body[data-background-style="signal-grid"] .tool-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 84%, rgba(16, 185, 129, 0.1), transparent 18%),
        radial-gradient(circle at 48% 0%, rgba(255, 255, 255, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(5, 11, 20, 0.04) 0%, rgba(5, 11, 20, 0.18) 100%);
    opacity: 0.72;
}

body.light-theme[data-background-style="signal-grid"] .hero-bg::after,
body.light-theme[data-background-style="signal-grid"] .tool-hero-bg::after {
    background:
        radial-gradient(circle at 50% 84%, rgba(16, 185, 129, 0.06), transparent 18%),
        radial-gradient(circle at 48% 0%, rgba(255, 255, 255, 0.52), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(241, 245, 249, 0.12) 100%);
    opacity: 0.82;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

.hero-stack {
    width: 100%;
    display: grid;
    gap: 1.9rem;
}

.hero-primary-panel {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.1rem 2rem 1.9rem;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.dark-theme .hero-primary-panel {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.hero-features-panel {
    display: grid;
    gap: 1.2rem;
    width: 100%;
    min-width: 0;
}

.hero-features-carousel {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    display: grid;
    gap: 1rem;
    direction: ltr;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero-inline-head {
    margin: 0;
    text-align: center;
}

.hero-inline-head h2 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    color: var(--text-main);
    margin-bottom: 0.45rem;
}

.hero-inline-head p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 auto;
    text-align: center;
}

.hero-features-grid {
    display: flex;
    gap: 1.4rem;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    min-width: 0;
}

.hero-features-grid .feature-card {
    flex: 0 0 calc((100% - 2.8rem) / 3);
    padding: 1.8rem 1.6rem;
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: none;
    direction: rtl;
}

body.dark-theme .hero-features-grid .feature-card {
    background: rgba(15, 23, 42, 0.44);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.hero-features-grid .feature-icon {
    margin-bottom: 1rem;
}

.hero-features-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
}

.hero-features-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    transition: var(--transition);
    cursor: pointer;
}

.hero-features-dots button.is-active {
    width: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.services-body {
    position: relative;
    background:
        radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.12), transparent 24%),
        radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(9, 14, 24, 0.98) 0%, rgba(5, 11, 20, 1) 100%);
}

body.light-theme.services-body {
    background:
        radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.1), transparent 24%),
        radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.06), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #eef5fb 100%);
}

body[data-background-style="signal-grid"].services-body {
    background:
        linear-gradient(180deg, rgba(8, 14, 26, 0.98) 0%, rgba(5, 11, 20, 1) 100%),
        radial-gradient(circle at 18% 16%, rgba(14, 165, 233, 0.16), transparent 26%),
        radial-gradient(circle at 82% 22%, rgba(99, 102, 241, 0.14), transparent 30%);
}

body.light-theme[data-background-style="signal-grid"].services-body {
    background:
        linear-gradient(180deg, #fbfdff 0%, #eef5fe 100%),
        radial-gradient(circle at 18% 16%, rgba(14, 165, 233, 0.12), transparent 26%),
        radial-gradient(circle at 82% 22%, rgba(99, 102, 241, 0.1), transparent 30%);
}

.services-page {
    padding-top: 0;
}

.services-hero {
    position: relative;
    padding: 7.4rem 0 2.4rem;
    overflow: hidden;
    min-height: auto;
}

.services-hero > .container {
    position: relative;
    z-index: 2;
}

.services-hero .hero-bg {
    background: url('../assets/darkbg.png') no-repeat center top / 100% auto;
    transform: none;
}

.services-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.18) 0%, rgba(5, 11, 20, 0.72) 100%);
}

body.light-theme .services-hero .hero-bg {
    background: url('../assets/www.png') no-repeat center top / 100% auto;
}

body.light-theme .services-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(244, 248, 252, 0.86) 100%);
}

body[data-background-style="signal-grid"] .services-hero .hero-bg {
    background:
        radial-gradient(circle at 16% 18%, rgba(14, 165, 233, 0.12), transparent 18%),
        radial-gradient(circle at 84% 14%, rgba(99, 102, 241, 0.1), transparent 20%),
        radial-gradient(circle at 54% 82%, rgba(16, 185, 129, 0.08), transparent 18%),
        linear-gradient(160deg, #07111f 0%, #0b1830 42%, #091426 68%, #050b14 100%);
}

body.light-theme[data-background-style="signal-grid"] .services-hero .hero-bg {
    background:
        radial-gradient(circle at 16% 18%, rgba(14, 165, 233, 0.1), transparent 18%),
        radial-gradient(circle at 84% 14%, rgba(99, 102, 241, 0.08), transparent 20%),
        radial-gradient(circle at 54% 82%, rgba(16, 185, 129, 0.06), transparent 18%),
        linear-gradient(160deg, #fbfdff 0%, #eef5fe 42%, #f3f8ff 68%, #f7fbff 100%);
}

.services-hero-card {
    position: relative;
    padding: 2.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 1.35rem;
    align-items: stretch;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(11, 18, 32, 0.76) 0%, rgba(8, 14, 26, 0.9) 100%);
    box-shadow: 0 28px 70px rgba(2, 8, 23, 0.22);
    overflow: hidden;
}

body.light-theme .services-hero-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.96) 100%);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 56px rgba(148, 163, 184, 0.14);
}

.services-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.services-title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.18;
}

.services-page-title {
    font-size: clamp(1.95rem, 3.6vw, 2.95rem);
}

.services-badge {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.18);
    color: #7dd3fc;
}

body.light-theme .services-badge {
    color: #075985;
    background: rgba(255, 255, 255, 0.82);
}

.services-desc {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.95;
    margin: 0;
}

.services-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.services-hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.92rem;
}

body.light-theme .services-hero-pills span {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.16);
}

.services-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.2rem;
}

.services-hero-side {
    display: grid;
    gap: 0.95rem;
}

.service-highlight-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 55%);
}

.service-highlight-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    filter: blur(16px);
}

.service-highlight-label {
    display: inline-flex;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.18);
}

.service-highlight-card strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1.45rem;
}

.service-highlight-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.service-highlight-card-featured {
    min-height: 170px;
}

.services-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.service-mini-card {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

body.light-theme .service-mini-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.16);
}

.service-mini-card strong {
    display: block;
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.service-mini-card span {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.services-quick-links {
    display: grid;
    gap: 0.75rem;
}

.services-quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition);
}

.services-quick-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.24);
    background: rgba(56, 189, 248, 0.08);
}

body.light-theme .services-quick-links a {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.16);
}

.services-quick-links i {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
}

.services-quick-links span {
    flex: 1;
    font-weight: 700;
}

.services-overview {
    padding-top: 1.5rem;
}

.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.overview-stat {
    padding: 1.5rem;
    box-shadow: none;
}

.overview-stat span {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font-weight: 500;
}

.overview-stat strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    line-height: 1;
}

.overview-stat p {
    color: var(--text-muted);
}

.services-section-head {
    max-width: 760px;
    margin: 0 auto 2.4rem;
    text-align: center;
}

.services-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.services-section-head h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.services-section-head p {
    color: var(--text-muted);
}

.services-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-panel {
    position: relative;
    padding: 1.55rem;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(2, 8, 23, 0.14);
    overflow: hidden;
}

body.light-theme .service-panel {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 45px rgba(148, 163, 184, 0.12);
}

.service-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.9), rgba(16, 185, 129, 0.35));
}

.service-panel-head {
    margin-bottom: 1.35rem;
}

.service-panel-tag {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #075985;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.22);
}

.service-panel-tag-amber {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
}

.service-panel-tag-emerald {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
}

.service-panel-head h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.45rem;
}

.service-panel-head p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.service-list {
    display: grid;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%),
        rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

body.light-theme .service-item {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%);
    border-color: rgba(148, 163, 184, 0.16);
}

.service-item:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.07);
}

body.light-theme .service-item:hover {
    background: rgba(56, 189, 248, 0.07);
    box-shadow: 0 14px 32px rgba(56, 189, 248, 0.08);
}

.service-item-copy h3 {
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
}

.service-item-copy p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
}

.service-item-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #0ea5e9;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.18);
}

body.light-theme .service-item-icon {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.16);
}

.service-item-arrow {
    order: -1;
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

body.light-theme .service-item-arrow {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.16);
}

.service-item:hover .service-item-arrow {
    color: #0ea5e9;
    border-color: rgba(56, 189, 248, 0.22);
}

.services-cta {
    margin-top: 1.9rem;
    padding: 1.6rem 1.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(9, 16, 28, 0.78), rgba(8, 14, 26, 0.9));
}

body.light-theme .services-cta {
    border-color: rgba(148, 163, 184, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 252, 0.96));
}

.services-cta-copy {
    max-width: 680px;
}

.services-cta-copy h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.services-cta-copy p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.85;
}

.services-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.news-body {
    position: relative;
    background:
        linear-gradient(180deg, rgba(7, 12, 24, 0.97) 0%, rgba(5, 11, 20, 1) 100%),
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.16), transparent 34%);
}

body.light-theme.news-body {
    background:
        linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%),
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 34%);
}

body[data-background-style="signal-grid"].news-body {
    background:
        linear-gradient(180deg, rgba(8, 14, 27, 0.98) 0%, rgba(5, 11, 20, 1) 100%),
        radial-gradient(circle at 20% 18%, rgba(99, 102, 241, 0.16), transparent 28%),
        radial-gradient(circle at 78% 72%, rgba(14, 165, 233, 0.12), transparent 26%);
}

body.light-theme[data-background-style="signal-grid"].news-body {
    background:
        linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%),
        radial-gradient(circle at 20% 18%, rgba(99, 102, 241, 0.1), transparent 28%),
        radial-gradient(circle at 78% 72%, rgba(14, 165, 233, 0.08), transparent 26%);
}

.news-page {
    padding-top: 0;
}

.news-hero {
    position: relative;
    padding: 7rem 0 2rem;
    overflow: hidden;
    min-height: auto;
}

.news-hero > .container {
    position: relative;
    z-index: 2;
}

.news-hero .hero-bg {
    background: url('../assets/darkbg.png') no-repeat center top / 100% auto;
    transform: none;
}

.news-hero .hero-overlay {
    background: var(--hero-overlay-bg);
}

body.light-theme .news-hero .hero-bg {
    background: url('../assets/www.png') no-repeat center top / 100% auto;
}

body[data-background-style="signal-grid"] .news-hero .hero-bg {
    background:
        radial-gradient(circle at 18% 16%, rgba(99, 102, 241, 0.12), transparent 18%),
        radial-gradient(circle at 82% 74%, rgba(14, 165, 233, 0.08), transparent 20%),
        radial-gradient(circle at 56% 82%, rgba(16, 185, 129, 0.06), transparent 16%),
        linear-gradient(160deg, #081220 0%, #0d1833 42%, #0a1528 68%, #050b14 100%);
}

body.light-theme[data-background-style="signal-grid"] .news-hero .hero-bg {
    background:
        radial-gradient(circle at 18% 16%, rgba(99, 102, 241, 0.08), transparent 18%),
        radial-gradient(circle at 82% 74%, rgba(14, 165, 233, 0.06), transparent 20%),
        radial-gradient(circle at 56% 82%, rgba(16, 185, 129, 0.05), transparent 16%),
        linear-gradient(160deg, #fbfdff 0%, #eef5ff 42%, #f4f8ff 68%, #f7fbff 100%);
}

.news-hero-card {
    padding: 2.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1.5rem;
    align-items: stretch;
    box-shadow: none;
}

body.light-theme .news-hero-card {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: none;
}

.news-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.news-page-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.news-desc {
    max-width: 720px;
    color: var(--text-muted);
}

.news-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.news-hero-side {
    display: grid;
    gap: 1rem;
}

.news-alert-card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%),
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 58%);
}

.news-alert-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    left: -2rem;
    bottom: -3rem;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    filter: blur(16px);
}

.news-alert-label {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #e0e7ff;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.22);
    font-size: 0.82rem;
    font-weight: 700;
}

.news-alert-card strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1.45rem;
}

.news-alert-card p {
    color: var(--text-muted);
}

.news-overview {
    padding-top: 1.5rem;
}

.news-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.news-overview-card {
    padding: 1.5rem;
    box-shadow: none;
}

.news-overview-card span {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font-weight: 500;
}

.news-overview-card strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    line-height: 1;
}

.news-overview-card p {
    color: var(--text-muted);
}

.news-section-head {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.news-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: #a5b4fc;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.news-section-head h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.news-section-head p {
    color: var(--text-muted);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.news-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    min-height: 240px;
    transition: var(--transition);
    box-shadow: none;
}

body.light-theme .news-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: none;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: none;
}

.news-card-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.24);
    color: #a5b4fc;
    font-size: 1.8rem;
}

body.light-theme .news-card-icon {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.1);
}

.news-card-copy h2 {
    margin-bottom: 0.65rem;
    font-size: 1.6rem;
}

.news-card-copy p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.news-cta {
    margin-top: 1.75rem;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: none;
}

.news-cta-copy {
    max-width: 680px;
}

.news-cta-copy h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.news-cta-copy p {
    color: var(--text-muted);
}

.news-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-text {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: block;
    width: fit-content;
    padding: 0.25rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 auto 1.25rem;
}

@keyframes titleBreathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes gradientShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
    animation: titleBreathe 6s ease-in-out infinite;
    display: inline-block;
}

.hero-title span {
    background: linear-gradient(270deg, var(--primary), #a855f7, var(--primary), var(--secondary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    animation: gradientShine 4s ease infinite;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
    border-top: 2px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.stat-num {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------------------------------
   5. FEATURES SECTION
--------------------------------- */
.section-title {
    margin-bottom: 3rem;
}

.products-section-head {
    text-align: center;
}

.section-title-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(14, 165, 233, 0.16);
    color: #0284c7;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.section-title h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 52%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-theme .section-title h2 {
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 45%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 720px;
    line-height: 1.9;
    margin-inline: auto;
}

body.dark-theme .section-title p {
    color: #94a3b8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: right;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 16%;
    right: 0;
    width: 4px;
    height: 68%;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0), rgba(14, 165, 233, 0.95), rgba(99, 102, 241, 0.95), rgba(14, 165, 233, 0));
    border-radius: 999px;
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
    transform: translateX(-10px);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
    border-color: rgba(14, 165, 233, 0.4);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------------------------------
   6. PRODUCTS SECTION
--------------------------------- */
.products {
    position: relative;
    margin-top: -1rem;
    padding-top: 5.5rem;
    z-index: 3;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.92) 58%, rgba(248, 250, 252, 1) 100%);
    pointer-events: none;
    z-index: -1;
}

body.dark-theme .products::before {
    background: linear-gradient(180deg, rgba(5, 11, 20, 0) 0%, rgba(5, 11, 20, 0.9) 58%, rgba(5, 11, 20, 1) 100%);
}

.title-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.products-section-head .title-flex {
    margin-top: 1.35rem;
    justify-content: center;
    align-items: center;
    padding-inline-start: 0;
}

.product-filters {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--btn-secondary-bg);
    color: var(--text-heading);
}

.product-filter-badge {
    position: absolute;
    top: -14px;
    right: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.22);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 4;
}

.product-filter-badge i {
    font-size: 0.75rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.6rem;
    margin-top: 2rem;
}

.products .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
    .products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.72);
    box-shadow: 0 20px 40px rgba(148, 163, 184, 0.14);
    transform: none;
}

body.dark-theme .product-card {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(2, 8, 23, 0.32);
}

.product-card:hover {
    transform: none;
    box-shadow: 0 22px 44px rgba(148, 163, 184, 0.16);
    border-color: rgba(99, 102, 241, 0.28);
}

body.dark-theme .product-card:hover {
    box-shadow: 0 22px 44px rgba(2, 8, 23, 0.36);
}

.product-card.is-filtered-match {
    border-color: rgba(59, 130, 246, 0.36);
    box-shadow: 0 22px 46px rgba(59, 130, 246, 0.14);
}

body.dark-theme .product-card.is-filtered-match {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.16);
}

.product-card.is-filtered-match .product-filter-badge {
    opacity: 1;
    transform: translateY(0);
}

.product-card.is-filtered-dim {
    opacity: 0.58;
}

.product-img {
    position: relative;
    height: 228px;
    width: 100%;
    border-radius: 28px 28px 0 0;
    background: var(--product-bg);
    border-bottom: 1px solid rgba(203, 213, 225, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.dark-theme .product-img {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.product-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.18) 100%),
        radial-gradient(circle at 16% 18%, rgba(14, 165, 233, 0.18) 0%, transparent 46%);
}

.img-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.card-img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center top;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.product-card:hover .img-placeholder {
    color: var(--primary);
    transform: scale(1.1);
    transition: var(--transition);
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.product-card:hover .card-img {
    transform: scale(1.03);
}

.product-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.42rem 0.95rem;
    border-radius: 0.7rem;
    font-size: 0.79rem;
    font-weight: 500;
    letter-spacing: 0;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    text-shadow: none;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
    border: none;
}

.product-card:hover .product-tag {
    transform: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.product-tag.new,
.product-tag.bundle-tag {
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
}

.product-tag.update-tag {
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
}

body.dark-theme .product-tag {
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
    text-shadow: none;
}

body.dark-theme .product-tag.new,
body.dark-theme .product-tag.bundle-tag {
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
}

body.dark-theme .product-tag.update-tag {
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
}

.product-info {
    padding: 1.45rem 1.45rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-radius: 0 0 28px 28px;
}

.product-info h3 {
    font-size: 1.28rem;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.product-features {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.3rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.76);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

body.dark-theme .product-features {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.product-features li {
    font-size: 0.92rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 1rem;
    gap: 1rem;
}

body.dark-theme .product-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

/* ---------------------------------
   7. CALL TO ACTION
--------------------------------- */
.cta-box {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    z-index: -1;
}

.cta-box h2 {
    font-size: 2.5rem;
}

.programs-section {
    position: relative;
    overflow: hidden;
}

.programs-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.14), transparent 30%);
    pointer-events: none;
}

.programs-head {
    position: relative;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.programs-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.programs-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.9rem;
    color: var(--text-heading);
}

.programs-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.programs-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}

.program-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 100%;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(203, 213, 225, 0.72);
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.12);
}

body.dark-theme .program-card {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.76));
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 38px rgba(2, 8, 23, 0.26);
}

.program-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.24);
    box-shadow: 0 24px 48px rgba(59, 130, 246, 0.14);
}

.program-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 1.8rem 1.8rem 0;
    background: none;
    border-bottom: 0;
    z-index: 2;
}

body.dark-theme .program-card-media {
    background: none;
    border-bottom-color: transparent;
}

.program-card-media img {
    width: min(92px, 28%);
    max-height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.12));
    transition: var(--transition);
}

.program-card:hover .program-card-media img {
    transform: scale(1.04) translateY(-2px);
}

.program-card-connector {
    position: absolute;
    top: calc(100% - 6px);
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(203, 213, 225, 0.85);
    color: var(--primary);
    box-shadow: 0 12px 26px rgba(148, 163, 184, 0.18);
}

.program-card-connector::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 2px;
    height: 24px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.34), rgba(14, 165, 233, 0.08));
}

body.dark-theme .program-card-connector {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 28px rgba(2, 8, 23, 0.32);
}

.program-card-connector i {
    font-size: 0.86rem;
}

.program-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2.8rem 1.5rem 1.5rem;
    flex-grow: 1;
}

.program-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: wrap;
}

.program-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.14);
    color: #0284c7;
    font-size: 0.82rem;
    font-weight: 700;
}

.program-mini-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.program-card-body h3 {
    margin-bottom: 0;
    font-size: 1.38rem;
    color: var(--text-heading);
}

.program-card-body p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 0.96rem;
    flex-grow: 1;
}

.program-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-top: auto;
}

.program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.program-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.84);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
}

body.dark-theme .program-meta span {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

.program-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.1rem;
    border-radius: 14px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.12);
    white-space: nowrap;
}

.program-link i {
    font-size: 0.85rem;
    transition: var(--transition);
}

.program-link:hover {
    background: rgba(14, 165, 233, 0.14);
    border-color: rgba(14, 165, 233, 0.2);
}

.program-card:hover .program-link i {
    transform: translateX(-4px);
}

.video-hub-page {
    position: relative;
}

.video-hub-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.12), transparent 32%);
    z-index: 0;
}

.video-hub-page>* {
    position: relative;
    z-index: 1;
}

.video-hub-hero {
    min-height: auto;
    padding: 8.5rem 0 3.5rem;
    background: transparent;
}

.video-hub-hero .container {
    position: relative;
    z-index: 3;
}

.video-hub-hero .tool-hero-bg {
    opacity: 0.16;
    transform: scale(1.02);
    filter: saturate(0.7) blur(1px);
    z-index: 0;
}

.video-hub-hero::before,
.video-hub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.video-hub-hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(241, 245, 249, 0.95) 100%);
    z-index: 1;
}

body.dark-theme .video-hub-hero::before {
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.7) 0%, rgba(5, 11, 20, 0.94) 100%);
}

.video-hub-hero::after {
    background:
        radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.08), transparent 22%),
        radial-gradient(circle at 82% 74%, rgba(99, 102, 241, 0.06), transparent 24%);
    z-index: 2;
}

.video-hub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
}

.video-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.video-hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-weight: 600;
}

.video-hub-hero-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.1rem;
    padding: 1.35rem;
    align-items: center;
}

.video-hub-hero-media {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-hub-hero-media img {
    width: 78%;
    max-height: 120px;
    object-fit: contain;
}

.video-hub-hero-copy {
    display: grid;
    gap: 0.85rem;
}

.video-hub-hero-copy strong {
    font-size: 1.45rem;
    color: var(--text-heading);
}

.video-hub-hero-copy span {
    color: var(--text-muted);
    line-height: 1.8;
}

.video-hub-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.video-hub-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.video-hub-hero-stat i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary);
}

.video-hub-hero-stat b {
    display: block;
    font-size: 1.05rem;
    color: var(--text-heading);
}

.video-hub-hero-stat span {
    font-size: 0.88rem;
}

.video-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.video-overview-card {
    padding: 1.3rem;
    display: grid;
    gap: 1rem;
    border-radius: 26px;
}

.video-overview-card.is-current {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.14);
}

.video-overview-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.video-overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-overview-head strong {
    display: block;
    color: var(--text-heading);
}

.video-overview-head span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.video-overview-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

.video-overview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.video-overview-count {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.video-overview-count b {
    font-size: 1.1rem;
    color: var(--text-heading);
}

.video-overview-count span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.video-hub-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
    gap: 1.3rem;
    align-items: start;
}

.video-player-panel,
.video-playlist-panel {
    padding: 1.4rem;
    border-radius: 28px;
}

.video-library-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.video-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition);
}

.video-category-btn.is-active,
.video-category-btn:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(99, 102, 241, 0.22));
    border-color: rgba(14, 165, 233, 0.28);
}

.video-player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 8, 23, 0.9);
    aspect-ratio: 16 / 9;
    margin-bottom: 1.15rem;
}

.video-player-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-player-poster {
    position: absolute;
    inset: 0;
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.video-player-frame.is-ready-to-play .video-player-poster {
    display: block;
}

.video-player-poster img,
.video-player-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-player-poster img {
    object-fit: cover;
}

.video-player-overlay {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.42) 100%),
        radial-gradient(circle at center, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.video-player-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 1.55rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-player-poster:hover .video-player-play,
.video-player-poster:focus-visible .video-player-play {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.38);
}

.video-current-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.video-section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.16);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.video-current-header h2 {
    margin-bottom: 0;
    font-size: 1.55rem;
    color: var(--text-heading);
}

.video-current-description {
    color: var(--text-muted);
    line-height: 1.95;
    margin-bottom: 1.2rem;
    white-space: normal;
}

.video-current-description a {
    color: var(--primary);
}

.video-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.video-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-stat-pill i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary);
}

.video-stat-pill strong {
    display: block;
    color: var(--text-heading);
}

.video-stat-pill span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.video-player-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.video-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.video-panel-head h3 {
    margin-bottom: 0;
    color: var(--text-heading);
    font-size: 1.25rem;
}

.video-panel-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.video-search-box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.video-search-box i {
    color: var(--text-muted);
}

.video-search-box input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
}

.video-search-box input::placeholder {
    color: var(--text-muted);
}

.video-playlist-status {
    color: var(--text-muted);
    padding: 1rem 0;
}

.video-playlist-list {
    display: grid;
    gap: 0.7rem;
    max-height: 780px;
    overflow-y: auto;
    padding-inline-end: 0.25rem;
}

.video-playlist-item {
    width: 100%;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 34px;
    gap: 0.8rem;
    align-items: center;
    text-align: right;
    padding: 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.video-playlist-item:hover,
.video-playlist-item.is-active {
    border-color: rgba(14, 165, 233, 0.28);
    background: rgba(14, 165, 233, 0.08);
    transform: translateY(-2px);
}

.video-playlist-thumb {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
    background: rgba(2, 8, 23, 0.8);
}

.video-playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-playlist-copy {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.video-playlist-copy b {
    color: var(--text-heading);
    font-size: 0.95rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-playlist-copy small {
    color: var(--text-muted);
}

.video-playlist-index {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
}

body.light-theme .video-hero-pills span,
body.light-theme .video-hub-hero-stat,
body.light-theme .video-stat-pill,
body.light-theme .video-search-box,
body.light-theme .video-panel-counter,
body.light-theme .video-playlist-item,
body.light-theme .video-category-btn {
    background: rgba(248, 250, 252, 0.88);
    border-color: rgba(148, 163, 184, 0.18);
}

body.light-theme .video-player-frame,
body.light-theme .video-hub-hero-media {
    border-color: rgba(148, 163, 184, 0.18);
}

.video-hub-body .video-overview-card,
.video-hub-body .video-player-panel,
.video-hub-body .video-playlist-panel,
.video-hub-body .video-hub-hero-card {
    border: 0;
    box-shadow: none;
}

/* ---------------------------------
   8. FOOTER
--------------------------------- */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
    display: inline-flex;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

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

.newsletter-form input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.newsletter-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.75rem;
    margin-top: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.7;
    background: transparent;
}

.newsletter-message-success {
    color: #16a34a;
    background: rgba(134, 239, 172, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.newsletter-message-error {
    color: #dc2626;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.newsletter-message:empty {
    display: none;
}

.newsletter-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
    border-radius: 999px;
    font-size: 0.8rem;
}

.newsletter-message-success .newsletter-message-icon {
    color: #fff;
    background: #22c55e;
}

.newsletter-message-error .newsletter-message-icon {
    color: #fff;
    background: #ef4444;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------------------------------
   9. ANIMATIONS & RESPONSIVE
--------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Inital Load Animation */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------
   8. OFFER POPUP
--------------------------------- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .popup-overlay {
        align-items: center;
    }

    .popup-content {
        border-radius: 20px;
        transform: translateY(50px) scale(0.9);
    }
}

.popup-overlay.active .popup-content {
    transform: translateY(0) scale(1);
}

.close-popup {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-popup:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.popup-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.popup-title {
    color: #a855f7;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.popup-desc {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.floating-actions {
    position: fixed;
    right: -0.9rem;
    bottom: 1.25rem;
    z-index: 1400;
    display: grid;
    gap: 0.9rem;
    pointer-events: none;
}

.floating-action {
    pointer-events: auto;
    width: 54px;
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    box-shadow: none;
    transition: width 0.35s ease, opacity 0.35s ease;
}

.floating-action:hover,
.floating-action:focus-visible {
    width: 176px;
}

.floating-action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.floating-action-whatsapp {
    background: #8dd7be;
}

.floating-action-refund {
    background: #9ec4eb;
}

.floating-action-label {
    order: 1;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 800;
    padding-inline: 0.9rem 0.4rem;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.floating-action:hover .floating-action-label,
.floating-action:focus-visible .floating-action-label {
    opacity: 1;
    transform: translateX(0);
}

.floating-action-icon {
    order: 2;
    width: 54px;
    min-width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.refund-popup-content {
    max-width: 520px;
    text-align: center;
}

.refund-popup-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 1rem;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(34, 197, 94, 0.16));
    color: #a855f7;
    font-size: 2rem;
}

.refund-popup-title {
    color: #8b5cf6;
}

.refund-popup-desc {
    max-width: 28rem;
    margin: 0 auto;
    line-height: 1.9;
}

/* ---------------------------------
   9. SETTINGS DROPDOWN
--------------------------------- */
.settings-wrapper {
    position: relative;
    display: inline-block;
}

.site-close-owner-alert {
    position: relative;
    z-index: 1002;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(180, 83, 9, 0.94));
    border-bottom: 1px solid rgba(251, 191, 36, 0.22);
    color: #fff7ed;
}

.site-close-owner-alert .container {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-close-owner-alert__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.14);
    border: 1px solid rgba(255, 247, 237, 0.22);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.site-close-owner-alert p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .site-close-owner-alert .container {
        flex-direction: column;
        gap: 8px;
    }
}

.settings-toggle {
    padding: 0;
}

.settings-toggle:hover {
    transform: translateY(-1px);
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 0;
    transform: translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(213, 221, 231, 0.92);
    border-radius: 18px;
    padding: 1.5rem;
    width: 290px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    direction: rtl;
    text-align: right;
}

body.dark-theme .settings-dropdown {
    background: rgba(10, 17, 32, 0.98);
    border-color: rgba(71, 85, 105, 0.45);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

.settings-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-dropdown h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    color: var(--text-main);
}

body.dark-theme .settings-dropdown h4 {
    border-bottom-color: rgba(71, 85, 105, 0.4);
    color: #f8fafc;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

body.dark-theme .setting-item {
    color: #e2e8f0;
}

.setting-item-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
}

.font-controls {
    display: flex;
    gap: 0.25rem;
}

.font-controls button {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-weight: bold;
    font-family: monospace;
    transition: var(--transition);
}

body.dark-theme .font-controls button {
    background: rgba(255, 255, 255, 0.05);
    color: #dbe7f5;
    border-color: rgba(71, 85, 105, 0.45);
}

.font-controls button:hover {
    background: var(--primary);
    color: #fff;
}

body.dark-theme .font-controls button:hover {
    background: rgba(56, 189, 248, 0.18);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.35);
}

.background-style-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.bg-style-option {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 700;
    transition: var(--transition);
}

body.light-theme .bg-style-option {
    background: rgba(248, 250, 252, 0.88);
    border-color: rgba(148, 163, 184, 0.22);
}

.bg-style-option:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.24);
}

.bg-style-option.is-active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(99, 102, 241, 0.18));
    border-color: rgba(14, 165, 233, 0.32);
    color: #eff6ff;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
}

body.light-theme .bg-style-option.is-active {
    color: #0f172a;
}

.settings-reset-btn {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(213, 221, 231, 0.92);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.96);
    color: #23364b;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.settings-reset-btn:hover {
    background: rgba(241, 245, 249, 1);
    border-color: rgba(148, 163, 184, 0.38);
    transform: translateY(-1px);
}

body.dark-theme .settings-reset-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(71, 85, 105, 0.45);
    color: #e2e8f0;
}

body.dark-theme .settings-reset-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.28);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--glass-border);
    transition: .4s;
    border-radius: 24px;
}

body.light-theme .slider {
    background-color: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* ---------------------------------
   Shared Tool/Product Pages
--------------------------------- */
.tool-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 30%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 24%),
        linear-gradient(180deg, #060c17 0%, #091221 38%, #050b14 100%);
}

body.light-theme .tool-page {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.06), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 38%, #f7fafc 100%);
}

body[data-background-style="signal-grid"] .tool-page {
    background:
        linear-gradient(180deg, #08111f 0%, #0b1729 38%, #050b14 100%),
        radial-gradient(circle at 18% 14%, rgba(14, 165, 233, 0.14), transparent 26%),
        radial-gradient(circle at 82% 22%, rgba(16, 185, 129, 0.1), transparent 22%);
}

body.light-theme[data-background-style="signal-grid"] .tool-page {
    background:
        linear-gradient(180deg, #fbfdff 0%, #eef5fd 38%, #f7fbff 100%),
        radial-gradient(circle at 18% 14%, rgba(14, 165, 233, 0.12), transparent 26%),
        radial-gradient(circle at 82% 22%, rgba(16, 185, 129, 0.08), transparent 22%);
}

.tool-page .container {
    max-width: 1580px;
    padding: 0 4%;
}

.tool-page::before,
.tool-page::after {
    content: "";
    position: absolute;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.tool-page::before {
    top: 10rem;
    right: -12rem;
    background: rgba(14, 165, 233, 0.2);
}

.tool-page::after {
    bottom: 12rem;
    left: -14rem;
    background: rgba(99, 102, 241, 0.18);
}

body[data-background-style="signal-grid"] .tool-page::before,
body[data-background-style="signal-grid"] .tool-page::after {
    opacity: 0.18;
}

.home-page .tool-main {
    padding-top: 0.35rem;
}

.home-hero {
    min-height: 96vh;
    padding: 8.5rem 0 4rem;
}

.home-hero-grid {
    align-items: center;
}

.home-shell-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-shell-card,
.home-feature-card,
.home-link-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

body.light-theme .home-shell-card,
body.light-theme .home-feature-card,
body.light-theme .home-link-card {
    background: rgba(248, 250, 252, 0.9);
    border-color: rgba(148, 163, 184, 0.18);
}

.home-shell-card {
    padding: 1.15rem;
}

.home-shell-card strong,
.home-link-card strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.home-shell-card span,
.home-feature-card p,
.home-link-card span {
    color: var(--text-muted);
}

.home-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-hero-stat {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.14);
    text-align: center;
}

.home-hero-stat strong {
    display: block;
    color: var(--primary);
    font-size: 1.45rem;
    margin-bottom: 0.25rem;
}

.home-hero-stat span {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.home-feature-card {
    padding: 1.6rem;
}

.home-feature-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.home-feature-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.18);
}

.home-products-grid .product-card {
    text-decoration: none;
}

.home-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
}

.home-link-card i {
    font-size: 1.3rem;
    color: var(--primary);
}

.home-link-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.26);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.tool-hero {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4.5rem;
    overflow: hidden;
    isolation: isolate;
}

.tool-hero-bg,
.tool-hero::before,
.tool-hero::after {
    content: "";
    position: absolute;
    inset: 0;
}

.tool-hero-bg {
    background: var(--hero-bg-url) center/cover no-repeat;
    opacity: 0.95;
    transform: scale(1.06);
    z-index: 0;
}

body[data-background-style="signal-grid"] .tool-hero-bg {
    background:
        radial-gradient(circle at 14% 18%, rgba(14, 165, 233, 0.2), transparent 22%),
        radial-gradient(circle at 84% 16%, rgba(99, 102, 241, 0.16), transparent 24%),
        radial-gradient(circle at 55% 78%, rgba(16, 185, 129, 0.12), transparent 20%),
        linear-gradient(160deg, #07111f 0%, #0b1830 42%, #091426 68%, #050b14 100%);
}

body.light-theme[data-background-style="signal-grid"] .tool-hero-bg {
    background:
        radial-gradient(circle at 14% 18%, rgba(14, 165, 233, 0.16), transparent 22%),
        radial-gradient(circle at 84% 16%, rgba(99, 102, 241, 0.12), transparent 24%),
        radial-gradient(circle at 55% 78%, rgba(16, 185, 129, 0.1), transparent 20%),
        linear-gradient(160deg, #fbfdff 0%, #eef5fe 42%, #f3f8ff 68%, #f7fbff 100%);
}

.tool-hero::before {
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.2) 0%, rgba(5, 11, 20, 0.82) 100%);
    z-index: 1;
}

body.light-theme .tool-hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.tool-hero::after {
    background:
        radial-gradient(circle at 78% 24%, rgba(14, 165, 233, 0.14), transparent 24%),
        radial-gradient(circle at 20% 82%, rgba(16, 185, 129, 0.1), transparent 22%);
    z-index: 2;
}

.tool-hero-grid,
.tool-section {
    position: relative;
    z-index: 3;
}

.tool-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.tool-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.18);
    color: #38bdf8;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.tool-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: 1.15rem;
    color: var(--text-main);
}

.tool-title span {
    color: var(--primary);
}

.tool-desc {
    max-width: 700px;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.tool-points {
    display: grid;
    gap: 0.9rem;
    margin: 1.5rem 0 2rem;
    list-style: none;
}

.tool-points li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
    font-weight: 600;
}

.tool-points i {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    flex-shrink: 0;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.tool-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.35rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-weight: 700;
    transition: var(--transition);
}

.tool-link-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.24);
}

body.light-theme .tool-link-secondary {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(148, 163, 184, 0.22);
}

.tool-shell,
.tool-card {
    background: rgba(10, 17, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(2, 8, 23, 0.32);
}

body.light-theme .tool-shell,
body.light-theme .tool-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 24px 60px rgba(148, 163, 184, 0.16);
}

.tool-shell {
    padding: 1.5rem;
}

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

.tool-shell-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.tool-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    font-weight: 700;
    font-size: 0.95rem;
}

.tool-shell-media {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.52);
    margin-bottom: 1rem;
}

body.light-theme .tool-shell-media {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.92);
}

.tool-shell-media img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.tool-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.tool-mini-card {
    padding: 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

body.light-theme .tool-mini-card {
    background: rgba(248, 250, 252, 0.88);
    border-color: rgba(148, 163, 184, 0.18);
}

.tool-mini-card strong {
    display: block;
    color: #38bdf8;
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.tool-mini-card span {
    color: var(--text-muted);
    font-weight: 600;
}

.tool-main {
    position: relative;
    z-index: 2;
    padding: 2.4rem 0 6rem;
}

.tool-section {
    margin-bottom: 2rem;
}

.tool-card {
    padding: 2rem;
}

.tool-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tool-kicker {
    color: #38bdf8;
    font-size: 0.96rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.tool-section-title {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.2;
    color: var(--text-main);
}

.tool-section-title2 {
    font-size: clamp(1.8rem, 3vw, 1.7rem);
    line-height: 1.2;
    color: var(--text-main);
}


.tool-section-desc {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.tool-grid-3,
.tool-grid-2,
.tool-grid-4 {
    display: grid;
    gap: 1rem;
}

.tool-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.tool-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.tool-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding: 1.45rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

body.light-theme .tool-step {
    background: rgba(248, 250, 252, 0.86);
    border-color: rgba(148, 163, 184, 0.18);
}

.tool-step::after {
    content: "";
    position: absolute;
    inset: auto -20% -35% auto;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
    pointer-events: none;
}

.tool-step-index,
.tool-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(99, 102, 241, 0.18));
    color: #38bdf8;
    font-size: 1.1rem;
    font-weight: 800;
}

.tool-step-copy {
    position: relative;
    z-index: 1;
}

.tool-step-title,
.tool-feature-title,
.tool-compare-title,
.tool-video-title,
.tool-help-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.tool-step-text,
.tool-feature-text,
.tool-compare-text,
.tool-video-text,
.tool-help-text {
    color: var(--text-muted);
}

.tool-step-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.14);
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.96rem;
}

.tool-feature,
.tool-compare,
.tool-video,
.tool-help-block,
.tool-price {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 1.3rem;
    transition: var(--transition);
}

body.light-theme .tool-feature,
body.light-theme .tool-compare,
body.light-theme .tool-video,
body.light-theme .tool-help-block,
body.light-theme .tool-price {
    background: rgba(248, 250, 252, 0.88);
    border-color: rgba(148, 163, 184, 0.18);
}

.tool-feature:hover,
.tool-compare:hover,
.tool-price:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.2);
}

.tool-icon-box {
    margin-bottom: 0.95rem;
}

.tool-media {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    background: rgba(2, 6, 23, 0.52);
}

body.light-theme .tool-media {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.9);
}

.tool-media img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.tool-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.tool-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text-main);
    font-weight: 600;
}

.tool-list i {
    color: #10b981;
    margin-top: 0.15rem;
}

.tool-list .is-off {
    color: var(--text-muted);
}

.tool-list .is-off i {
    color: #f43f5e;
}

.tool-price-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.4rem 0 0.8rem;
    flex-wrap: wrap;
}

.tool-price-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    font-weight: 800;
}

.tool-price-old {
    color: var(--text-muted);
    font-weight: 700;
}

.tool-video-frame {
    overflow: hidden;
    border-radius: 18px;
    margin-top: 1rem;
}

.tool-video-frame iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

.tool-help-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.2rem;
}

.tool-faq {
    display: grid;
    gap: 0.9rem;
}

.tool-faq-item {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.12);
}

.tool-faq-item strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.tool-faq-item span {
    color: var(--text-muted);
}

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

    .news-hero-card,
    .news-overview-grid {
        grid-template-columns: 1fr;
    }

    .news-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .news-hero-copy,
    .news-cta-copy {
        align-items: center;
        text-align: center;
        max-width: none;
    }

    .news-desc {
        margin: 0 auto;
    }

    .news-hero-actions,
    .news-cta-actions {
        justify-content: center;
    }

    .services-hero-card,
    .services-overview-grid,
    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .services-hero-copy,
    .services-cta-copy {
        align-items: center;
        text-align: center;
        max-width: none;
    }

    .services-desc {
        margin: 0 auto;
    }

    .services-hero-side {
        max-width: 640px;
        margin: 0 auto;
        width: 100%;
    }

    .services-hero-actions,
    .services-cta-actions {
        justify-content: center;
    }

    .home-shell-grid,
    .home-hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-features-grid {
        gap: 1rem;
    }

    .hero-primary-panel {
        padding: 1.5rem 1.15rem;
        max-width: 100%;
    }

    .hero-stack {
        gap: 1.35rem;
    }

    .hero-features-grid .feature-card {
        flex: 0 0 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

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

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .tool-hero-grid,
    .tool-help-layout,
    .tool-grid-3,
    .tool-grid-2 {
        grid-template-columns: 1fr;
    }

    .tool-grid-4,
    .tool-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex !important;
    }

    .navbar {
        top: 0.5rem;
    }

    .navbar .container {
        padding: 0 0.85rem;
    }

    .navbar {
        width: calc(100% - 1.7rem);
        margin-inline: 0.85rem;
    }

    .mobile-menu {
        top: 5.6rem;
        height: calc(100dvh - 5.6rem - 0.5rem);
        max-height: calc(100dvh - 5.6rem - 0.5rem);
        padding-bottom: 1rem;
    }

    .nav-content {
        min-height: 72px;
        padding: 0.75rem 0.85rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .nav-profile {
        min-width: 0;
        flex: 1 1 auto;
        gap: 0.65rem;
        overflow: hidden;
    }

    .nav-profile-copy {
        min-width: 0;
        overflow: hidden;
    }

    .nav-profile-copy strong,
    .nav-profile-copy span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-profile-copy strong {
        font-size: 0.95rem;
    }

    .nav-profile-copy span {
        font-size: 0.82rem;
    }

    .nav-profile-brand {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .logo-img {
        height: 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        gap: 0.4rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
        flex: 0 0 auto;
        margin-inline-start: 0;
    }

    .nav-square-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        flex: 0 0 40px;
        font-size: 0.96rem;
    }

    .font-control-btn {
        font-size: 0.98rem;
    }

    .services-body::before,
    body.light-theme.services-body::before,
    .news-body::before,
    body.light-theme.news-body::before {
        background-size: auto, 155% auto !important;
        background-position: center top, center top !important;
    }

    body[data-background-style="signal-grid"].services-body::before,
    body.light-theme[data-background-style="signal-grid"].services-body::before,
    body[data-background-style="signal-grid"].news-body::before,
    body.light-theme[data-background-style="signal-grid"].news-body::before {
        background-size: auto, auto, auto, auto, auto !important;
        background-position: center top, center top, center top, center top, center top !important;
    }

    .news-page {
        padding-top: 132px;
    }

    .news-hero-card,
    .news-overview-card,
    .news-card,
    .news-cta {
        padding: 1.4rem;
    }

    .news-title {
        font-size: clamp(1.85rem, 9vw, 2.45rem);
    }

    .news-page-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .news-card-copy h2 {
        font-size: 1.3rem;
    }

    .services-page {
        padding-top: 132px;
    }

    .services-hero-card,
    .service-panel,
    .overview-stat,
    .services-cta {
        padding: 1.4rem;
    }

    .services-title {
        font-size: clamp(2rem, 4vw, 2.25rem);
    }

    .services-page-title {
        font-size: clamp(1.55rem, 3.4vw, 2rem);
    }

    .services-mini-grid {
        grid-template-columns: 1fr;
    }

    .services-hero-pills {
        justify-content: center;
    }

    .service-panel-head h2 {
        font-size: 1.3rem;
    }

    .service-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .service-item-copy h3 {
        font-size: 1.15rem;
    }

    .service-item-arrow {
        order: 0;
    }

    .news-card {
        align-items: flex-start;
        min-height: auto;
    }

    .home-hero {
        padding: 7.5rem 0 3.25rem;
    }

    .hero-content {
        gap: 1.25rem;
    }

    .hero-primary-panel {
        padding: 1.15rem 0.9rem 1rem;
    }

    .hero-inline-head h2 {
        font-size: 1.5rem;
    }

    .hero-inline-head p {
        font-size: 0.95rem;
        padding: 0 0.4rem;
    }

    .hero-features-panel {
        gap: 0.85rem;
    }

    .hero-features-carousel {
        gap: 0.75rem;
    }

    .hero-features-grid .feature-card {
        padding: 1.15rem 1rem;
        min-height: 210px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-features-grid .feature-card h3 {
        font-size: 1.45rem;
        margin-bottom: 0.65rem;
    }

    .hero-features-grid .feature-card p {
        font-size: 0.96rem;
        line-height: 1.75;
        margin-bottom: 0;
    }

    .hero-features-grid .feature-icon {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
        margin-bottom: 0.85rem;
    }

    .floating-actions {
        right: 0.85rem;
        bottom: 0.9rem;
        gap: 0.75rem;
    }

    .floating-action {
        width: 50px;
        min-height: 50px;
        border-radius: 16px;
    }

    .floating-action:hover,
    .floating-action:focus-visible {
        width: 154px;
    }

    .floating-action-icon {
        width: 50px;
        min-width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .floating-action-label {
        font-size: 0.88rem;
    }

    .hero-features-dots {
        gap: 0.45rem;
    }

    .hero-features-dots button {
        width: 8px;
        height: 8px;
    }

    .hero-features-dots button.is-active {
        width: 22px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .product-filter-badge {
        top: -12px;
        right: 0.85rem;
        font-size: 0.76rem;
    }

    .products {
        margin-top: -1.5rem;
        padding-top: 3.25rem;
    }

    .products .products-grid {
        grid-template-columns: 1fr;
    }

    .products::before {
        height: 80px;
    }

    .hero-stats {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hero-stats::-webkit-scrollbar {
        display: none;
    }

    .stat-card {
        flex: 0 0 140px;
        scroll-snap-align: center;
        padding: 1.5rem 1rem;
    }

    .stat-num {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
        white-space: normal;
    }

    .title-flex {
        flex-direction: column;
        align-items: flex-start;

    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .tool-page .container {
        padding: 0 5%;
    }

    .tool-hero {
        min-height: auto;
        padding: 7.4rem 0 3rem;
    }

    .tool-main {
        padding: 1.5rem 0 4.5rem;
    }

    .tool-shell,
    .tool-card {
        border-radius: 24px;
    }

    .tool-card,
    .tool-shell {
        padding: 1.35rem;
    }

    .tool-grid-4,
    .tool-mini-grid {
        grid-template-columns: 1fr;
    }

    .tool-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-shell-media img,
    .tool-media img {
        height: auto;
    }

    .tool-video-frame iframe {
        min-height: 220px;
    }

    .tool-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tool-actions .btn,
    .tool-link-secondary {
        width: 100%;
        justify-content: center;
    }

    .programs-head {
        margin-bottom: 2rem;
    }

    .programs-head p {
        font-size: 0.98rem;
    }

    .program-card {
        border-radius: 24px;
    }

    .program-card-media {
        min-height: 0;
        padding: 1.4rem 1.4rem 0;
    }

    .program-card-body {
        padding: 2.55rem 1.25rem 1.25rem;
    }

    .program-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .program-link {
        width: 100%;
    }

    .program-card-connector::before {
        height: 18px;
    }

    .video-hub-hero {
        padding: 7.6rem 0 3rem;
    }

    .video-hub-hero-grid,
    .video-hub-shell {
        grid-template-columns: 1fr;
    }

    .video-hub-page .tool-main .container {
        display: flex;
        flex-direction: column;
    }

    .video-hub-page .tool-main .container>.tool-section:first-child {
        order: 2;
    }

    .video-hub-page .tool-main .container>#video-player-area {
        order: 1;
    }

    .video-player-panel {
        order: 1;
    }

    .video-playlist-panel {
        order: 2;
    }

    .video-hub-hero-card {
        grid-template-columns: 1fr;
    }

    .video-hub-hero-media {
        min-height: 180px;
    }

    .video-overview-grid {
        grid-template-columns: 1fr;
    }

    .video-current-header,
    .video-panel-head,
    .video-overview-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .video-stat-grid {
        grid-template-columns: 1fr;
    }

    .video-playlist-list {
        max-height: 520px;
    }

    .video-player-panel,
    .video-playlist-panel {
        padding: 1.15rem;
        border-radius: 24px;
    }

    .video-player-frame {
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: calc(100% - 1rem);
        margin-inline: 0.5rem;
    }

    .navbar .container {
        padding: 0 0.5rem;
    }

    .mobile-menu {
        top: 5.2rem;
        width: min(300px, calc(100vw - 1rem));
        height: calc(100dvh - 5.2rem - 0.5rem);
        max-height: calc(100dvh - 5.2rem - 0.5rem);
    }

    .nav-content {
        min-height: 68px;
        padding: 0.7rem;
        gap: 0.55rem;
        border-radius: 24px;
    }

    .nav-profile {
        gap: 0.55rem;
    }

    .nav-profile-copy strong {
        font-size: 0.88rem;
    }

    .nav-profile-copy span {
        font-size: 0.76rem;
    }

    .nav-square-btn {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 11px;
        font-size: 0.9rem;
    }

    .nav-brand-btn {
        font-size: 1.08rem;
    }

    .video-hero-pills {
        gap: 0.55rem;
    }

    .video-hero-pills span,
    .video-category-btn {
        width: 100%;
        justify-content: center;
    }

    .video-player-actions .btn,
    .video-overview-footer .btn {
        width: 100%;
    }

    .video-playlist-item {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .video-playlist-index {
        display: none;
    }
}
