:root {
    --blue: #1565D8;
    --dark-blue: #0B2140;
    --navy: #103A63;
    --navy-2: #174E7A;
    --yellow: #F2B84B;
    --light: #FFFFFF;
    --grey: #F4F7FB;
    --line: #DDE6F2;
    --dark-grey: #516273;
    --dark: #14253A;
    --success: #1FA874;
    --accent-soft: #EAF3FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Sans Thai', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    background: linear-gradient(180deg, #f7f9fc 0%, var(--grey) 100%);
    color: var(--dark-grey);
    line-height: 1.7;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(11, 33, 64, 0.16);
}

.navbar-container {
    min-height: 76px;
    width: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    color: var(--light);
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
}

.logo span {
    color: var(--yellow);
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.nav-links-left,
.nav-links-right {
    display: flex;
    align-items: center;
}

.nav-links-left {
    gap: 28px;
}

.nav-links-right {
    gap: 14px;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.nav-links a,
.ealocker-language-switch,
.nav-inline {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: color .18s ease, transform .18s ease, opacity .18s ease;
}

.ealocker-language-switch.active,
.nav-inline.active,
.nav-links a:hover,
.ealocker-language-switch:hover,
.nav-inline:hover {
    color: #1565D8;
    transform: translateY(-1px);
}

.ealocker-language-switch:not(.active),
.nav-inline:not(.active) {
    opacity: 1;
    color: rgba(84, 100, 119, 0.92);
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 76px);
    background:
        radial-gradient(circle at 82% 16%, rgba(242, 184, 75, 0.18) 0, rgba(242, 184, 75, 0) 28%),
        radial-gradient(circle at 18% 84%, rgba(21, 101, 216, 0.16) 0, rgba(21, 101, 216, 0) 34%),
        linear-gradient(125deg, #071a33 0%, #113b64 48%, #1c5888 100%);
    color: var(--light);
    display: flex;
    align-items: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 260px;
    background: linear-gradient(180deg, rgba(243, 246, 250, 0), rgba(243, 246, 250, 0.18));
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
    gap: 56px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 74px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-kicker::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--yellow);
}

.hero-section h1 {
    max-width: 720px;
    margin: 0;
    color: var(--light);
    font-size: 58px;
    line-height: 1.0;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-section h1 .highlight {
    display: block;
    margin-top: 18px;
    color: var(--yellow);
    font-size: 52px;
    line-height: 1.0;
}

.hero-copy {
    max-width: 720px;
    margin: 26px 0 36px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    min-height: 52px;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn-primary {
    color: var(--light);
    background: var(--blue);
    border: 1px solid var(--blue);
    box-shadow: 0 10px 24px rgba(21, 101, 216, 0.18);
}

.btn-primary:hover {
    color: var(--light);
    background: #0f59c4;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(21, 101, 216, 0.16);
}

.btn-secondary {
    color: var(--light);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.68);
}

.btn-secondary:hover {
    color: var(--dark-blue);
    background: var(--light);
    transform: translateY(-1px);
}

.hero-panel {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(219, 228, 240, 0.9);
    box-shadow: 0 26px 72px rgba(11, 33, 64, 0.18);
    overflow: hidden;
    transform: translateY(14px);
}

.panel-topbar {
    height: 48px;
    background: #edf3fa;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
}

.panel-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #C4D0DE;
}

.panel-topbar span:first-child {
    background: var(--yellow);
}

.panel-topbar strong {
    margin-left: auto;
    color: var(--dark);
    font-size: 13px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.metric-card,
.status-list,
.chart-lines {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--light);
}

.metric-card {
    padding: 18px;
}

.metric-card small {
    display: block;
    color: var(--dark-grey);
    font-size: 12px;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    color: var(--dark);
    font-size: 32px;
    line-height: 1;
}

.metric-card em {
    display: inline-flex;
    margin-top: 12px;
    color: var(--success);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.status-list {
    grid-column: 1 / -1;
    padding: 8px 12px;
}

.status-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #EDF2F7;
}

.status-list div:last-child {
    border-bottom: 0;
}

.status-list strong {
    margin-left: auto;
    color: var(--blue);
    font-size: 11px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #C4D0DE;
}

.status-dot.on {
    background: var(--success);
}

.chart-lines {
    grid-column: 1 / -1;
    height: 126px;
    padding: 18px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.chart-lines span {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--blue), #9BC2FF);
}

.features-section,
.pricing-section {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: 74px 0;
}

.features-section > .container,
.pricing-section > .container {
    width: 100%;
}

.features-section {
    background: var(--light);
}

.pricing-section {
    background: var(--grey);
}

.title {
    color: var(--dark-blue);
    font-size: 38px;
    line-height: 1.25;
    text-align: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.subtitle {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--dark-grey);
    font-size: 17px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid var(--line);
    padding: 28px;
    min-height: 258px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16, 34, 58, 0.07);
    border-color: #c3d5eb;
}

