/* ============================================================
   IPTV MEDIA PRO ROMANIA — CSS Match Layer
   Pixel-perfect: tokens from design-tokens.md, breakpoints.md
   ============================================================ */

/* --- CSS Custom Properties (Default / Dark Theme) --- */
:root,
[data-theme="default"] {
    --background: 220 30% 5%;
    --foreground: 210 40% 98%;
    --navbar: 220 30% 5%;
    --navbar-foreground: 210 40% 98%;
    --card: 220 25% 8%;
    --card-foreground: 210 40% 98%;
    --primary: 221 83% 53%;
    --primary-foreground: 210 40% 98%;
    --secondary: 0 72% 51%;
    --secondary-foreground: 210 40% 98%;
    --muted: 220 20% 15%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 221 83% 53%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 84.2% 60.2%;
    --border: 220 20% 18%;
    --input: 220 20% 18%;
    --ring: 221 83% 53%;
    --radius: 0.75rem;

    --gradient-hero: linear-gradient(135deg, hsl(220 30% 5%) 0%, hsl(221 83% 15%) 50%, hsl(220 30% 5%) 100%);
    --gradient-card: linear-gradient(135deg, hsl(220 25% 8%) 0%, hsl(220 25% 12%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(221 83% 53%) 0%, hsl(0 72% 51%) 100%);
    --gradient-section: linear-gradient(135deg, hsl(220 30% 8%) 0%, hsl(221 83% 20%) 50%, hsl(220 30% 8%) 100%);
    --shadow-glow: 0 0 40px hsl(221 83% 53% / .3);
    --shadow-card: 0 10px 40px -10px hsl(0 0% 0% / .5);
}

/* Christmas theme */
[data-theme="christmas"] {
    --background: 355 25% 8%;
    --primary: 355 78% 45%;
    --secondary: 142 71% 35%;
    --accent: 45 100% 51%;
    --card: 355 20% 12%;
    --border: 355 20% 20%;
}

/* Light theme */
[data-theme="light"] {
    --background: 210 40% 98%;
    --foreground: 222 47% 11%;
    --primary: 221 83% 53%;
    --secondary: 45 100% 51%;
    --accent: 0 84% 60%;
    --card: 0 0% 100%;
    --border: 214 32% 91%;
}

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

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

body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: hsl(var(--accent));
}

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

ul, ol {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-accent);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: hsl(var(--primary-foreground));
}

.btn--accent {
    background: var(--gradient-accent);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-glow);
    padding: 0.75rem 2rem;
    font-size: 1rem;
}
.btn--accent:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: hsl(var(--primary-foreground));
}

.btn--outline {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}
.btn--outline:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
}
.btn--sm:hover {
    opacity: 0.85;
    color: hsl(var(--primary-foreground));
}

.btn--block {
    width: 100%;
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}
.section-subtitle {
    text-align: center;
    color: hsl(var(--muted-foreground));
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsl(var(--navbar) / .7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 10px 30px hsl(0 0% 0% / .15);
    transition: all 0.3s;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(var(--primary) / .05) 0%, transparent 50%, hsl(var(--secondary) / .05) 100%);
    pointer-events: none;
}

.navbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

@media (min-width: 768px) {
    .navbar-inner {
        padding: 0.75rem 2rem;
    }
}

.navbar-logo img {
    height: 36px;
    width: auto;
}

.navbar-links {
    display: none;
    align-items: center;
    gap: 0.125rem;
}

@media (min-width: 1024px) {
    .navbar-links {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: hsl(var(--navbar-foreground));
    border-radius: calc(var(--radius) - 4px);
    transition: all 0.3s;
}
.nav-link:hover {
    background: hsl(var(--foreground) / .1);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    color: hsl(var(--foreground));
}
.nav-link.active {
    color: hsl(var(--primary));
    background: hsl(var(--foreground) / .05);
}

.nav-link--cta {
    background: var(--gradient-accent);
    color: hsl(var(--primary-foreground)) !important;
    border-radius: var(--radius);
    padding: 0.5rem 1.25rem;
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    font-weight: 700;
}
.nav-link--cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    background: var(--gradient-accent);
    box-shadow: none;
}

.navbar-actions {
    display: none;
}
@media (min-width: 1024px) {
    .navbar-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

.lang-selector {
    display: flex;
    gap: 0.25rem;
}
.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: calc(var(--radius) - 4px);
    padding: 0.25rem 0.5rem;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s;
}
.lang-btn:hover,
.lang-btn.active {
    background: hsl(var(--muted));
    border-color: hsl(var(--border));
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: hsl(var(--foreground));
    border-radius: 2px;
    transition: all 0.3s;
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: hsl(var(--background) / .97);
    backdrop-filter: blur(12px);
    z-index: 49;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    overflow-y: auto;
}
.mobile-menu.open {
    display: flex;
}

