/* Global Variables and Base Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* PRIMARY BRAND COLORS */
    --bg-dark: #0C021B;
    --bg-header: #0C001C;
    --card-bg: #180D2C;
    --accent-purple: #B845F4;

    /* GRADIENTS */
    --gradient-start: #923EEE;
    --gradient-end: #D046F0;
    --brand-gradient: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));

    /* HERO GRADIENT */
    --hero-pink: #D946EF;
    --hero-violet: #A855F7;
    --hero-deep-violet: #7C3AED;
    --hero-gradient: linear-gradient(90deg, var(--hero-pink) 0%, var(--hero-violet) 45%, var(--hero-deep-violet) 100%);

    /* TEXT COLORS */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.75);
    --text-soft: rgba(255, 255, 255, 0.6);
    --text-gray: #DDDDDD;
    --text-active-purple: #D046F0;

    /* BORDER COLORS */
    --border-standard: rgba(255, 255, 255, 0.15);
    --border-soft: rgba(255, 255, 255, 0.12);
    --border-extra-soft: rgba(255, 255, 255, 0.08);
    --border-arrow: rgba(255, 255, 255, 0.7);
    --border-active-tab: rgba(184, 69, 244, 0.35);

    /* ELEMENT BACKGROUNDS */
    --input-bg: #140622;
    --select-bg: #12051F;
    --nav-active-bg: #1C1030;

    /* OTHER */
    --success-green: #17E34A;
}

/* ── Global Overflow Fix ────────────────────────────────────────────
   overflow-x: hidden on <body> creates a block formatting context (BFC)
   that disables the vertical scrollbar on some devices/zoom levels,
   making the footer unreachable. Using clip only on html avoids this.
   ─────────────────────────────────────────────────────────────────── */
html {
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
}

@media (min-width: 1536px) {
    .hero-title {
        font-size: 60px;
    }
}

.sub-hero-title {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 15px;
    }
}

@media (min-width: 1536px) {
    .hero-description {
        font-size: 17px;
    }
}

.hero-gradient-text {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.site-header {
    width: 100%;
    border-bottom: 1px solid var(--border-extra-soft);
    background-color: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1001;
}

main {
    display: block;
    width: 100%;
    position: relative;
    overflow: visible;
    /* Ensure main doesn't clip its children */
}

.home-section {
    display: block;
    width: 100%;
    position: relative;
}

.header-container {
    position: relative;
    width: 100%;
    height: 86px;
}

.nav-menu {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        gap: 1.5rem;
        padding: 0 10rem;
    }
}

@media (min-width: 1024px) {
    .nav-menu {
        gap: 4rem;
        padding: 0 5rem;
    }
}

.active-tab {
    background: var(--nav-active-bg);
    color: var(--text-primary) !important;
}

.home-section {
    display: block;
    width: 100%;
    position: relative;
}

