:root {
    --primary: #0ea5e9;
    --secondary: #22d3ee;
    --accent: #2563eb;
    --bg: #f8fbff;
    --surface: #ffffff;
    --border: rgba(148, 163, 184, 0.28);
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --header-surface: #ffffff;
    --header-text: #0d5da6;
    --header-hover: rgba(13, 93, 166, 0.14);
    --header-active: #0d5da6;
    --footer-bg: #0f172a;
}

body[data-theme='dark'] {
    --bg: #0a1426;
    --surface: #111d31;
    --text: #e2e8f0;
    --muted: #9fb0c8;
    --card: #101b2d;
    --border: rgba(148, 163, 184, 0.3);
    --shadow: 0 14px 34px rgba(2, 6, 23, 0.45);
    --header-surface: #0f172a;
    --header-text: #9cc7ff;
    --header-hover: rgba(59, 130, 246, 0.18);
    --header-active: #1e64c8;
    --footer-bg: #050b16;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cairo', 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background-color 0.25s ease, color 0.25s ease;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 8px 0 6px;
    background: transparent;
}

.cursor-follow-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 260px;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    z-index: 35;
    --cf-speed: 0;
    --cf-tail-x: 0px;
    --cf-tail-y: 0px;
    transform: translate3d(-999px, -999px, 0) translate(-50%, -50%);
    background: radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.38) 16%, color-mix(in srgb, var(--secondary) 78%, #fff 22%) 34%, color-mix(in srgb, var(--primary) 70%, #fff 30%) 56%, rgba(14, 165, 233, 0.08) 70%, transparent 82%);
    mix-blend-mode: screen;
    filter: saturate(1.25);
    transition: opacity 0.24s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-follow-effect::before {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.52) 0%, rgba(186, 230, 253, 0.28) 42%, rgba(14, 165, 233, 0) 78%);
    transform: translate3d(var(--cf-tail-x), var(--cf-tail-y), 0);
    filter: blur(20px);
    opacity: calc(0.34 + (var(--cf-speed) * 0.38));
}

.cursor-follow-effect::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(calc(0.9 + (var(--cf-speed) * 0.22)));
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(219, 234, 254, 0.86) 42%, rgba(125, 211, 252, 0.2) 70%, rgba(125, 211, 252, 0) 100%);
    box-shadow: 0 0 52px rgba(14, 165, 233, 0.42);
}

.cursor-follow-effect.is-visible {
    opacity: 0.4;
}

.cursor-follow-effect.is-pressed {
    width: 228px;
    height: 228px;
}

body[data-theme='dark'] .cursor-follow-effect {
    opacity: 0;
    background: radial-gradient(circle at 40% 38%, rgba(255, 255, 255, 0.8) 0%, rgba(186, 230, 253, 0.44) 14%, rgba(56, 189, 248, 0.38) 33%, rgba(59, 130, 246, 0.24) 53%, rgba(37, 99, 235, 0.1) 70%, transparent 82%);
    filter: saturate(1.28);
}

body[data-theme='dark'] .cursor-follow-effect.is-visible {
    opacity: 0.5;
}

.site-header-row {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar {
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    background: var(--header-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    color: var(--header-text);
}

body[data-theme='dark'] .top-bar {
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.45);
}

.top-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    position: relative;
}

.top-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    max-width: 260px;
}

.top-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--header-active), var(--primary));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    overflow: hidden;
}

.top-brand-mark.has-image {
    background: transparent;
    border: 1px solid var(--border);
}

.top-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.top-brand-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--header-text);
    line-height: 1;
}

.top-brand-text.has-image img {
    display: block;
    width: auto;
    max-width: 180px;
}

.top-brand.only-mark {
    max-width: 64px;
}

.top-brand.only-text {
    max-width: 220px;
}

.top-strip-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    flex: 0 1 auto;
    justify-content: flex-start;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    height: 0;
}