.mobile-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    border-radius: var(--radius);
    transition: all 0.3s;
    text-transform: uppercase;
}
.mobile-link:hover,
.mobile-link.active {
    background: hsl(var(--muted));
    color: hsl(var(--primary));
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(var(--background) / .85) 0%, hsl(var(--background) / .5) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    max-width: 640px;
    padding: 5rem 1rem 0;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 5rem 2rem 0;
    }
}

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.hero-content p {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3.75rem;
    }
}

/* Hero dots */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    border: 2px solid hsl(var(--foreground) / .5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.hero-dot.active {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
    padding: 5rem 1rem;
}

@media (min-width: 768px) {
    .features-section {
        padding: 5rem 1rem;
    }
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .features-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .features-title {
        font-size: 3rem;
    }
}

.features-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 640px;
    margin: 0 auto;
}

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

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

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--gradient-card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-card);
}
.feature-card:hover {
    box-shadow: var(--shadow-glow);
}

.feature-icon-svg {
    width: 48px;
    height: 48px;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ============================================================
   PLATFORMS SECTION
   ============================================================ */
.platforms {
    padding: 3rem 0;
    background: hsl(var(--muted) / .3);
}

.platforms-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .platforms-flex {
        gap: 2rem;
    }
}

.platform-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.platform-item img {
    height: 4rem;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.platform-item:hover img {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .platform-item img {
        height: 5rem;
    }
}

.platform-download-badge {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.platform-item--download:hover .platform-download-badge {
    opacity: 1;
}

/* Legacy grid classes kept for descarcari page */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

@media (min-width: 640px) {
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.platforms-grid--large .platform-badge {
    padding: 2rem;
}
.platforms-grid--large h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-top: 0.5rem;
}
.platforms-grid--large p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.platform-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}
.platform-badge:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--primary) / .5);
    box-shadow: var(--shadow-glow);
}

.platform-badge img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto;
}

.platform-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.badge-coming {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
    padding: 5rem 0 0;
    background: var(--gradient-section);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pricing-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    box-shadow: var(--shadow-card);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: hsl(var(--primary) / .5);
}

.pricing-card--popular {
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}
.pricing-card--popular:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-card--discount {
    border-color: #10b981;
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: hsl(var(--primary-foreground));
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: var(--shadow-glow);
}

.pricing-badge--green {
    background: hsl(var(--secondary));
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-old {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.price-current {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.price-period {
    display: block;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

.pricing-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    border-bottom: 1px solid hsl(var(--border) / .3);
}
.pricing-features li:last-child {
    border-bottom: none;
}

.check-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: #10b981;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Guarantee */
.guarantee-box {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: var(--gradient-card);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}
.guarantee-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}
.guarantee-box p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
.guarantee-box .btn {
    background: var(--gradient-accent);
    box-shadow: var(--shadow-glow);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
}
.guarantee-box .btn:hover {
    transform: scale(1.05);
}

/* ============================================================
   MOVIES SECTION
   ============================================================ */
.movies {
    padding: 5rem 0 2rem;
}

.movies-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 1rem 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--muted)) transparent;
    cursor: grab;
}
.movies-scroll:active {
    cursor: grabbing;
}
.movies-scroll::-webkit-scrollbar {
    height: 6px;
}
.movies-scroll::-webkit-scrollbar-thumb {
    background: hsl(var(--muted));
    border-radius: 3px;
}

.movie-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.movie-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: hsl(var(--primary) / .5);
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-rating {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
    background: rgb(0 0 0 / 0.7);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
}

.movie-info {
    padding: 1rem;
}

.movie-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.movie-year {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.movie-desc {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.movies-bottom {
    text-align: center;
    margin-top: 2rem;
}

.movies-note {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.web-player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 42rem;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
    .web-player-card {
        flex-direction: row;
        justify-content: center;
    }
}
.web-player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.web-player-info svg {
    color: hsl(var(--primary));
    flex-shrink: 0;
}
.web-player-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}
.web-player-info p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================================
   DEVICES SECTION
   ============================================================ */
.devices-section {
    padding: 5rem 1rem;
}

.devices-grid-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}
.devices-grid-block:last-child {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .devices-grid-block {
        grid-template-columns: repeat(2, 1fr);
    }
}

.devices-card-wrap {
    background: var(--gradient-section);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 5rem;
}
@media (min-width: 768px) {
    .devices-card-wrap {
        padding: 3rem;
        border-radius: 1.5rem;
    }
}
.devices-card-wrap .devices-grid-block {
    margin-bottom: 0;
}

