
/* =====================================================
   RESET
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "IBM Plex Sans Thai",
        "Plus Jakarta Sans",
        sans-serif;

    background: #f7faff;
    color: #0b1736;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}


/* =====================================================
   GLOBAL
===================================================== */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}




/* =====================================================
   FIXED NAVBAR
===================================================== */

.navbar {

    position: fixed !important;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;

    height: 76px;

    z-index: 99999;

    background:
        rgba(255, 255, 255, 0.94);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    border-bottom:
        1px solid rgba(20, 60, 120, .08);

    box-shadow:
        0 4px 20px
        rgba(15, 45, 90, .05);

    transition:
        background .3s ease,
        box-shadow .3s ease,
        height .3s ease;
}




/* =====================================================
   NAV CONTAINER
===================================================== */

.nav-container {

    width:
        min(1280px, calc(100% - 40px));

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* =====================================================
   BRAND
===================================================== */

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    text-decoration: none;
}


/* LOGO */

.brand-logo {

    position: relative;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #0d5bd7,
            #00b8ff
        );

    box-shadow:
        0 8px 22px
        rgba(13,91,215,.25);

    overflow: hidden;
}


/* logo glow */

.brand-logo::before {

    content: "";

    position: absolute;

    width: 35px;
    height: 35px;

    right: -15px;
    top: -15px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.25);

    filter: blur(8px);
}


/* ADIS */

.brand-logo span {

    position: relative;

    z-index: 2;

    color: white;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: -.5px;
}


/* BRAND TEXT */

.brand-info {

    display: flex;

    flex-direction: column;

    justify-content: center;

    line-height: 1;
}


.brand-name {

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: .08em;

    color: #07152f;
}


.brand-sub {

    margin-top: 6px;

    color: #8290a6;

    font-size: 10px;

    letter-spacing: .02em;
}


/* =====================================================
   NAV MENU
===================================================== */

.nav-menu {

    display: flex;

    align-items: center;

    gap: 4px;

    margin-left: auto;
}


.nav-link {

    position: relative;

    display: flex;

    align-items: center;

    gap: 7px;

    height: 42px;

    padding:
        0 14px;

    border-radius: 10px;

    color: #607089;

    font-size: 13px;

    font-weight: 500;

    text-decoration: none;

    transition:
        .25s ease;
}


.nav-link:hover {

    color: #1264d9;

    background:
        #f1f6ff;
}


/* ICON */

.nav-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    color: #8b99ad;

    transition:
        .25s ease;
}


.nav-link:hover .nav-icon {

    color: #1264d9;
}


/* ACTIVE */

.nav-link.active {

    color: #1264d9;

    background:
        #edf5ff;

    font-weight: 600;
}


.nav-link.active .nav-icon {

    color: #1264d9;
}


/* active line */

.nav-link.active::after {

    content: "";

    position: absolute;

    bottom: -17px;

    left: 50%;

    transform:
        translateX(-50%);

    width: 22px;

    height: 3px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            #1264d9,
            #00b8ff
        );
}


/* =====================================================
   RIGHT
===================================================== */

.nav-right {

    display: flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;
}


/* =====================================================
   SYSTEM STATUS
===================================================== */

.system-status {

    display: flex;

    align-items: center;

    gap: 7px;

    height: 34px;

    padding:
        0 11px;

    border-radius: 20px;

    background:
        #f1faf5;

    border:
        1px solid #dcf3e6;

    color: #28915b;

    font-size: 10px;

    white-space: nowrap;
}


.status-dot {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        #27c777;

    box-shadow:
        0 0 0 4px
        rgba(39,199,119,.12);
}


/* =====================================================
   LOGIN
===================================================== */

.nav-login {

    height: 40px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        0 13px;

    border: 0;

    border-radius: 10px;

    background: transparent;

    color: #42526b;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        .25s ease;
}


.nav-login i {

    color: #1264d9;

    font-size: 16px;
}


.nav-login:hover {

    background:
        #f1f6ff;

    color: #1264d9;
}


/* =====================================================
   REGISTER
===================================================== */

.nav-register {

    height: 40px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        0 15px;

    border: 0;

    border-radius: 10px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #1264d9,
            #008fe8
        );

    box-shadow:
        0 7px 18px
        rgba(18,100,217,.20);

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        .25s ease;
}