.nav-menu a {
    color: var(--header-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: clamp(0.9rem, 0.94vw, 0.98rem);
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--header-active);
    background: var(--header-hover);
}

.nav-menu a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--header-active), #0c56a0);
    box-shadow: 0 12px 24px rgba(13, 93, 166, 0.28);
}

.nav-menu a.active:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--header-active), #0c56a0);
}

.nav-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--header-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    background: var(--header-hover);
}

.theme-toggle .icon-sun {
    display: none;
}

body[data-theme='dark'] .theme-toggle .icon-moon {
    display: none;
}

body[data-theme='dark'] .theme-toggle .icon-sun {
    display: inline-flex;
}

@media (max-width: 1200px) {
    .site-header-row {
        width: fit-content;
        max-width: 100%;
    }

    .nav-menu {
        gap: 3px;
    }

    .nav-menu a {
        font-size: 0.92rem;
        padding: 7px 9px;
    }

    .top-brand-text.has-image img {
        max-width: 150px;
    }
}

.btn {
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--accent);
    background: var(--surface);
}

.btn:hover {
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--header-text);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    transform: scaleX(0);
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 65%);
    top: -120px;
    right: -120px;
    filter: blur(2px);
}

.hero::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
    bottom: -160px;
    left: -120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.2rem, 3vw, 3.6rem);
    margin: 0 0 12px;
}

.hero-title-slot {
    min-height: 1.25em;
}

.hero-rotating-title {
    display: block;
    margin: 0;
    will-change: transform, opacity, filter;
    transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease;
}

.hero-rotating-title.is-exiting {
    opacity: 0;
    transform: translateX(-34px) scale(0.985);
    filter: blur(1px);
}

.hero-rotating-title.is-entering {
    opacity: 0;
    transform: translateX(34px) scale(0.985);
    filter: blur(1px);
}

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-rotating-title {
        transition: none;
    }
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card {
    background: var(--card);
    padding: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.stat {
    background: rgba(14, 165, 233, 0.08);
    padding: 12px;
    border-radius: 14px;
    text-align: center;
}

.section {
    padding: 70px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.section-title p {
    margin: 0;
    color: var(--muted);
    max-width: 520px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    margin: 0 0 8px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.package-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
    overflow: hidden;
}

.package-card.featured {
    border: 2px solid rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.package-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 10px;
}

.price {
    font-weight: 700;
    color: var(--accent);
}

.package-card ul {
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.package-card li::before {
    content: '✓';
    color: var(--primary);
    margin-left: 6px;
}

#packages .packages-carousel {
    display: grid;
    gap: 16px;
}

#packages .packages-carousel-viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 6px 2px;
}

#packages .packages-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    direction: ltr;
    transition: transform 0.65s linear;
    will-change: transform;
}

#packages .packages-carousel-card {
    width: 260px;
    min-width: 260px;
    min-height: 290px;
    padding: 24px 18px;
    text-align: center;
    display: grid;
    align-content: flex-start;
    gap: 8px;
    direction: rtl;
}

#packages .packages-carousel-card .price {
    margin-top: 2px;
    font-size: 2rem;
}

#packages .packages-carousel-card p {
    font-size: 0.98rem;
}

#packages .packages-carousel-card ul {
    margin-top: 10px;
}

#packages .packages-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#packages .packages-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#packages .packages-carousel-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 233, 0.42);
    background: rgba(14, 165, 233, 0.12);
}

#packages .packages-carousel-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 980px) {
    #packages .packages-carousel-card {
        width: 230px;
        min-width: 230px;
        min-height: 270px;
    }
}

@media (max-width: 600px) {
    #packages .packages-carousel-card {
        width: 200px;
        min-width: 200px;
        min-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #packages .packages-carousel-track {
        transition: none;
    }
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.coverage-item {
    padding: 16px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
}