/* Mobile: image first, text second for middle block */
.devices-order-text {
    order: 2;
}
.devices-order-img {
    order: 1;
}
@media (min-width: 1024px) {
    .devices-order-text {
        order: 1;
    }
    .devices-order-img {
        order: 2;
    }
}

.devices-heading {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
}

.devices-paragraph {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.devices-img {
    width: 100%;
    border-radius: 0.75rem;
}

.shadow-glow-img {
    box-shadow: var(--shadow-glow);
}

/* ============================================================
   CTA BANNER (before footer)
   ============================================================ */
.cta-banner {
    padding: 5rem 0;
    background: var(--gradient-hero);
    text-align: center;
}

.cta-banner h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cta-banner h2 {
        font-size: 2.25rem;
    }
}

.cta-banner p {
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
    line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    padding: 3rem 0 0;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

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

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 1.5rem;
    }
}

.footer-card {
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid hsl(var(--border) / 0.5);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.footer-brand p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-top: 0.75rem;
    line-height: 1.6;
}

.footer-brand img {
    height: 48px;
    width: auto;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.footer-col li a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.3s;
}
.footer-col li a:hover {
    color: hsl(var(--primary));
}

.footer-col li svg {
    flex-shrink: 0;
    color: hsl(var(--primary));
}

.footer-bottom {
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}
.footer-bottom p + p {
    margin-top: 0.5rem;
}
.footer-bottom a {
    color: hsl(var(--muted-foreground));
    transition: color 0.3s;
}
.footer-bottom a:hover {
    color: hsl(var(--primary));
}

/* ============================================================
   PAGE HERO (internal pages)
   ============================================================ */
.page-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: var(--gradient-hero);
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-hero--image {
    background-size: cover;
    background-position: center;
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: hsl(var(--background) / .8);
}

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

.page-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-hero h1 {
        font-size: 3rem;
    }
}

.page-hero p {
    color: hsl(var(--muted-foreground));
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.page-hero .btn {
    margin-top: 0.5rem;
}

/* ============================================================
   CONTENT SECTION (internal pages)
   ============================================================ */
.content-section {
    padding: 4rem 0;
}

.about-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    margin-top: 2rem;
}
.about-text h2:first-child {
    margin-top: 0;
}
.about-text p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Restream / Reseller feature grid */
.page-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
@media (min-width: 640px) {
    .page-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .page-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Reseller pricing */
.reseller-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .reseller-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .reseller-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tutorial tabs */
.tabs-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--border));
    scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar {
    display: none;
}
.tab-btn {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}
.tab-btn:hover,
.tab-btn.active {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* FAQ accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item summary {
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    color: hsl(var(--foreground));
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: hsl(var(--primary));
    transition: transform 0.3s;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item .faq-answer {
    padding: 0 1.5rem 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Stats row (despre) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.stat-item {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}
.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}
.stat-item p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Reseller pricing table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}
.pricing-table th,
.pricing-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border) / .5);
    font-size: 0.875rem;
}
.pricing-table th {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    font-weight: 600;
}
.pricing-table td {
    color: hsl(var(--muted-foreground));
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s;
}
.contact-card:hover {
    border-color: hsl(var(--primary) / .5);
    box-shadow: var(--shadow-glow);
}

.contact-card-icon {
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.contact-card p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Contact / Order Form */
.contact-form-wrap h2,
.order-form-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: hsl(var(--muted-foreground));
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / .2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success message */
.form-success {
    background: hsl(142 71% 45% / .1);
    border: 1px solid #10b981;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    color: #6ee7b7;
    margin-bottom: 1.5rem;
}
.form-success h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 0.5rem;
}
.form-success p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* ============================================================
   ORDER PAGE
   ============================================================ */
.order-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .order-wrap {
        grid-template-columns: 1fr 1fr;
    }
}

.order-summary h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
}

.order-card {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 2rem;
}
.order-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* ============================================================
   NAVBAR SCROLLED STATE (added by JS)
   ============================================================ */
.navbar--scrolled {
    background: hsl(var(--navbar) / .95);
    box-shadow: 0 4px 20px hsl(0 0% 0% / .3);
    border-bottom-color: hsl(var(--border) / .5);
}

/* ============================================================
   HAMBURGER ACTIVE STATE
   ============================================================ */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: var(--gradient-accent);
    color: hsl(var(--primary-foreground));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    transform: translateY(-3px);
}

/* ============================================================
   SCROLLBAR (global)
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
    background: hsl(var(--muted));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground));
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