.nav-register i {

    font-size: 13px;

    transition:
        transform .25s ease;
}


.nav-register:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 24px
        rgba(18,100,217,.28);
}


.nav-register:hover i {

    transform:
        translateX(3px);
}


/* =====================================================
   MOBILE BUTTON
===================================================== */

.mobile-menu {

    display: none;

    width: 40px;
    height: 40px;

    align-items: center;

    justify-content: center;

    border: 1px solid #e1e8f2;

    border-radius: 10px;

    background: white;

    color: #1264d9;

    font-size: 21px;

    cursor: pointer;
}


/* =====================================================
   SCROLL STATE
===================================================== */

.navbar.scrolled {

    background:
        rgba(255,255,255,.96);

    box-shadow:
        0 8px 30px
        rgba(15,45,90,.07);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:1100px) {

    .system-status {

        display: none;
    }

    .nav-menu {

        margin-left: auto;
    }

}


@media(max-width:900px) {

    .nav-menu {

        display: none;
    }

    .nav-right {

        margin-left: auto;
    }

    .mobile-menu {

        display: flex;
    }

}


@media(max-width:600px) {

    .nav-container {

        width:
            calc(100% - 24px);
    }

    .brand-info {

        display: none;
    }

    .nav-login span {

        display: none;
    }

    .nav-login {

        width: 40px;
        padding: 0;

        justify-content: center;
    }

    .nav-register {

        padding:
            0 12px;
    }

    .nav-register i {

        display: none;
    }

}




.btn-login,
.btn-register {
    border: 0;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.btn-login {
    background: transparent;
    color: #1264d9;
}

.btn-register {
    color: white;

    background: #1264d9;

    box-shadow:
        0 8px 20px rgba(18,100,217,.22);
}

.mobile-menu {
    display: none;

    border: 0;
    background: transparent;

    font-size: 25px;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 760px;

    padding-top: 150px;
    padding-bottom: 100px;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(0,184,255,.13),
            transparent 32%
        ),

        radial-gradient(
            circle at 20% 60%,
            rgba(18,100,217,.08),
            transparent 30%
        ),

        #f8fbff;
}

.hero-bg {
    position: absolute;

    width: 600px;
    height: 600px;

    right: -250px;
    top: 100px;

    border-radius: 50%;

    border: 1px solid rgba(18,100,217,.08);
}

.hero-grid {
    display: grid;

    grid-template-columns:
        1.05fr .95fr;

    gap: 80px;

    align-items: center;
}

.hero-badge {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 8px 13px;

    border-radius: 30px;

    background: rgba(18,100,217,.07);

    color: #1264d9;

    font-size: 11px;

    font-family: "Plus Jakarta Sans";

    font-weight: 700;

    letter-spacing: .08em;
}

.pulse {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #24c96f;

    box-shadow:
        0 0 0 5px rgba(36,201,111,.12);
}

.hero h1 {
    margin-top: 22px;

    font-family: "Plus Jakarta Sans";

    font-size: clamp(40px, 5vw, 65px);

    line-height: 1.12;

    letter-spacing: -2px;

    color: #07152f;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #1264d9,
            #00aeea
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-content > p {
    max-width: 600px;

    margin-top: 25px;

    color: #66758e;

    font-size: 17px;

    line-height: 1.8;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 32px;
}

.btn-primary {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding: 14px 23px;

    border: 0;

    border-radius: 12px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #1264d9,
            #008eea
        );

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 12px 28px rgba(18,100,217,.25);
}

.btn-outline {
    padding: 14px 23px;

    border: 1px solid #d8e1ee;

    border-radius: 12px;

    color: #1264d9;

    background: white;

    font-weight: 600;
}

.hero-stats {
    display: flex;

    gap: 45px;

    margin-top: 55px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-family: "Plus Jakarta Sans";

    font-size: 25px;
}

.hero-stats span {
    font-size: 12px;

    color: #8492a8;

    margin-top: 3px;
}


/* =====================================================
   WARRANTY CARD
===================================================== */

.warranty-card {
    position: relative;

    padding: 32px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #07152f,
            #0b2349
        );

    color: white;

    box-shadow:
        0 35px 80px rgba(5,30,70,.22);

    overflow: hidden;
}