.live-banner {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(37, 99, 235, 0.12));
    padding: 30px;
    border-radius: var(--radius);
    display: grid;
    gap: 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.contact-card {
    padding: 20px;
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.faq-section {
    padding-top: 40px;
}

.faq-section-title {
    justify-content: center;
    text-align: center;
}

.faq-section-title p {
    margin-top: 8px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 700;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 12px;
    align-items: center;
    text-align: right;
    cursor: pointer;
}

.faq-icon {
    color: var(--accent);
    transition: transform 0.2s ease;
}

.faq-answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--muted);
    line-height: 1.9;
}

.faq-item.is-open .faq-answer-wrap {
    grid-template-rows: 1fr;
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

body[data-theme='dark'] .faq-item {
    background: rgba(16, 27, 45, 0.92);
    border-color: var(--border);
}

body[data-theme='dark'] .faq-question {
    color: #e2e8f0;
}

body[data-theme='dark'] .faq-answer-inner p {
    color: #cbd5e1;
}

.contact-modern-section {
    position: relative;
}

.contact-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.contact-showcase-card {
    position: relative;
    padding: 26px 20px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.contact-showcase-card h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.contact-showcase-card p {
    margin: 0;
    color: var(--muted);
    min-height: 2.6em;
}

.contact-showcase-icon {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
}

.contact-showcase-icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.contact-showcase-card.location .contact-showcase-icon {
    background: #ef4444;
}

.contact-showcase-card.whatsapp .contact-showcase-icon {
    background: #22c55e;
}

.contact-showcase-card.phone .contact-showcase-icon {
    background: #1d4ed8;
}

.contact-showcase-card .btn {
    min-width: 160px;
}

.company-phones-panel {
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(120deg, #0d5da6, #0e6ab3 55%, #0b8bbb);
    color: #f8fafc;
    margin-bottom: 24px;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
}

.company-phones-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.company-phones-head h3 {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2.5rem);
}

.company-phones-head p {
    margin: 0;
    color: rgba(248, 250, 252, 0.9);
}

.company-phones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.company-phone-card {
    border: 1px solid rgba(186, 230, 253, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    padding: 14px 16px;
    color: #f8fafc;
    display: grid;
    gap: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.company-phone-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.company-phone-card span {
    font-size: 1.05rem;
    font-weight: 700;
}

.company-phone-card strong {
    font-size: 1.9rem;
    line-height: 1.2;
}

.company-phone-card small {
    width: fit-content;
    margin-top: 2px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(134, 239, 172, 0.4);
    color: #dcfce7;
    font-size: 0.78rem;
}

.company-phone-card.is-primary {
    border-color: rgba(134, 239, 172, 0.6);
    box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.35);
}

.contact-extra-grid .contact-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.site-footer {
    background: var(--footer-bg);
    color: #e2e8f0;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.site-footer a,
.site-footer span,
.site-footer p {
    color: rgba(226, 232, 240, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer-rights-line {
    margin: 10px auto 0;
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(37, 99, 235, 0.24));
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.25);
    color: rgba(226, 232, 240, 0.95);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-rights-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-rights-text strong {
    color: #f8fafc;
    font-weight: 800;
}

.footer-rights-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.5);
    background: rgba(15, 23, 42, 0.3);
    color: #e0f2fe;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

@media (max-width: 720px) {
    .footer-rights-line {
        border-radius: 16px;
        width: 100%;
        padding: 10px;
        font-size: 0.84rem;
    }

    .footer-rights-year {
        font-size: 0.75rem;
    }
}

.live-chat-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.live-chat-toggle {
    border: 1px solid rgba(14, 165, 233, 0.32);
    background: linear-gradient(135deg, var(--header-active), var(--primary));
    color: #fff;
    border-radius: 999px;
    min-height: 54px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(13, 93, 166, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(13, 93, 166, 0.32);
}

.live-chat-toggle .material-symbols-rounded {
    font-size: 1.35rem;
}

.live-chat-toggle-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.live-chat-toggle-badge.is-visible {
    display: inline-flex;
}

.live-chat-panel[hidden],
.live-chat-toast[hidden] {
    display: none !important;
}

.live-chat-panel {
    width: min(380px, calc(100vw - 24px));
    max-height: min(72vh, 640px);
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto auto minmax(220px, 1fr) auto;
    animation: live-chat-fade-up 0.24s ease;
}

.live-chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(37, 99, 235, 0.08));
}

.live-chat-panel-head h3 {
    margin: 0;
    font-size: 1.02rem;
    color: var(--text);
}

.live-chat-panel-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.live-chat-presence-line {
    margin: 4px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.live-chat-presence-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.live-chat-presence-dot.is-online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.live-chat-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.live-chat-welcome {
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.live-chat-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.live-chat-meta input {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: var(--surface);
    color: var(--text);
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.88rem;
}

.live-chat-meta input:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.65);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.live-chat-meta input:invalid {
    border-color: rgba(239, 68, 68, 0.55);
}

.live-chat-meta input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.live-chat-messages {
    padding: 12px 14px;
    overflow: auto;
    display: grid;
    gap: 10px;
    background: color-mix(in srgb, var(--bg) 64%, #fff 36%);
}

.live-chat-empty {
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.live-chat-msg {
    display: flex;
}

.live-chat-msg.is-client {
    justify-content: flex-end;
}

.live-chat-msg.is-admin {
    justify-content: flex-start;
}

.live-chat-msg-bubble {
    max-width: min(78%, 286px);
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 9px 11px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.live-chat-msg.is-client .live-chat-msg-bubble {
    background: rgba(14, 165, 233, 0.14);
    border-color: rgba(14, 165, 233, 0.3);
}

.live-chat-msg-bubble p {
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.55;
    font-size: 0.9rem;
}

.live-chat-msg-bubble small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.72rem;
}

.live-chat-form {
    border-top: 1px solid var(--border);
    padding: 10px 14px 14px;
    display: grid;
    gap: 8px;
}

.live-chat-session-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.live-chat-session-hint {
    color: var(--muted);
    font-size: 0.82rem;
}

.live-chat-session-hint strong {
    color: var(--text);
}

.live-chat-end-btn {
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    padding: 6px 12px;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.live-chat-end-btn:hover {
    border-color: rgba(239, 68, 68, 0.5);
    color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
}

.live-chat-form textarea {
    width: 100%;
    min-height: 80px;
    max-height: 180px;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: var(--surface);
    color: var(--text);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.92rem;
}

.live-chat-form textarea:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.65);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.live-chat-form button {
    width: fit-content;
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--header-active), var(--primary));
    color: #fff;
    cursor: pointer;
}

.live-chat-form button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.live-chat-toast {
    width: min(340px, calc(100vw - 24px));
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.2);
    padding: 10px 42px 10px 12px;
    position: relative;
    animation: live-chat-fade-up 0.24s ease;
}

.live-chat-toast strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
}

.live-chat-toast p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.5;
}

.live-chat-toast-close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body[data-theme='dark'] .live-chat-toggle {
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.52);
}