@media (max-width: 767px) {
    #navMenu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: #0C001C;
        padding: 80px 32px 40px;
        gap: 12px;
        z-index: 1000;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 15px 0 40px rgba(0, 0, 0, 0.5);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    #navMenu.mobile-active {
        display: flex !important;
        left: 0;
    }

    /* Keep hamburger button fixed and stationary on the left when active */
    #mobileMenuBtn {
        z-index: 1100 !important;
    }

    #mobileMenuBtn.is-active {
        position: fixed !important;
        top: 28px !important;
        left: 24px !important;
        transform: none !important;
        transition: none !important;
    }

    #mobileMenuBtn span {
        background-color: #FFFFFF !important;
        height: 2px !important;
        transition: all 0.3s ease;
    }

    #mobileMenuBtn.is-active span:nth-child(1) {
        top: 11px;
        transform: rotate(45deg) scale(1.35);
    }

    #mobileMenuBtn.is-active span:nth-child(2) {
        opacity: 0;
    }

    #mobileMenuBtn.is-active span:nth-child(3) {
        top: 11px;
        transform: rotate(-45deg) scale(1.35);
    }

    header .nav-link {
        color: #FFFFFF !important;
        font-size: 20px;
        font-weight: 500;
        padding: 12px 0;
        width: 100%;
        background: transparent !important;
        border: none !important;
        border-radius: 0;
        transition: color 0.3s ease;
        text-align: left;
    }

    header .nav-link:hover,
    header .nav-link.active-tab {
        color: var(--accent-purple) !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* Device specification page styles */
.device-spec-page {
    --spec-bg: var(--bg-dark);
    --spec-panel: var(--card-bg);
    --spec-purple: var(--accent-purple);
    --spec-text: var(--text-primary);
    --spec-muted: var(--text-muted);
    --spec-line: var(--border-soft);
    background: var(--spec-bg);
    color: var(--spec-text);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.device-spec-page .site-header {
    background-color: var(--bg-header);
}

.spec-main {
    width: min(calc(100% - 32px), 1170px);
    margin: 0 auto;
    padding: 0 0 96px;
}

.product-panel {
    display: grid;
    grid-template-columns: minmax(390px, 1fr) minmax(360px, 512px);
    gap: 100px;
    align-items: center;
    min-height: 458px;
    margin-top: 1px;
    padding: 48px 56px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-extra-soft);
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.gallery-card {
    position: relative;
    width: 338px;
    min-height: 376px;
    margin-left: 70px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.33);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 42px 58px 18px;
}

.gallery-card::before {
    display: none;
}

.gallery-frame {
    width: 177px;
    height: 223px;
    margin: 0 auto 35px;
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(3, 58px);
    gap: 23px;
    justify-content: center;
}

.thumb-button {
    width: 58px;
    height: 58px;
    background: #d8d4b9;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

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

.thumb-button.is-active,
.thumb-button:hover {
    border-color: rgba(255, 255, 255, 0.72);
}

.gallery-arrow {
    position: absolute;
    bottom: 33px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    width: 28px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.gallery-prev {
    left: 22px;
}

.gallery-next {
    right: 20px;
}

.product-summary {
    align-self: center;
    padding-top: 2px;
}

.product-summary h1 {
    margin-bottom: 24px;
    font-size: 20px;
    /* Reduced and fixed */
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-primary);
}

.product-summary p {
    margin-bottom: 22px;
    color: var(--spec-muted);
    font-size: 18px;
    /* Reduced and fixed */
    line-height: 1.2;
    font-weight: 600;
}

.product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 204px));
    gap: 60px;
    margin-top: 45px;
}

.action-btn {
    min-height: 60px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.secondary-action {
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.primary-action {
    background: var(--brand-gradient);
}

.details-section {
    margin-top: 26px;
}

.tab-bar {
    display: grid;
    grid-template-columns: 1fr 1.34fr 1.2fr 1.14fr;
    align-items: center;
    min-height: 64px;
    padding: 0 40px;
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-extra-soft);
    column-gap: 24px;
}

.tab-btn {
    width: max-content;
    color: var(--spec-text);
    font-size: 18px;
    /* Reduced and fixed */
    line-height: 1.1;
    font-weight: 800;
    white-space: nowrap;
    text-align: left;
    text-decoration: none;
}

.tab-btn.is-active {
    color: var(--spec-purple);
}

.tab-content-wrap {
    position: relative;
    margin-top: 7px;
    padding: 32px 60px;
    /* Reduced padding */
    background: var(--card-bg);
    border: 1px solid var(--border-extra-soft);
    border-radius: 6px;
}

.tab-content-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 330px;
    width: 1px;
    background: var(--spec-line);
}

.device-lens-page .tab-content-wrap,
.device-delivery-page .tab-content-wrap,
.device-manufacture-page .tab-content-wrap {
    display: none;
}

.tab-content {
    display: none;
}

.tab-content.is-active {
    display: block;
}

.spec-list {
    position: relative;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    row-gap: 19px;
}

.spec-list::before {
    display: none;
}

.spec-list div {
    display: contents;
}

.spec-list dt,
.spec-list dd {
    font-size: 18px;
    /* Reduced and fixed */
    line-height: 1.18;
}

.spec-list dt {
    padding-right: 35px;
    color: var(--spec-text);
    font-weight: 800;
}

.spec-list dd {
    padding-left: 88px;
    color: var(--spec-muted);
    font-weight: 500;
}

.plan-panel,
.delivery-panel,
.manufacture-panel {
    margin-top: 7px;
    background: var(--card-bg);
    border: 1px solid var(--border-extra-soft);
    border-radius: 6px;
    padding-bottom: 40px;
    /* Add some breathing room at the bottom */
}

.plan-panel {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    justify-content: center;
    gap: 39px 125px;
    padding: 23px 0 10px;
}