.card-glow {
    position: absolute;

    width: 250px;
    height: 250px;

    right: -100px;
    top: -100px;

    border-radius: 50%;

    background: #00b8ff;

    filter: blur(100px);

    opacity: .2;
}

.card-header {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.small-label {
    color: #64cfff;

    font-family: "Plus Jakarta Sans";

    font-size: 10px;

    letter-spacing: .15em;
}

.card-header h2 {
    margin-top: 5px;

    font-size: 25px;
}

.shield-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: rgba(255,255,255,.08);

    color: #4fe1ff;

    font-size: 22px;
}

.form-group {
    position: relative;

    margin-top: 35px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

    font-size: 13px;

    color: #b8c6db;
}

.input-box {
    display: flex;

    align-items: center;

    height: 56px;

    padding-left: 15px;

    border-radius: 12px;

    background: white;
}

.input-icon {
    color: #1264d9;

    font-weight: 700;

    margin-right: 10px;
}

.input-box input {
    flex: 1;

    height: 100%;

    border: 0;

    outline: none;

    color: #182943;

    font-size: 14px;
}

.input-box button {
    height: 46px;

    margin-right: 5px;

    padding: 0 17px;

    border: 0;

    border-radius: 9px;

    background: #1264d9;

    color: white;

    font-weight: 600;

    cursor: pointer;
}

.divider {
    display: flex;

    align-items: center;

    gap: 15px;

    margin: 25px 0;

    color: #70819b;

    font-size: 12px;
}

.divider::before,
.divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: rgba(255,255,255,.1);
}

.qr-button {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px;

    border: 1px solid rgba(255,255,255,.09);

    border-radius: 13px;

    background: rgba(255,255,255,.055);

    color: white;

    text-align: left;

    cursor: pointer;
}

.qr-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(0,184,255,.13);

    color: #53d9ff;

    font-size: 24px;
}

.qr-button div {
    flex: 1;
}

.qr-button strong {
    display: block;

    font-size: 13px;
}

.qr-button small {
    display: block;

    margin-top: 3px;

    color: #8394ad;

    font-size: 10px;
}

.arrow {
    color: #56d8ff;

    font-size: 20px;
}

.secure-info {
    margin-top: 23px;

    color: #8da0b9;

    font-size: 10px;

    text-align: center;
}

.secure-info span {
    color: #38d17c;

    margin-right: 5px;
}


/* =====================================================
   SERVICES
===================================================== */

.services {
    padding: 110px 0;

    background: white;
}

.section-heading {
    text-align: center;

    max-width: 650px;

    margin: auto;
}

.section-heading > span,
.section-label {
    color: #1264d9;

    font-family: "Plus Jakarta Sans";

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .15em;
}

.section-heading h2 {
    margin-top: 12px;

    font-family: "Plus Jakarta Sans";

    font-size: 38px;

    line-height: 1.3;
}

.section-heading h2 strong {
    color: #1264d9;
}

.section-heading p {
    margin-top: 12px;

    color: #7b889d;

    font-size: 15px;
}

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    margin-top: 55px;
}

.service-card {
    padding: 28px;

    border: 1px solid #e7edf5;

    border-radius: 18px;

    background: white;

    transition: .3s;
}

.service-card:hover {
    transform: translateY(-6px);

    border-color: #b9d8ff;

    box-shadow:
        0 20px 45px rgba(20,60,120,.08);
}

.service-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    font-size: 20px;

    margin-bottom: 20px;
}

.service-icon.blue {
    color: #1264d9;
    background: #edf5ff;
}

.service-icon.cyan {
    color: #009dcc;
    background: #eafcff;
}

.service-icon.purple {
    color: #7854df;
    background: #f4efff;
}

.service-icon.green {
    color: #19a965;
    background: #ebfbf3;
}

.service-card h3 {
    font-size: 17px;
}

.service-card p {
    min-height: 52px;

    margin-top: 10px;

    color: #7a879a;

    font-size: 13px;

    line-height: 1.7;
}

.service-card a {
    display: inline-block;

    margin-top: 18px;

    color: #1264d9;

    font-size: 13px;

    font-weight: 600;
}


/* =====================================================
   MEMBER
===================================================== */

.member {
    padding: 110px 0;

    background:
        linear-gradient(
            135deg,
            #f0f6ff,
            #f8fcff
        );
}