body[data-theme='dark'] .live-chat-panel {
    box-shadow: 0 24px 40px rgba(2, 6, 23, 0.58);
}

body[data-theme='dark'] .live-chat-msg-bubble {
    background: rgba(15, 23, 42, 0.92);
}

body[data-theme='dark'] .live-chat-msg.is-client .live-chat-msg-bubble {
    background: rgba(30, 64, 175, 0.35);
    border-color: rgba(96, 165, 250, 0.38);
}

body[data-theme='dark'] .live-chat-end-btn {
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

body[data-theme='dark'] .live-chat-end-btn:hover {
    border-color: rgba(248, 113, 113, 0.48);
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
}

@keyframes live-chat-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .live-chat-widget {
        right: 10px;
        bottom: 10px;
    }

    .live-chat-toggle {
        min-height: 50px;
        padding: 0 14px;
    }

    .live-chat-toggle-text {
        display: none;
    }

    .live-chat-panel {
        width: min(100vw - 14px, 380px);
        max-height: calc(100vh - 120px);
        grid-template-rows: auto auto auto minmax(200px, 1fr) auto;
    }

    .live-chat-meta {
        grid-template-columns: 1fr;
    }
}

.form-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 26px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
}

.card iframe,
.card video {
    width: 100%;
    border: 0;
    border-radius: 14px;
    min-height: 320px;
    aspect-ratio: 16 / 9;
}

