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

html,
body {
    height: 100%;
    font-family: 'Poppins-Regular';
    background-color: #F0EEF8;
    color: #312C51;
}

:root {
    --deep:          #312C51;
    --deep-dark:     #211d38;
    --mid:           #48426D;
    --mid-light:     rgba(72, 66, 109, 0.14);
    --gold:          #F0C38E;
    --gold-dark:     #e0a96a;
    --salmon:        #F1AA9B;
    --salmon-light:  rgba(241, 170, 155, 0.2);
    --bg:            #F0EEF8;
    --bg-dark:       #e2dff2;
    --text-primary:  #312C51;
    --text-mid:      #48426D;
    --text-muted:    #7a6e9a;
    --white:         #ffffff;
    /* legacy compat */
    --left_pannel_bg: #312C51;
    --active:         rgba(240, 195, 142, 0.18);
}

/* ===================================================
   LAYOUT
=================================================== */
.main_wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ===================================================
   LEFT PANEL
=================================================== */
.left_pannel {
    width: 100%;
    max-width: 250px;
    height: 100vh;
    background-color: var(--deep);
    display: flex;
    flex-direction: column;
}

.logo {
    border-bottom: 1px solid rgba(240, 195, 142, 0.2);
    padding: 10px;
    padding-bottom: 0;
    margin-bottom: 6px;
}

.logo img {
    width: 100%;
    max-width: 200px;
}

.pannel_menu {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: none;
}

.pannel_menu::-webkit-scrollbar {
    display: none;
}

.pannel_menu a {
    color: rgba(240, 238, 248, 0.65);
    text-decoration: none;
    font-size: 13.5px;
    padding: 10px 14px;
    transition: all .25s;
    border-left: 3px solid transparent;
}

.pannel_menu a:hover {
    background-color: rgba(240, 195, 142, 0.1);
    color: var(--gold);
    border-left-color: rgba(240, 195, 142, 0.4);
}

.pannel_menu a.active {
    background-color: rgba(240, 195, 142, 0.15);
    color: var(--gold);
    border-left-color: var(--gold);
    font-family: 'Poppins-SemiBold';
}

/* ===================================================
   RIGHT PANEL
=================================================== */
.right_menu {
    flex: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg);
}

.video_title {
    flex: 0 0 auto;
    text-align: center;
    background-color: var(--mid);
    border-bottom: 2px solid var(--deep);
    padding: 17px 20px;
    position: relative;
}

.video_title h3 {
    font-family: 'Poppins-SemiBold';
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 0.3px;
}

.video_section {
    flex: 1;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a1728;
    border-radius: 8px;
}

video {
    width: 100%;
    height: 100%;
}

.inner_video {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ===================================================
   DETECTED PLATES PANEL
=================================================== */
.detected_btn {
    padding: 6px 18px;
    background-color: var(--gold);
    color: var(--deep);
    font-family: 'Poppins-SemiBold';
    border: none;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .2s, transform .15s;
}

.detected_btn:hover {
    background-color: var(--gold-dark);
    transform: translateY(-1px);
}

.detected_plates_list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100%;
    background-color: rgba(33, 29, 56, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    transition: all .5s;
    z-index: 50;
}

.close_btn {
    width: 28px;
    cursor: pointer;
    margin: 16px;
    transform: rotate(-180deg);
    filter: brightness(10) opacity(0.8);
}

.detected_list {
    border-top: 1px solid rgba(240, 195, 142, 0.2);
}

.detected_list ul {
    list-style: none;
}

.detected_list li {
    padding: 10px 14px;
    display: block;
    color: rgba(240, 238, 248, 0.85);
    border-bottom: 1px solid rgba(240, 195, 142, 0.12);
    transition: background-color .2s;
    font-size: 13px;
}

.detected_list li:hover {
    background-color: rgba(240, 195, 142, 0.1);
}

.detected_list li:last-child {
    border-bottom: 0;
}

/* ===================================================
   HEADER TOGGLE / CLOSE BUTTONS (mobile)
=================================================== */
.toggle_button {
    background-color: transparent;
    border: 0;
    margin-left: 10px;
    display: none;
}

.toggle_button img {
    width: 28px;
    cursor: pointer;
    filter: brightness(10);
}

.close_button {
    background-color: transparent;
    border: 0;
    margin-left: 10px;
    display: none;
}

.close_button img {
    width: 28px;
    cursor: pointer;
    filter: brightness(10);
}

.header_right_button {
    position: absolute;
    right: 0;
    top: 0;
    margin: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===================================================
   SERVICE PAGE RICH DESIGN
=================================================== */
.service_content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--mid) var(--bg-dark);
}