.member-grid {
    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 90px;

    align-items: center;
}

.member-content h2 {
    margin-top: 15px;

    font-family: "Plus Jakarta Sans";

    font-size: 42px;

    line-height: 1.25;
}

.member-content h2 span {
    color: #1264d9;
}

.member-content > p {
    margin-top: 20px;

    color: #69788f;

    line-height: 1.8;
}

.feature-list {
    list-style: none;

    margin: 25px 0 30px;
}

.feature-list li {
    margin: 13px 0;

    color: #43536d;

    font-size: 14px;
}

.feature-list span {
    display: inline-grid;

    place-items: center;

    width: 22px;
    height: 22px;

    margin-right: 8px;

    border-radius: 50%;

    background: #e5f8ef;

    color: #1bb36a;

    font-size: 11px;
}

.member-dashboard {
    padding: 27px;

    border: 1px solid #dce7f5;

    border-radius: 22px;

    background: rgba(255,255,255,.8);

    box-shadow:
        0 25px 60px rgba(20,60,120,.08);
}

.dashboard-top {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.dashboard-top span {
    color: #8a98ab;

    font-family: "Plus Jakarta Sans";

    font-size: 10px;

    letter-spacing: .12em;
}

.dashboard-top h3 {
    margin-top: 5px;

    font-size: 20px;
}

.avatar {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #1264d9;

    color: white;

    font-weight: 700;
}

.dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 12px;

    margin: 25px 0;
}

.dashboard-stats div {
    padding: 17px;

    border-radius: 12px;

    background: #f5f8fc;
}

.dashboard-stats span {
    display: block;

    color: #8290a4;

    font-size: 11px;
}

.dashboard-stats strong {
    display: block;

    margin-top: 5px;

    font-family: "Plus Jakarta Sans";

    font-size: 24px;
}

.green-text {
    color: #1ca86a;
}

.orange-text {
    color: #e99527;
}

.product-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.product-item {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 14px;

    border: 1px solid #edf1f6;

    border-radius: 12px;

    background: white;
}

.product-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #f0f5fb;
}

.product-info {
    flex: 1;
}

.product-info strong {
    display: block;

    font-size: 13px;
}

.product-info span {
    display: block;

    margin-top: 3px;

    color: #8b97a9;

    font-size: 10px;
}

.product-status {
    color: #1aa568;

    font-size: 10px;
}

.product-status span {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 4px;

    border-radius: 50%;

    background: #27c777;
}

.product-status.warning {
    color: #dc8c20;
}

.product-status.warning span {
    background: #efad3b;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding-top: 65px;

    background: #06132b;

    color: white;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.6fr 1fr 1fr 1.3fr;

    gap: 40px;

    padding-bottom: 55px;
}

.footer-brand {
    font-family: "Plus Jakarta Sans";

    font-size: 30px;

    font-weight: 800;

    color: #45caff;
}

footer p {
    color: #8798b3;

    font-size: 12px;

    line-height: 1.8;
}

.footer-grid h4 {
    margin-bottom: 14px;

    font-size: 13px;
}

.footer-grid a {
    display: block;

    margin: 8px 0;

    color: #899ab5;

    font-size: 12px;
}

.footer-bottom {
    padding: 18px;

    border-top: 1px solid rgba(255,255,255,.07);

    text-align: center;

    color: #637590;

    font-size: 10px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width: 1000px) {

    .nav-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

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

    .hero-content {
        text-align: center;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .service-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .member-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2,1fr);
    }
}


@media(max-width: 600px) {

    .container {
        width: min(
            100% - 28px,
            1180px
        );
    }

    .navbar {
        height: 68px;
    }

    .brand-text {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .hero {
        padding-top: 110px;
    }

    .hero h1 {
        font-size: 38px;

        letter-spacing: -1.5px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        justify-content: center;
    }

    .hero-stats {
        gap: 22px;
    }

    .hero-stats strong {
        font-size: 20px;
    }

    .warranty-card {
        padding: 22px;
    }

    .input-box {
        height: auto;

        padding: 5px;
    }

    .input-box input {
        min-width: 0;

        height: 45px;
    }

    .input-box button {
        height: 45px;
    }

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

    .section-heading h2 {
        font-size: 30px;
    }

    .member-content h2 {
        font-size: 32px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .product-item {
        align-items: flex-start;
    }

    .product-status {
        display: none;
    }

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

}

/* =====================================================
   NAVBAR WHEN SCROLL
===================================================== */

.navbar.scrolled {

    background:
        rgba(255, 255, 255, 0.98);

    box-shadow:
        0 8px 30px
        rgba(15, 45, 90, .10);

    border-bottom-color:
        rgba(18, 100, 217, .10);
}
/* =====================================================
   ONLINE STATUS
===================================================== */

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    height: 38px;
    padding: 0 15px;

    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.20);
    border-radius: 999px;

    color: #16a34a;
    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    transition: all .3s ease;
}