.public-map {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
    margin-top: 16px;
    position: relative;
    z-index: 0;
}

.public-map .leaflet-container {
    position: relative;
    z-index: 0;
}

.hls-player video,
.stream-video {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    background: #000;
}

.stream-audio {
    width: 100%;
}

.public-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.public-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.public-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.public-legend .dot-active {
    background: #22c55e;
}

.public-legend .dot-maint {
    background: #f59e0b;
}

.public-legend .dot-off {
    background: #ef4444;
}

.public-legend .dot-zone {
    background: #3b82f6;
}

@media (max-width: 600px) {
    .public-map {
        height: 320px;
    }

    .hls-player video,
    .stream-video {
        height: 280px;
    }

    .public-legend {
        grid-template-columns: 1fr 1fr;
    }
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--text);
    margin-bottom: 16px;
}

body[data-theme='dark'] .contact-showcase-card {
    background: rgba(16, 27, 45, 0.92);
    border-color: var(--border);
}

body[data-theme='dark'] .company-phones-panel {
    background: linear-gradient(120deg, #0e2a4f, #12315c 55%, #16406f);
}

body[data-theme='dark'] .coverage-item,
body[data-theme='dark'] .stat,
body[data-theme='dark'] .live-banner,
body[data-theme='dark'] .magazine-chip {
    background: rgba(59, 130, 246, 0.15);
}

body[data-theme='dark'] .magazine-shell,
body[data-theme='dark'] .magazine-screen,
body[data-theme='dark'] .magazine-meta div,
body[data-theme='dark'] .magazine-host,
body[data-theme='dark'] .magazine-screen-bar,
body[data-theme='dark'] .public-map-wrapper,
body[data-theme='dark'] .public-map-stats .stat-card,
body[data-theme='dark'] .public-legend {
    background: rgba(16, 27, 45, 0.92);
    border-color: var(--border);
}

body[data-theme='dark'] .magazine-points li {
    color: #dbeafe;
}

body[data-theme='dark'] .magazine-lines {
    background: rgba(148, 163, 184, 0.48);
}

body[data-theme='dark'] .magazine-screen-bar span {
    background: rgba(191, 219, 254, 0.82);
}

body[data-theme='dark'] .magazine-grid div {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(14, 165, 233, 0.28));
    border-color: rgba(148, 163, 184, 0.4);
}

body[data-theme='dark'] .magazine-meta strong {
    color: #f1f5f9;
}

body[data-theme='dark'] .magazine-meta p {
    color: #cbd5e1;
}