.plan-card {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 24px 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(to bottom, rgba(24, 11, 45, 0.78), rgba(13, 4, 30, 0.86));
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

.plan-card.glow-corner {
    border-radius: 8px;
    border-top-color: rgba(255, 255, 255, 0.35);
    border-right-color: rgba(255, 255, 255, 0.22);
}

.plan-card h2 {
    height: 30px;
    margin-bottom: 8px;
    color: var(--spec-text);
    font-size: 20px;
    /* Reduced and fixed */
    line-height: 1.12;
    font-weight: 800;
    white-space: nowrap;
}

.plan-card .plan-price {
    display: block;
    height: 27px;
    margin-top: 0;
    margin-bottom: 22px;
    color: var(--spec-muted);
    font-size: 18px;
    /* Reduced and fixed */
    line-height: 1.2;
    font-weight: 800;
}

.plan-price-empty {
    visibility: hidden;
}

.plan-card ul {
    display: grid;
    grid-template-rows: repeat(2, 21px);
    gap: 18px;
    margin-bottom: 0;
    padding-bottom: 48px;
}

.plan-card li {
    position: relative;
    padding-left: 14px;
    color: var(--spec-muted);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7B39EB;
}

.plan-action {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    min-width: 98px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 9px;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.delivery-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 250px));
    justify-content: center;
    gap: 12px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.delivery-card {
    min-height: 385px;
    padding: 18px 25px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: linear-gradient(to bottom, rgba(24, 11, 45, 0.82), rgba(13, 4, 30, 0.88));
    text-align: center;
}

.delivery-card h2 {
    margin-bottom: 18px;
    color: var(--spec-text);
    font-size: 20px;
    /* Reduced and fixed */
    line-height: 1.15;
    font-weight: 800;
}

.delivery-card p {
    color: var(--spec-muted);
    font-size: 18px;
    /* Reduced and fixed */
    line-height: 1.25;
    font-weight: 500;
}

.delivery-days {
    margin: 18px 0 32px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03);
}

.delivery-options {
    display: grid;
    gap: 24px;
    margin-bottom: 67px;
}

.delivery-action {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 5px;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.manufacture-panel {
    padding: 26px 62px;
}

.manufacture-list {
    display: grid;
    gap: 28px;
    max-width: 840px;
}

.manufacture-row {
    display: grid;
    grid-template-columns: 190px 26px minmax(0, 1fr);
    align-items: start;
    color: var(--spec-text);
    font-size: 20px;
    /* Reduced and fixed */
    line-height: 1.12;
    font-weight: 800;
}

.manufacture-row.company {
    margin-bottom: 4px;
}

.manufacture-row span:first-child {
    white-space: nowrap;
}

.manufacture-row span:last-child {
    font-weight: 400 !important;
}

.manufacture-row.company span:first-child,
.manufacture-row .colon {
    font-weight: 800;
}

.manufacture-row .colon {
    text-align: center;
}

.related-section {
    padding-top: clamp(42px, 5vw, 60px);
    width: 100%;
}

.related-section h2 {
    font-size: 24px;
    /* Reduced and fixed */
    line-height: 1.2;
    font-weight: 800;
}

.related-carousel-wrap {
    position: relative;
    margin-top: clamp(32px, 5vw, 79px);
    width: 100%;
    padding: 0 60px;
    /* Gutter for arrows */
}

@media (min-width: 1101px) {
    .related-carousel-wrap {
        padding: 0 80px;
    }
}

@media (max-width: 767px) {
    .related-carousel-wrap {
        padding: 0;
    }
}

.related-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: clamp(18px, 3vw, 40px);
    scroll-snap-type: x mandatory;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.related-card {
    flex: 0 0 calc(25% - 30px);
    min-height: 370px;
    padding: 38px 30px 22px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.related-card img {
    width: 178px;
    height: 252px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.related-card h3,
.related-card p {
    color: var(--spec-muted);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.related-card h3 {
    min-height: 34px;
    margin-bottom: 6px;
}

.device-spec-page footer.bg-brand-card {
    width: 100%;
    border-radius: 0;
}

@media (max-width: 1240px) {
    .spec-main {
        width: calc(100% - 64px);
    }

    .product-panel {
        gap: clamp(36px, 6vw, 90px);
        padding: 40px clamp(28px, 4vw, 47px);
    }

    .gallery-card {
        margin-left: clamp(0px, 3vw, 40px);
    }

    .product-actions {
        gap: clamp(24px, 4vw, 60px);
    }

    .related-track {
        gap: clamp(16px, 2.5vw, 24px);
    }

    .related-card {
        flex: 0 0 calc(33.333% - 16px);
        min-height: 340px;
        padding: 30px 20px 20px;
    }
}

@media (max-width: 1024px) {
    .related-card {
        flex: 0 0 calc(50% - 12px);
    }
}


/* Arrows styling for all screens where they are visible (Desktop/Tablet) */
@media (min-width: 768px) {
    .related-carousel-wrap {
        padding: 0 60px;
    }

    .related-carousel-wrap #prevDevice,
    .related-carousel-wrap #nextDevice {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 20;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .related-carousel-wrap #prevDevice {
        left: 8px !important;
    }

    .related-carousel-wrap #nextDevice {
        right: 8px !important;
    }
}

@media (min-width: 1101px) {
    .related-carousel-wrap {
        padding: 0 80px;
    }

    .related-carousel-wrap #prevDevice {
        left: 18px !important;
    }

    .related-carousel-wrap #nextDevice {
        right: 18px !important;
    }
}