.system-status:hover {
    background: rgba(34, 197, 94, 0.13);
    border-color: rgba(34, 197, 94, 0.35);

    box-shadow:
        0 4px 15px rgba(34, 197, 94, 0.12);

    transform: translateY(-1px);
}


/* จุด Online */
.status-dot {
    position: relative;

    width: 9px;
    height: 9px;

    background: #22c55e;
    border-radius: 50%;

    flex-shrink: 0;

    box-shadow:
        0 0 0 0 rgba(34, 197, 94, 0.65);

    animation: onlinePulse 1.8s infinite;
}


/* วงแหวนกระจาย */
.status-dot::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: rgba(34, 197, 94, 0.45);

    transform: translate(-50%, -50%);

    animation: onlineRing 1.8s infinite;
}


/* จุด Highlight */
.status-dot::after {
    content: "";

    position: absolute;

    width: 3px;
    height: 3px;

    top: 2px;
    left: 2px;

    background: #dcfce7;
    border-radius: 50%;
}


/* =====================================================
   ANIMATION
===================================================== */

@keyframes onlinePulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(34, 197, 94, 0.65);
    }

    70% {
        box-shadow:
            0 0 0 7px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(34, 197, 94, 0);
    }

}


@keyframes onlineRing {

    0% {
        width: 9px;
        height: 9px;
        opacity: .8;
    }

    70% {
        width: 25px;
        height: 25px;
        opacity: 0;
    }

    100% {
        width: 25px;
        height: 25px;
        opacity: 0;
    }

}
.login-modal {
    position: fixed;

    inset: 0;

    z-index: 100000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


.login-modal.show {
    visibility: visible;
    opacity: 1;
}


/* =====================================================
   OVERLAY
===================================================== */

.login-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(3, 12, 30, .68);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* =====================================================
   LOGIN BOX — NO SCALE / NO SCROLL
===================================================== */

.login-box {
    position: relative;

    width: 100%;
    max-width: 440px;

    /* ไม่กำหนด max-height */
    max-height: none;

    /* ไม่ให้ฟอร์มมี scrollbar */
    overflow: visible;

    padding: 38px 38px 30px;

    background: rgba(255, 255, 255, .98);

    border: 1px solid rgba(255, 255, 255, .8);

    border-radius: 24px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .28),
        0 10px 30px rgba(18, 100, 217, .10);

    /* ไม่ย่อ */
    transform: translateY(20px);

    transition:
        transform .3s ease;
}


/* ตอนเปิด */

.login-modal.show .login-box {
    transform: translateY(0);
}

/* =====================================================
   CLOSE
===================================================== */

.login-close {

    position: absolute;

    top: 18px;
    right: 18px;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 10px;

    background: #f1f5f9;

    color: #64748b;

    font-size: 15px;

    cursor: pointer;

    transition: all .25s ease;
}


.login-close:hover {

    background: #fee2e2;

    color: #ef4444;

    transform: rotate(90deg);

}


/* =====================================================
   LOGO
===================================================== */

.login-logo {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 28px;
}


.login-logo-icon {

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #1264d9,
            #00b8ff
        );

    color: white;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: .5px;

    box-shadow:
        0 8px 20px rgba(18,100,217,.25);
}


.login-brand {

    display: flex;

    flex-direction: column;

    line-height: 1.2;
}


.login-brand strong {

    color: #07152f;

    font-size: 17px;

    letter-spacing: .8px;
}


.login-brand span {

    margin-top: 3px;

    color: #64748b;

    font-size: 11px;
}


/* =====================================================
   HEADER
===================================================== */

.login-header {

    margin-bottom: 25px;
}