.section.animate [data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section.animate.in-view [data-animate] {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .cursor-follow-effect {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu.open {
        display: grid;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        background: var(--surface);
        padding: 16px;
        border-radius: 16px;
        box-shadow: var(--shadow);
        gap: 12px;
        z-index: 20;
        border: 1px solid var(--border);
    }

    .site-header-row {
        width: 100%;
        max-width: 100%;
    }

    .top-bar {
        border-radius: 18px;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu a {
        justify-content: flex-start;
        font-size: 0.95rem;
    }

    .top-strip {
        justify-content: space-between;
    }

    .top-brand-text.has-image img {
        max-width: 130px;
    }

    .company-phones-head {
        align-items: flex-start;
    }

    .company-phone-card strong {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .faq-question {
        font-size: 0.98rem;
        padding: 14px 16px;
    }

    .faq-answer-inner p {
        padding: 0 16px 14px;
    }

    .site-header-row {
        width: 100%;
        position: relative;
        display: block;
    }

    .top-bar {
        width: 100%;
        border-radius: 14px;
    }

    .top-strip {
        padding: 6px 8px;
    }

    .site-header-row.has-top-brand .top-strip {
        padding-top: 44px;
    }

    .site-header-row.has-top-brand .top-brand {
        position: absolute;
        top: 7px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
        max-width: calc(100% - 24px);
        justify-content: center;
    }

    .top-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .top-brand-text.has-image img {
        max-width: 170px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-showcase-card {
        padding: 22px 16px 18px;
    }

    .contact-showcase-card h3 {
        font-size: 1.7rem;
    }

    .contact-showcase-icon {
        width: 66px;
        height: 66px;
    }

    .contact-showcase-icon svg {
        width: 30px;
        height: 30px;
    }

    .company-phones-panel {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .company-phones-grid {
        grid-template-columns: 1fr;
    }

    .company-phone-card span {
        font-size: 0.98rem;
    }

    .company-phone-card strong {
        font-size: 1.3rem;
    }
}


/* Public coverage map overlay (admin-like) */
.public-map-wrapper {
    position: relative;
    margin-top: 16px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #fff;
}

.public-map {
    width: 100%;
    height: 420px;
    border: 0;
    margin: 0;
    border-radius: 0;
    position: relative;
    z-index: 0;
}

.public-map .leaflet-container {
    position: relative;
    z-index: 0;
}

.public-map-stats {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    z-index: 5;
}

.public-map-stats .stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
    min-width: 160px;
}

.public-map-stats .stat-card span {
    color: var(--muted);
    font-size: 0.85rem;
}

.public-map-stats .stat-card strong {
    display: block;
    font-size: 1.2rem;
    margin-top: 6px;
}

.public-map-stats .status-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.public-map-stats .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
}

.public-map-stats .status-active {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
}

.public-map-stats .status-maint {
    color: #d97706;
    background: rgba(245, 158, 11, 0.12);
}

.public-map-stats .status-off {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.12);
}

.public-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 6px;
    z-index: 5;
}

.public-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.public-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.public-legend .dot-active {
    background: #22c55e;
}

.public-legend .dot-maint {
    background: #f59e0b;
}

.public-legend .dot-off {
    background: #ef4444;
}

.public-legend .dot-zone {
    background: #3b82f6;
}

@media (max-width: 600px) {
    .public-map {
        height: 320px;
    }

    .public-map-wrapper {
        overflow: visible;
    }

    .public-map-stats,
    .public-legend {
        position: static;
        margin-top: 12px;
    }

    .public-map-stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* Magazine page */
.magazine-section {
    position: relative;
}

.magazine-shell {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    padding: 30px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 255, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.magazine-shell::after {
    content: '';
    position: absolute;
    inset: auto -80px -100px auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 68%);
    pointer-events: none;
}

.magazine-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
    line-height: 1.25;
}

.magazine-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.magazine-lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
    max-width: 58ch;
}

.magazine-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.magazine-host {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.75);
    color: var(--muted);
    font-size: 0.88rem;
}

.magazine-points {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.magazine-points li {
    position: relative;
    padding-right: 24px;
    color: var(--text);
}

.magazine-points li::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.magazine-preview {
    position: relative;
    display: grid;
    gap: 14px;
}

.magazine-preview-glow {
    position: absolute;
    inset: -20px -10px auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
    z-index: 0;
}

.magazine-screen {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.magazine-screen-bar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(241, 245, 249, 0.82);
}

.magazine-screen-bar span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.6);
}

.magazine-screen-body {
    padding: 16px;
    display: grid;
    gap: 10px;
}