/* Large Screens: Fit all 4 cards while keeping arrows visible */
@media (min-width: 1241px) {
    .related-carousel-wrap {
        padding: 0 80px;
    }

    .related-track {
        justify-content: center;
        gap: clamp(20px, 2.5vw, 40px);
        overflow-x: auto;
    }

    .related-card {
        flex: 0 0 calc(25% - 30px);
    }

    .related-carousel-wrap #prevDevice,
    .related-carousel-wrap #nextDevice {
        display: flex !important;
    }
}

@media (max-width: 980px) {
    .product-panel {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 34px;
    }

    .product-summary {
        width: min(100%, 620px);
        text-align: center;
    }

    .product-summary p {
        margin-bottom: 18px;
    }

    .product-actions {
        justify-content: center;
        margin-top: 32px;
    }

    .tab-bar {
        grid-template-columns: repeat(4, max-content);
        overflow-x: auto;
        padding: 0 32px;
    }

    .tab-content-wrap {
        padding: 34px 42px;
    }

    .tab-content-wrap::before {
        left: 252px;
    }

    .spec-list {
        grid-template-columns: 210px 1fr;
    }

    .spec-list::before {
        left: 210px;
    }

    .spec-list dd {
        padding-left: 48px;
    }

    .related-card img {
        width: min(178px, 76%);
    }

    .plan-panel {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 32px;
        padding: 32px;
    }

    .delivery-panel {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        gap: 24px;
        padding: 40px 32px;
    }

    .manufacture-panel {
        padding: 56px 48px;
    }
}

@media (max-width: 767px) {
    .device-spec-page footer.bg-brand-card {
        padding-left: 24px;
        padding-right: 24px;
    }

    .spec-main {
        width: calc(100% - 28px);
        padding-bottom: 64px;
    }

    .product-panel {
        min-height: 0;
        padding: 26px 16px 32px;
    }

    .gallery-card {
        width: min(338px, 100%);
        min-height: 340px;
        padding: 36px 48px 18px;
    }

    .gallery-frame {
        width: 160px;
        height: 202px;
        margin-bottom: 26px;
    }

    .thumbnail-row {
        grid-template-columns: repeat(3, 54px);
        gap: 16px;
    }

    .thumb-button {
        width: 54px;
        height: 54px;
    }

    .gallery-prev {
        left: 12px;
    }

    .gallery-next {
        right: 12px;
    }

    .product-summary h1 {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .product-summary p {
        font-size: 20px;
    }

    .product-actions {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }

    .action-btn {
        min-height: 56px;
    }

    .details-section {
        margin-top: 18px;
    }

    .tab-bar {
        min-height: 78px;
        gap: 26px;
        padding: 0 20px;
    }

    .tab-btn {
        font-size: 17px;
    }

    .tab-content-wrap {
        min-height: 0;
        padding: 28px 22px 34px;
    }

    .tab-content-wrap::before {
        display: none;
    }

    .spec-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .spec-list::before {
        display: none;
    }

    .spec-list div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        padding-bottom: 16px;
    }

    .spec-list dt,
    .spec-list dd {
        padding: 0;
        font-size: 18px;
    }

    .plan-panel,
    .delivery-panel,
    .manufacture-panel {
        min-height: 0;
    }

    .plan-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 18px;
    }

    .plan-card {
        min-height: 0;
        height: 255px;
        padding: 24px 22px;
    }

    .plan-card h2 {
        font-size: 22px;
    }

    .delivery-panel {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 18px;
    }

    .delivery-card {
        min-height: 0;
    }

    .delivery-options {
        margin-bottom: 28px;
    }

    .manufacture-panel {
        padding: 34px 24px;
    }

    .manufacture-row {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 19px;
    }

    .manufacture-row .colon {
        display: none;
    }


    .related-section {
        padding-top: 32px;
    }

    .related-section h2 {
        font-size: 24px;
        text-align: center;
    }

    .related-carousel-wrap {
        margin-top: 24px;
        padding: 0;
        /* No gutter on mobile, use mobile buttons below */
    }

    .related-track {
        gap: 16px;
        padding: 10px 0 20px;
        scroll-padding-inline: 0;
    }

    .related-card {
        flex: 0 0 calc(50% - 8px);
        min-height: 0;
        padding: 24px 18px 18px;
    }

    .related-card img {
        width: 100%;
        max-width: 150px;
        height: 180px;
        margin-bottom: 12px;
    }

    .related-card h3,
    .related-card p {
        font-size: 13px;
    }

}