.login-header h2 {

    margin: 0;

    color: #07152f;

    font-size: 25px;

    font-weight: 800;

    letter-spacing: -.5px;
}


.login-header p {

    margin: 8px 0 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}


/* =====================================================
   FIELD
===================================================== */

.login-field {

    margin-bottom: 18px;
}


.login-field label {

    display: block;

    margin-bottom: 8px;

    color: #334155;

    font-size: 13px;

    font-weight: 700;
}


.login-label-row {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.login-label-row label {

    margin-bottom: 8px;
}


.login-label-row a {

    color: #1264d9;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;
}


.login-label-row a:hover {

    text-decoration: underline;

}


/* =====================================================
   INPUT
===================================================== */

.login-input {

    position: relative;

    display: flex;

    align-items: center;

    height: 50px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    transition: all .25s ease;
}


.login-input:focus-within {

    background: #fff;

    border-color: #1264d9;

    box-shadow:
        0 0 0 4px rgba(18,100,217,.10);
}


.login-input > i {

    width: 48px;

    text-align: center;

    color: #94a3b8;

    font-size: 17px;

    transition: color .25s ease;
}


.login-input:focus-within > i {

    color: #1264d9;

}


.login-input input {

    flex: 1;

    width: 100%;

    height: 100%;

    padding: 0 12px 0 0;

    border: 0;

    outline: 0;

    background: transparent;

    color: #0f172a;

    font-size: 14px;
}


.login-input input::placeholder {

    color: #94a3b8;

}


/* =====================================================
   PASSWORD TOGGLE
===================================================== */

.password-toggle {

    width: 45px;

    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    color: #94a3b8;

    cursor: pointer;

    font-size: 16px;
}


.password-toggle:hover {

    color: #1264d9;

}


/* =====================================================
   REMEMBER
===================================================== */

.remember-login {

    display: flex;

    align-items: center;

    gap: 8px;

    margin: 4px 0 20px;

    color: #64748b;

    font-size: 12px;

    cursor: pointer;
}


.remember-login input {

    width: 15px;
    height: 15px;

    accent-color: #1264d9;

    cursor: pointer;
}


/* =====================================================
   SUBMIT
===================================================== */

.login-submit {

    width: 100%;

    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #1264d9,
            #0878ed
        );

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(18,100,217,.22);

    transition: all .25s ease;
}


.login-submit:hover {

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(18,100,217,.30);
}


.login-submit:active {

    transform: translateY(0);

}


.login-submit i {

    transition: transform .25s ease;
}


.login-submit:hover i {

    transform: translateX(4px);

}


/* =====================================================
   DIVIDER
===================================================== */

.login-divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 24px 0 20px;

    color: #94a3b8;

    font-size: 11px;
}


.login-divider::before,
.login-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: #e2e8f0;
}


/* =====================================================
   REGISTER
===================================================== */

.login-register {

    display: flex;

    justify-content: center;

    gap: 5px;

    font-size: 12px;

    color: #64748b;
}


.login-register a {

    color: #1264d9;

    font-weight: 700;

    text-decoration: none;
}


.login-register a:hover {

    text-decoration: underline;

}


/* =====================================================
   ONLINE
===================================================== */

.login-online {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid #f1f5f9;

    color: #16a34a;

    font-size: 11px;

    font-weight: 600;
}


.login-online span {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34,197,94,.12);

    animation: loginOnlinePulse 1.8s infinite;
}


@keyframes loginOnlinePulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(34,197,94,.45);
    }

    70% {
        box-shadow:
            0 0 0 6px rgba(34,197,94,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(34,197,94,0);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 500px) {

    .login-box {

        max-width: 100%;

        padding: 30px 22px 25px;

        border-radius: 20px;

    }

    .login-header h2 {

        font-size: 22px;

    }

}
/* =====================================================
   NAV USER
===================================================== */

.nav-user {
    position: relative;
}


/* USER BUTTON */

.nav-user-button {

    display: flex;

    align-items: center;

    gap: 10px;

    height: 48px;

    padding: 5px 10px 5px 6px;

    border: 1px solid rgba(18, 100, 217, .10);

    border-radius: 14px;

    background: rgba(248, 250, 252, .9);

    cursor: pointer;

    transition: all .25s ease;
}


.nav-user-button:hover {

    background: #fff;

    border-color: rgba(18, 100, 217, .25);

    box-shadow:
        0 8px 20px rgba(15, 45, 90, .08);

}


/* AVATAR */

.nav-user-avatar {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #1264d9,
            #00b8ff
        );

    color: #fff;

    font-size: 14px;

    font-weight: 800;

    box-shadow:
        0 5px 12px rgba(18, 100, 217, .20);
}