.service_content::-webkit-scrollbar {
    width: 5px;
}

.service_content::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.service_content::-webkit-scrollbar-thumb {
    background: var(--mid);
    border-radius: 4px;
}

.service_video_wrap {
    width: 100%;
    height: 56vh;
    flex-shrink: 0;
    padding: 12px 12px 0;
}

.service_video_wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: #1a1728;
}

.service_info {
    padding: 18px 20px 30px;
}

.service_stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.stat_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(72, 66, 109, 0.08);
    border: 1px solid rgba(72, 66, 109, 0.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    color: var(--mid);
    font-family: 'Poppins-Regular';
}

.stat_dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--salmon);
    box-shadow: 0 0 6px var(--salmon);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.service_desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.78;
    margin-bottom: 20px;
    max-width: 860px;
}

.section_label {
    font-family: 'Poppins-SemiBold';
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.service_features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.sfeature_card {
    background: var(--white);
    border: 1px solid var(--bg-dark);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.sfeature_card:hover {
    border-color: var(--gold);
    box-shadow: 0 3px 18px rgba(240, 195, 142, 0.35);
    transform: translateY(-2px);
}

.sfeature_icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.4;
}

.sfeature_text h4 {
    font-family: 'Poppins-SemiBold';
    font-size: 12px;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.sfeature_text p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===================================================
   LANDING PAGE
=================================================== */
body.landing_body {
    height: auto;
    overflow-y: auto;
    background-color: var(--bg);
    color: var(--text-primary);
}

.landing_header {
    position: sticky;
    top: 0;
    background-color: var(--deep);
    border-bottom: 2px solid var(--deep-dark);
    padding: 14px 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header_right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header_badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(240, 238, 248, 0.65);
    font-family: 'Poppins-Regular';
}

.badge_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--salmon);
    box-shadow: 0 0 6px var(--salmon);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.landing_logo img {
    max-height: 45px;
    width: auto;
}

.hero_section {
    padding: 90px 40px 80px;
    text-align: center;
    background-color: var(--bg);
}

.hero_title {
    font-family: 'Poppins-Bold';
    font-size: 56px;
    margin-bottom: 14px;
    color: var(--deep);
}

.hero_tagline {
    font-family: 'Poppins-Light';
    font-size: 22px;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.hero_desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta_btn {
    display: inline-block;
    padding: 14px 42px;
    background-color: var(--mid);
    color: var(--gold);
    font-family: 'Poppins-SemiBold';
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.25s, transform 0.2s;
}

.cta_btn:hover {
    background-color: var(--deep);
    transform: translateY(-2px);
}

.services_section {
    padding: 60px 40px;
    background-color: var(--bg);
}

.services_heading {
    font-family: 'Poppins-SemiBold';
    font-size: 28px;
    text-align: center;
    margin-bottom: 36px;
    color: var(--text-primary);
}

.services_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature_card {
    background-color: var(--white);
    border: 1px solid var(--bg-dark);
    border-radius: 12px;
    padding: 26px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s;
    display: block;
}

.feature_card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 28px rgba(240, 195, 142, 0.35);
    transform: translateY(-4px);
}

.feature_icon {
    font-size: 30px;
    margin-bottom: 14px;
}

.feature_card h3 {
    font-family: 'Poppins-SemiBold';
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature_card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing_footer {
    padding: 28px 40px;
    border-top: 1px solid var(--bg-dark);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    background-color: var(--bg);
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 767.98px) {
    .toggle_button {
        display: inline-block;
    }
    .left_pannel {
        position: fixed;
        top: 0;
        left: -100%;
        transition: all .5s;
        z-index: 10;
    }
    .video_title {
        text-align: left;
        padding: 16px 10px;
    }
    .video_title h3 {
        font-size: 14px;
    }
    .detected_btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    .header_right_button {
        margin: 12px 14px;
    }
    .toggle_button {
        margin-left: 4px;
    }
    video {
        height: auto;
    }
    .video_section {
        display: block;
    }
    .service_video_wrap {
        height: 38vw;
        min-height: 190px;
    }
    .service_features {
        grid-template-columns: 1fr 1fr;
    }
    .landing_header {
        padding: 14px 20px;
    }
    .header_badge {
        display: none;
    }
    .hero_section {
        padding: 60px 20px 50px;
    }
    .hero_title {
        font-size: 34px;
    }
    .hero_tagline {
        font-size: 16px;
    }
    .services_section {
        padding: 40px 20px;
    }
    .services_grid {
        grid-template-columns: 1fr;
    }
}