@media (max-width: 480px) {
    .gallery-card {
        padding-left: 35px;
        padding-right: 35px;
    }

    .thumbnail-row {
        grid-template-columns: repeat(3, 48px);
        gap: 12px;
    }

    .thumb-button {
        width: 48px;
        height: 48px;
    }

    .related-card {
        flex: 0 0 100%;
    }

    .related-carousel-wrap #prevDevice,
    .related-carousel-wrap #nextDevice {
        display: none !important;
    }
}

@media (min-width: 1920px) {
    .device-spec-page .max-w-\[1440px\] {
        max-width: 1440px !important;
    }

    .device-spec-page .max-w-\[1300px\] {
        max-width: 1300px !important;
    }

}

/* ==========================================================================
   HOMEPAGE STYLES
   ========================================================================== */

.hero-main-grid {
    display: grid;
    min-height: 500px;
    position: relative;
}

@media (min-width: 768px) {
    .hero-main-grid {
        grid-template-columns: 1.2fr 1fr;
        min-height: 600px;
    }
}

@media (min-width: 1280px) {
    .hero-main-grid {
        grid-template-columns: 1fr 420px;
        height: 640px;
    }
}

.hero-content-area {
    position: relative;
    z-index: 10;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    background-color: rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .hero-content-area {
        padding-left: clamp(1.5rem, 4vw, 4rem);
        padding-right: clamp(1.5rem, 4vw, 4rem);
        align-items: center;
        padding-bottom: 0;
        background: linear-gradient(90deg, #0C021B 19.23%, #250934 80.77%);
        border: 1px solid #000;
    }
}

@media (min-width: 1536px) {
    .hero-content-area {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}

.hero-image-area {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-image-area {
        position: relative;
        z-index: 10;
        pointer-events: auto;
    }
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 10px 0 40px;
    /* Increased bottom padding for safety */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

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

@media (max-width: 767px) {
    .carousel-track {
        padding-left: 20px;
        padding-right: 20px;
        gap: 16px;
    }

    .device-carousel-card,
    .event-carousel-card {
        width: 100% !important;
        flex-shrink: 0;
    }
}

.glass-gradient-bg {
    background: linear-gradient(to bottom, #180B2D, #0D041E);
}

.device-carousel-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    min-height: 340px;
    transition: transform 0.3s ease;
}

@media (max-width: 480px) {
    .device-carousel-card {
        flex-direction: column;
        min-height: auto;
    }

    .device-carousel-card img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block;
    }
}

@media (min-width: 1025px) {
    .device-carousel-card {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (min-width: 1280px) {
    .device-carousel-card {
        min-height: 380px;
    }
}

@media (min-width: 1536px) {
    .device-carousel-card {
        min-height: 420px;
    }
}

.testimonial-carousel-card {
    flex: 0 0 100%;
    /* Default mobile: 1 card */
    scroll-snap-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 0.75rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1025px) {
    .testimonial-carousel-card {
        flex: 0 0 calc(33.33% - 22px);
    }
}

.event-carousel-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
}

.event-card {
    border-radius: 0.75rem;
}

@media (min-width: 769px) {
    .event-carousel-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (min-width: 1025px) {
    .event-carousel-card {
        flex: 0 0 calc(33.33% - 22px);
    }
}

.testimonials-section-bg {
    background: #180D2C;
    border-radius: 24px;
    padding: clamp(40px, 6vw, 80px) 0;
    /* Horizontal padding moved to track */
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.testimonials-section-bg h2 {
    margin-bottom: clamp(32px, 5vw, 64px);
    padding: 0 20px;
}

#testimonialTrack {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: clamp(16px, 3vw, 32px);
    padding: 10px 0 40px;
    /* Increased bottom padding for safety */
    margin-left: 60px;
    margin-right: 60px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    #testimonialTrack {
        margin-left: 80px;
        margin-right: 80px;
    }
}

#prevTestimonial,
#nextTestimonial {
    z-index: 30;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    #prevTestimonial {
        left: 15px !important;
    }

    #nextTestimonial {
        right: 15px !important;
    }
}