.feature-card i {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    background: var(--accent-soft);
    font-size: 20px;
    margin-bottom: 22px;
}

.feature-card h3 {
    color: var(--dark-blue);
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--dark-grey);
    font-size: 15px;
    margin: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: var(--light);
    border: 1px solid var(--line);
    padding: 30px;
    min-height: 488px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(16, 34, 58, 0.06);
}

.pricing-card.popular {
    border-color: #e8c365;
    min-height: 536px;
    padding-top: 38px;
    transform: translateY(-12px);
    box-shadow: 0 20px 44px rgba(16, 34, 58, 0.1);
}

.pricing-card.popular::before {
    content: 'ยอดนิยม';
    position: absolute;
    top: 20px;
    right: -48px;
    width: 176px;
    border-radius: 0;
    background: var(--yellow);
    color: var(--dark-blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 0;
    text-align: center;
    transform: rotate(38deg);
    box-shadow: 0 8px 20px rgba(138, 100, 0, 0.24);
}

.pricing-card h3 {
    color: var(--dark-blue);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.price {
    color: var(--blue);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
}

.price sup {
    font-size: 22px;
}

.duration {
    color: var(--dark-grey);
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
}

.saving {
    color: var(--dark-grey);
    font-size: 15px;
    margin: 28px 0 22px;
}

.plan-features {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
}

.plan-features li {
    position: relative;
    padding-left: 28px;
    color: var(--dark);
    font-size: 14px;
    line-height: 1.55;
}

.plan-features li::before {
    content: '\f00c';
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: var(--blue);
    font-family: 'Font Awesome 6 Free';
    font-size: 10px;
    font-weight: 900;
}

.pricing-card.popular .plan-features li::before {
    color: var(--dark-blue);
    background: var(--yellow);
}

.btn-purchase {
    margin-top: auto;
    min-height: 48px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: var(--light);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.btn-purchase:hover {
    background: #1259be;
    transform: translateY(-1px);
}

.pricing-card.popular .btn-purchase {
    background: var(--yellow);
    color: var(--dark-blue);
}

footer {
    background: var(--dark-blue);
    color: rgba(255, 255, 255, 0.78);
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
}

footer p {
    margin: 0;
}

#news-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.62);
}

.popup-content-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 760px;
    width: min(92vw, 760px);
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 32px 90px rgba(2, 12, 27, 0.42);
    background: #081a33;
}

.promotion-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#promotion-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.promotion-dismiss-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 18px 18px;
    background: #081a33;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    cursor: pointer;
}

.promotion-dismiss-option input {
    width: 16px;
    height: 16px;
}

@media (max-width: 1040px) {
    .navbar-container {
        padding: 0 22px;
    }

    .nav-links-left {
        gap: 18px;
    }

    .nav-links-right {
        gap: 10px;
        padding-left: 16px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-panel {
        max-width: 620px;
    }
}

@media (max-width: 820px) {
    html {
        scroll-padding-top: 0;
    }

    .main-navbar {
        position: relative;
    }

    .navbar-container {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-container {
        padding-top: 70px;
        padding-bottom: 62px;
    }

    .hero-section h1 {
        font-size: 42px;
    }

    .hero-copy {
        font-size: 17px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .features-section,
    .pricing-section {
        display: block;
        min-height: auto;
        padding: 64px 0;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 18px;
    }

    .logo {
        font-size: 25px;
    }

    .hero-section h1 {
        font-size: 34px;
    }

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

    .status-list,
    .chart-lines {
        grid-column: auto;
    }
}