/* USER INFO */

.nav-user-info {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    min-width: 90px;

    line-height: 1.2;
}


.nav-user-info strong {

    max-width: 140px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #07152f;

    font-size: 12px;

    font-weight: 800;
}


.nav-user-info small {

    margin-top: 3px;

    color: #64748b;

    font-size: 10px;

}


/* ARROW */

.nav-user-arrow {

    color: #64748b;

    font-size: 11px;

    transition: transform .25s ease;
}


.nav-user.open .nav-user-arrow {

    transform: rotate(180deg);

}


/* =====================================================
   USER DROPDOWN
===================================================== */

.nav-user-dropdown {

    position: absolute;

    top: calc(100% + 10px);

    right: 0;

    width: 250px;

    padding: 10px;

    background: rgba(255,255,255,.98);

    border: 1px solid rgba(18,100,217,.08);

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(15,45,90,.16);

    backdrop-filter: blur(20px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;

    z-index: 100001;
}


/* OPEN */

.nav-user.open .nav-user-dropdown {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


/* =====================================================
   DROPDOWN HEADER
===================================================== */

.user-dropdown-header {

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 10px 8px 12px;
}


.user-dropdown-avatar {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #1264d9,
            #00b8ff
        );

    color: #fff;

    font-size: 15px;

    font-weight: 800;
}


.user-dropdown-header div:last-child {

    min-width: 0;

    display: flex;

    flex-direction: column;
}


.user-dropdown-header strong {

    color: #07152f;

    font-size: 13px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.user-dropdown-header span {

    margin-top: 3px;

    color: #94a3b8;

    font-size: 11px;
}


/* =====================================================
   DROPDOWN LINKS
===================================================== */

.nav-user-dropdown > a {

    display: flex;

    align-items: center;

    gap: 11px;

    height: 42px;

    padding: 0 11px;

    border-radius: 10px;

    color: #475569;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

    transition: all .2s ease;
}


.nav-user-dropdown > a i {

    width: 20px;

    text-align: center;

    color: #64748b;

    font-size: 15px;
}


.nav-user-dropdown > a:hover {

    background: #f1f6ff;

    color: #1264d9;

}


.nav-user-dropdown > a:hover i {

    color: #1264d9;

}


/* =====================================================
   DIVIDER
===================================================== */

.user-dropdown-divider {

    height: 1px;

    margin: 7px 4px;

    background: #eef2f7;
}


/* =====================================================
   LOGOUT
===================================================== */

.nav-user-dropdown > a.logout-link {

    color: #dc2626;
}


.nav-user-dropdown > a.logout-link i {

    color: #ef4444;
}


.nav-user-dropdown > a.logout-link:hover {

    background: #fef2f2;

    color: #dc2626;
}
.login-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.spin {
    animation: loginSpin .8s linear infinite;
}

@keyframes loginSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
.login-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;

    color: #64748b;

    cursor: pointer;

    border-radius: 8px;

    transition: all .2s ease;
}

.password-toggle:hover {
    color: #1264d9;
    background: rgba(18, 100, 217, .08);
}

.password-toggle:active {
    transform: translateY(-50%) scale(.94);
}

.password-toggle i {
    font-size: 18px;
}
/* =====================================================
   FORGOT PASSWORD MODAL
===================================================== */

.forgot-modal {

    position: fixed;

    inset: 0;

    z-index: 100001;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    visibility: hidden;

    opacity: 0;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


.forgot-modal.show {

    visibility: visible;

    opacity: 1;
}


/* =====================================================
   OVERLAY
===================================================== */

.forgot-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(7, 21, 43, .68);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);
}


/* =====================================================
   BOX
===================================================== */

.forgot-box {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 440px;

    padding: 40px 38px 30px;

    background: rgba(255,255,255,.98);

    border: 1px solid rgba(255,255,255,.8);

    border-radius: 24px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.28),
        0 10px 30px rgba(18,100,217,.10);

    transform: translateY(20px);

    transition:
        transform .3s ease;
}