.magazine-chip {
    display: inline-flex;
    width: fit-content;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.12);
}

.magazine-lines {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.26);
}

.magazine-lines.short {
    width: 72%;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.magazine-grid div {
    height: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.18));
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.magazine-meta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.magazine-meta div {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    padding: 12px;
}

.magazine-meta strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.magazine-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

@media (max-width: 980px) {
    .magazine-shell {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .magazine-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .magazine-shell {
        border-radius: 18px;
        padding: 18px;
        gap: 20px;
    }

    .magazine-lead {
        font-size: 0.98rem;
    }

    .magazine-actions {
        gap: 10px;
    }

    .magazine-host {
        font-size: 0.82rem;
    }
}


/* Live channels catalog */
.live-catalog-section .section-title {
    align-items: flex-end;
}

.live-title-row {
    align-items: flex-start;
}

.live-account-wrap {
    position: relative;
    min-width: 240px;
}

.live-account-toggle {
    min-width: 170px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d5da6, #0f74c7);
    color: #fff;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(13, 93, 166, 0.28);
}

.live-account-chevron {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.live-account-toggle[aria-expanded='true'] .live-account-chevron {
    transform: rotate(180deg);
}

.live-account-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, 92vw);
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.18);
    z-index: 20;
}

.live-account-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.live-account-head h3 {
    margin: 0;
    font-size: 1.45rem;
}

.live-account-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.live-account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(14, 165, 233, 0.12);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.live-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-account-avatar span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.live-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.live-account-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.live-account-item span {
    color: var(--muted);
    font-size: 0.84rem;
}

.live-account-item strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
}

.live-account-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.85rem;
    color: #166534;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.live-account-logout {
    width: 100%;
}

body[data-theme='dark'] .live-account-panel {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow: 0 28px 48px rgba(2, 6, 23, 0.54);
}

body[data-theme='dark'] .live-account-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.34);
}

.live-layout {
    display: grid;
    gap: 20px;
}

.live-player-card {
    padding: 20px;
}

.live-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.live-player-head h3 {
    margin: 0;
    font-size: 1.2rem;
}

.live-player-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.live-channel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
}

.live-player-frame iframe,
.live-player-frame video,
.live-player-frame .hls-player video,
.live-player-frame .stream-video {
    width: 100%;
    min-height: 420px;
    border-radius: 14px;
    border: 0;
    background: #000;
}

.live-channels-card {
    padding: 20px;
}

.live-channels-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.live-category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.live-category-tab {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.live-category-tab:hover {
    border-color: rgba(14, 165, 233, 0.5);
    color: var(--accent);
}

.live-category-tab.is-active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
}

.live-search-wrap {
    max-width: 340px;
}

.live-search-wrap input {
    width: 100%;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0 14px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text);
}

.live-search-wrap input:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.65);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.live-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.live-channel-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.live-channel-card:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.live-channel-card.is-active {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.live-channel-thumb {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(14, 165, 233, 0.08);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.live-channel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-channel-thumb span {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
}

.live-channel-card h4 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text);
}

.live-channel-card p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.live-empty-result {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

@media (max-width: 980px) {
    .live-catalog-section .section-title {
        align-items: flex-start;
    }

    .live-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .live-account-wrap {
        width: fit-content;
        max-width: 100%;
    }

    .live-player-frame iframe,
    .live-player-frame video,
    .live-player-frame .hls-player video,
    .live-player-frame .stream-video {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .live-account-wrap {
        width: 100%;
    }

    .live-account-toggle {
        width: 100%;
    }

    .live-account-panel {
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .live-account-grid {
        grid-template-columns: 1fr;
    }

    .live-player-card,
    .live-channels-card {
        padding: 16px;
    }

    .live-player-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .live-category-tabs {
        gap: 8px;
    }

    .live-category-tab {
        padding: 7px 12px;
        font-size: 0.86rem;
    }

    .live-channels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