@media (max-width: 480px) {

    #prevTestimonial,
    #nextTestimonial {
        display: none !important;
    }
}

.arrow-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    transition: background 0.3s ease;
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.arrow-btn svg {
    width: 12px;
    height: 12px;
}


.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.75rem;
    border-radius: 12px;
    background: var(--brand-gradient);
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* ── Pagination Component ────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.pagination__btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
}

.pagination__btn--active {
    background: rgba(166, 65, 239, 0.2);
    border-color: #A641EF;
    color: #A641EF;
}

.pagination__btn:hover:not(.pagination__btn--active) {
    background: rgba(255, 255, 255, 0.05);
}

.pagination__arrow {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .pagination {
        justify-content: center;
        margin-top: 48px;
    }
}

/* ── Carousel Pagination Dots ───────────────────────────────────────── */
.carousel-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .carousel-dots {
        display: flex !important;
    }
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dot.active {
    background: #B845F4;
    box-shadow: 0 0 10px rgba(184, 69, 244, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   Lens Plan Page
   ═══════════════════════════════════════════════════════════════════ */

.lp-main {
    width: min(calc(100% - 48px), 1300px);
    margin: 0 auto;
    padding: 56px 0 96px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Package Row ──────────────────────────────────────────────────── */
.lp-row {
    width: 100%;
}

.lp-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Center image vertically with description */
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1.5px solid var(--border-extra-soft);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    min-height: 320px;
    height: auto;
    margin-bottom: clamp(24px, 4vw, 32px);
}

/* ── Left Info Panel ──────────────────────────────────────────────── */
.lp-info {
    width: 280px;
    /* Reduced from 340px */
    flex-shrink: 0;
    margin: 16px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--border-extra-soft);
    border-top-color: var(--border-standard);
    /* Light highlight */
    border-radius: 12px;
    padding: 32px 24px;
    /* Reduced from 48px 32px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    /* Tighter gap */
    text-align: center;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.lp-name {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
}

.lp-price {
    font-size: 16px;
    /* Reduced from 18px */
    font-weight: 600;
    color: var(--text-secondary);
}

.lp-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-features li {
    font-size: 16px;
    /* Reduced from 18px */
    color: var(--text-secondary);
    font-weight: 600;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 8px 28px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.lp-btn:hover {
    opacity: 0.9;
}


/* ── Right Carousel Panel ─────────────────────────────────────────── */
.lp-carousel-panel {
    flex: 1;
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    min-width: 0;
}

.lp-carousel-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

/* ── Carousel Track ───────────────────────────────────────────────── */
.lp-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.lp-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.lp-carousel-track::-webkit-scrollbar {
    display: none;
}

.lp-lens-item {
    position: relative;
    /* For absolute positioning of the overlay */
    width: calc((100% - 48px) / 4);
    flex-shrink: 0;
    scroll-snap-align: start;
    /* Ensure exactly 4 items show at a time */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lp-lens-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.lp-lens-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 13px;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ── Carousel Arrows (Lens Page) ────────────────────────────────────── */
.lp-carousel-next {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    margin-left: 16px;
    color: #fff;
}

.lp-carousel-next:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.8);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lp-lens-item {
        width: calc((100% - 32px) / 3);
    }
}

@media (max-width: 1024px) {
    .lp-card {
        flex-direction: row !important;
        height: auto;
        min-height: unset;
        padding: 12px;
        gap: 8px;
        align-items: center;
    }

    .lp-info {
        width: 240px !important;
        min-height: 260px !important;
        /* Ensure it is taller than images */
        flex-shrink: 0;
        margin: 0 !important;
        padding: 40px 12px !important;
        gap: 16px !important;
        display: flex !important;
        justify-content: center !important;
    }

    .lp-info .lp-name {
        width: 100% !important;
        font-size: 15px !important;
        text-align: center !important;
        margin-bottom: 4px;
    }

    .lp-price {
        display: none;
        /* Hide price if placeholder, or scale it */
    }

    .lp-features {
        display: block !important;
        font-size: 13px !important;
        text-align: center;
        margin: 0 !important;
    }

    .lp-btn {
        display: inline-flex !important;
        padding: 8px 24px !important;
        font-size: 13px !important;
        width: auto !important;
        min-width: 80px;
        border-radius: 8px !important;
        margin-top: 4px;
    }

    .lp-carousel-panel {
        flex: 1;
        width: auto !important;
        padding: 0 !important;
        /* Center vertically */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 0;
    }

    .lp-carousel-title {
        display: none;
    }

    .lp-carousel-wrap {
        padding: 0 0 0 36px !important;
        /* Offset for the 36px arrow on the right to center the image */
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .lp-carousel-track {
        gap: 16px !important;
        /* Use gap for tablet spacing */
    }

    .lp-lens-item {
        width: calc((100% - 32px) / 3) !important;
        /* Precisely fit 3 items with gaps */
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        /* Fixed: Remove padding to align text overlay with image */
    }

    .lp-lens-item img {
        width: 100% !important;
        max-width: 100% !important;
        /* Fill available width */
        height: auto !important;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 12px;
    }

    .lp-lens-item span {
        font-size: 12px !important;
    }

    .lp-carousel-next {
        right: -8px;
        transform: scale(0.7);
    }

    .lp-card-details-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .lp-carousel-track {
        gap: 12px !important;
        /* Balanced gap for 2-item view on mobile */
    }

    .lp-lens-item {
        width: calc((100% - 12px) / 2) !important;
        /* Show two lenses at a time on tablets/mobiles */
        padding: 0 !important;
    }

    .lp-card {
        padding: 16px !important;
        /* Increased for tablet */
        gap: 12px !important;
        align-items: center !important;
    }

    .lp-info {
        width: 210px !important;
        /* Wider for tablet to prevent text wrap */
        min-height: 240px !important;
        padding: 30px 15px !important;
        gap: 12px !important;
        flex-shrink: 0;
    }

    .lp-info .lp-name {
        font-size: 18px !important;
        /* Clearer on tablet */
        margin-bottom: 4px !important;
    }

    .lp-features,
    .lp-features li {
        font-size: 14px !important;
    }

    .lp-btn {
        padding: 10px 24px !important;
        font-size: 14px !important;
        min-width: 90px !important;
    }

    .lp-carousel-panel {
        padding: 20px 0 !important;
    }
}

@media (max-width: 550px) {
    .lp-main {
        width: calc(100% - 32px);
        padding: 40px 0 64px;
    }

    .lp-card {
        padding: 10px !important;
        gap: 8px !important;
        align-items: stretch !important;
        /* Allow height difference */
    }

    .lp-info {
        width: 140px !important;
        min-height: 190px !important;
        padding: 16px 8px !important;
        gap: 8px !important;
        flex-shrink: 0;
    }

    .lp-info .lp-name {
        font-size: 14px !important;
    }

    .lp-features,
    .lp-features li {
        font-size: 11px !important;
    }

    .lp-btn {
        padding: 6px 14px !important;
        font-size: 11px !important;
        min-width: 60px !important;
    }
}

@media (max-width: 480px) {
    .lp-card {
        padding: 8px !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .lp-info {
        width: 52% !important;
        /* Slightly reduced to give image more room */
        min-height: 220px !important;
        /* Still taller than image */
        padding: 18px 10px !important;
        background: rgba(24, 13, 44, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lp-carousel-panel {
        flex: 1;
        /* Takes remaining ~42% */
        padding: 0 !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .lp-carousel-wrap {
        padding: 0 !important;
        /* Remove directional offsets */
        width: 100% !important;
        display: flex !important;
    }

    .lp-carousel-track {
        justify-content: flex-start !important;
        /* Fixed clipping: allow scrolling to start/end */
        gap: 0 !important;
    }

    .lp-lens-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        scroll-snap-align: center !important;
        /* Center the item when snapped */
    }

    .lp-lens-item img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1;
        object-fit: contain !important;
        /* Ensure full image is visible */
        border-radius: 10px;
    }

    .lp-lens-item span {
        font-size: 10px !important;
        padding: 4px 2px !important;
        /* Reduce overlay size */
    }

    .lp-carousel-next {
        display: none !important;
        /* Hide arrow to save space, use swipe */
    }

    .lp-info .lp-name {
        font-size: 15px !important;
    }

    .carousel-dots {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        margin-top: 15px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.footer-container {
    background-color: #180D2C;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    min-width: 100%;
    min-height: auto;
    margin-top: 0;
    position: relative;
    z-index: 10;
    clear: both;
    display: block;
}

.footer-content {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
}

.footer-logo-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-logo img {
    height: 5.5rem;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.footer-heading {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-links-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
    text-align: left;
}

.footer-link:hover {
    color: #fff;
}

.footer-contact-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.contact-item:hover {
    color: #fff;
}

.contact-item img {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

.footer-socials a:hover {
    color: #fff;
}

.footer-socials img {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    /* Prevent warping */
    object-fit: contain;
}

.filter-white {
    filter: brightness(0) invert(1);
}

/* Footer Media Queries */
@media (max-width: 90rem) {
    .footer-container {
        padding-bottom: 2.5rem;
    }

    .footer-content {
        max-width: 90%;
    }
}

@media (max-width: 48rem) {
    .footer-container {
        padding-bottom: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
        /* Keep left alignment for better flow */
    }
}

/* Removed from here and moved above media queries */

/* Removed redundant min-width: 768px hide as dots are now hidden by default */



.event-carousel-card,
.testimonial-carousel-card,
.lp-lens-item {
    scroll-snap-align: start;
}

/* Responsive Visibility Utilities */
.hidden-desktop {
    display: none !important;
}

@media (max-width: 980px) {
    .hidden-tablet {
        display: none !important;
    }

    .hidden-desktop {
        display: flex !important;
    }
}

/* Hide scrollbar across all browsers */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* ── PAGE SPECIFIC COMPONENTS ───────────────────────────────────────── */

/* --- Login & Registration Common --- */
.register-input {
    background-color: var(--input-bg);
    border: 1px solid var(--border-extra-soft);
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.register-input:focus {
    border-color: var(--accent-purple);
}

.login-card,
.register-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-extra-soft);
    border-radius: 12px;
    padding: 48px 32px;
    max-width: 650px;
    margin: 0 auto;
}

.register-card {
    max-width: 800px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.eye-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 22px;
    height: auto;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.eye-toggle:hover {
    opacity: 1;
}

.tab-btn-group {
    background: #140622;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.4);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-purple);
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(184, 69, 244, 0.2);
}

.register-hero {
    padding: 48px 24px;
    background-color: var(--card-bg);
    margin-bottom: 24px;
}

/* --- Device Listing Page --- */
.listing-page {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.listing-main {
    width: min(calc(100% - 48px), 1300px);
    margin: 0 auto;
    padding: 0 0 96px;
}

.listing-hero {
    background-color: var(--card-bg);
    padding: 48px 0;
    margin-bottom: 48px;
}

.listing-hero-container {
    width: min(calc(100% - 48px), 1300px);
    margin: 0 auto;
}

.listing-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
    text-align: left;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 72px;
}

.filter-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--card-bg);
    border: 1px solid var(--border-standard);
    border-radius: 10px;
    padding: 0 52px 0 24px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    height: 56px;
    transition: all 0.2s ease;
    text-align: center;
    outline: none;
}

.filter-select option {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 12px;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--text-active-purple);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(207, 69, 240, 0.15);
}

.filter-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-soft);
    display: flex;
    align-items: center;
}

.filter-arrow svg {
    width: 12px;
    height: 12px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
    color: var(--text-soft);
}

.empty-state-icon {
    font-size: 48px;
}

/* --- Contact Page --- */
.contact-input,
.register-input {
    background-color: var(--input-bg);
    border: 1px solid var(--border-extra-soft);
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.contact-input::placeholder,
.register-input::placeholder {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.contact-input:focus,
.register-input:focus {
    border-color: var(--accent-purple);
}

.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-extra-soft);
    border-radius: 12px;
    padding: 32px 24px;
}

.contact-hero {
    padding: 80px 20px 80px;
    text-align: center;
    background-color: var(--card-bg);
    margin-bottom: 40px;
}

/* --- Custom Scrollbar Utility --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── RESPONSIVE OVERRIDES ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .info-card {
        padding: 20px 16px;
    }

    .contact-hero {
        padding: 60px 20px 40px;
        margin-bottom: 24px;
    }

    .contact-input,
    .register-input {
        padding: 10px 14px;
        font-size: 14px;
    }

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