.forgot-modal.show .forgot-box {

    transform: translateY(0);
}


/* =====================================================
   CLOSE
===================================================== */

.forgot-close {

    position: absolute;

    top: 16px;

    right: 16px;

    width: 38px;

    height: 38px;

    border: 0;

    border-radius: 10px;

    background: #f1f5f9;

    color: #64748b;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: all .2s ease;
}


.forgot-close:hover {

    background: #fee2e2;

    color: #dc2626;

    transform: rotate(90deg);
}


/* =====================================================
   ICON
===================================================== */

.forgot-icon {

    display: flex;

    justify-content: center;

    margin-bottom: 20px;
}


.forgot-icon-circle {

    width: 72px;

    height: 72px;

    border-radius: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #1264d9;

    background:
        linear-gradient(
            135deg,
            rgba(18,100,217,.12),
            rgba(34,211,238,.14)
        );

    border: 1px solid rgba(18,100,217,.12);

    box-shadow:
        0 10px 25px rgba(18,100,217,.10);
}


.forgot-icon-circle i {

    font-size: 32px;
}


/* =====================================================
   HEADER
===================================================== */

.forgot-header {

    text-align: center;

    margin-bottom: 28px;
}


.forgot-header h2 {

    margin: 0 0 8px;

    color: #07152b;

    font-size: 27px;

    font-weight: 800;
}


.forgot-header p {

    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.7;
}


/* =====================================================
   FIELD
===================================================== */

.forgot-field {

    margin-bottom: 18px;
}


.forgot-field label {

    display: block;

    margin-bottom: 8px;

    color: #1e293b;

    font-size: 13px;

    font-weight: 700;
}


/* =====================================================
   INPUT
===================================================== */

.forgot-input {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    height: 50px;

    border: 1px solid #dbe3ee;

    border-radius: 12px;

    background: #f8fafc;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.forgot-input:focus-within {

    background: #fff;

    border-color: #1264d9;

    box-shadow:
        0 0 0 4px rgba(18,100,217,.08);
}


.forgot-input > i {

    width: 50px;

    text-align: center;

    color: #64748b;

    font-size: 18px;
}


.forgot-input:focus-within > i {

    color: #1264d9;
}


.forgot-input input {

    flex: 1;

    height: 100%;

    padding: 0 15px 0 0;

    border: 0;

    outline: none;

    background: transparent;

    color: #0f172a;

    font-size: 14px;
}


.forgot-input input::placeholder {

    color: #94a3b8;
}


/* =====================================================
   INFO
===================================================== */

.forgot-info {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 13px 14px;

    margin-bottom: 20px;

    border-radius: 12px;

    background: rgba(18,100,217,.06);

    border: 1px solid rgba(18,100,217,.10);

    color: #475569;

    font-size: 12px;

    line-height: 1.6;
}


.forgot-info i {

    flex-shrink: 0;

    margin-top: 2px;

    color: #1264d9;

    font-size: 16px;
}


/* =====================================================
   SUBMIT
===================================================== */

.forgot-submit {

    width: 100%;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #1264d9,
            #0d8bea
        );

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(18,100,217,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.forgot-submit:hover {

    transform: translateY(-1px);

    box-shadow:
        0 12px 25px rgba(18,100,217,.28);
}


.forgot-submit:active {

    transform: translateY(0);
}


.forgot-submit:disabled {

    opacity: .7;

    cursor: not-allowed;

    transform: none;
}


/* =====================================================
   BACK LOGIN
===================================================== */

.forgot-back-login {

    width: 100%;

    height: 44px;

    margin-top: 10px;

    border: 0;

    background: transparent;

    color: #64748b;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: color .2s ease;
}


.forgot-back-login:hover {

    color: #1264d9;
}


/* =====================================================
   ONLINE
===================================================== */

.forgot-online {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid #eef2f7;

    color: #64748b;

    font-size: 12px;
}


.forgot-online > span {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34,197,94,.10);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {

    .forgot-box {

        padding: 34px 22px 25px;

        border-radius: 20px;
    }

    .forgot-header h2 {

        font-size: 24px;
    }

}
.swal2-container {
    position: fixed !important;
    inset: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    z-index: 200000 !important;
}