/* =========================================================
   TOWA Portal - site.css
   Home / Footer / Account / Header / Offcanvas Menu
   ========================================================= */


/* =========================================================
   1. Home page base
   ========================================================= */

.towa-home {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #ffffff 100%);
    padding-bottom: 56px;
}

.towa-hero-section {
    padding: 24px 0 0;
    background: transparent;
}

.hero-video-wrap {
    position: relative;
    min-height: 720px;
    background: #0f172a;
    border: 1px solid rgba(226, 232, 240, .9);
    isolation: isolate;
    min-width: 0;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.01);
    filter: brightness(1.12) contrast(1.08) saturate(1.08);
}

.hero-sun-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient( 90deg, rgba(248, 250, 252, .78) 0%, rgba(248, 250, 252, .58) 38%, rgba(248, 250, 252, .22) 62%, rgba(15, 23, 42, .08) 100% );
}

.hero-video-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center, transparent 45%, rgba(15, 23, 42, .16) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 50px 115px;
    min-width: 0;
}

.towa-hero-grid,
.hero-copy-col,
.hero-card-col {
    min-width: 0;
}

.hero-title,
.hero-subtitle,
.hero-points,
.hero-badge,
.japan-travel-card {
    position: relative;
    z-index: 3;
}

.hero-title {
    max-width: 100%;
    font-size: clamp(2.4rem, 5.2vw, 5.4rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.04em;
    color: #132238;
    overflow-wrap: anywhere;
    word-break: normal;
}

.hero-title-line {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.hero-subtitle {
    max-width: 620px;
    color: #475569;
    font-size: 1.18rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    color: #0d6efd;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 24px rgba(20, 80, 140, .08);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: #334155;
    font-weight: 700;
}

    .hero-points i {
        color: #22c55e;
        margin-right: 5px;
    }


/* =========================================================
   2. Buttons
   ========================================================= */

.btn-towa-primary {
    color: #fff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a3d, #ff5f6d);
    box-shadow: 0 14px 28px rgba(255, 111, 74, .28);
    font-weight: 700;
}

    .btn-towa-primary:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(255, 111, 74, .34);
    }

.btn-towa-glass {
    color: #123;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.btn-towa-light {
    color: #0d6efd;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(13, 110, 253, .16);
    border-radius: 999px;
    font-weight: 700;
}


/* =========================================================
   3. Hero travel card
   ========================================================= */

.hero-card-col {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    padding-left: clamp(16px, 3vw, 44px);
}

.japan-travel-card {
    width: min(100%, 420px);
    max-width: 420px;
    min-width: 0;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: 0;
    padding: 26px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .82);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
    backdrop-filter: blur(18px);
}

.portal-select {
    flex: 0 1 170px;
    min-width: 120px;
    max-width: 170px;
    border-radius: 999px;
}

.weather-mini-card {
    height: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(226, 232, 240, .9);
}

.weather-title {
    margin-bottom: 10px;
    color: #334155;
    font-weight: 800;
}

.weather-icon {
    font-size: 1.9rem;
}

.portal-header,
.portal-date-row,
.weather-row,
.weather-main,
.weather-mini-card,
.travel-info-item {
    min-width: 0;
}

.portal-date-row {
    gap: .75rem;
}

.portal-date-row > .fw-bold {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-main {
    align-items: flex-start !important;
}

.temp-line {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.weather-title,
.weather-desc,
.sub-line,
.travel-info-item span,
.travel-info-item em,
.travel-info-item a {
    overflow-wrap: anywhere;
    word-break: normal;
}

.travel-info-list {
    display: grid;
    gap: 10px;
}

.travel-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    color: #334155;
    background: rgba(248, 250, 252, .86);
}

    .travel-info-item span {
        font-weight: 700;
    }

    .travel-info-item span,
    .travel-info-item em,
    .travel-info-item a {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .travel-info-item em {
        margin-left: auto;
        color: #64748b;
        font-style: normal;
        font-size: .9rem;
    }

    .travel-info-item a {
        margin-left: auto;
        text-decoration: none;
        font-weight: 700;
    }


/* =========================================================
   4. Home sections / service cards
   ========================================================= */

.section-kicker {
    margin-bottom: 8px;
    color: #ff7a45;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.planner-card {
    padding: 34px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(226, 232, 240, .75);
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 28px;
    cursor: pointer;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
    transition: .22s ease;
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 58px rgba(15, 23, 42, .11);
    }

    .service-card .service-link {
        cursor: pointer;
    }

    .service-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 6px;
        background: linear-gradient(90deg, #ff8a3d, #ff5f6d);
    }

.service-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 20px;
    color: #ff7a45;
    background: #fff7ed;
    font-size: 1.55rem;
}

.service-label {
    margin-bottom: 4px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 800;
}

.service-card p {
    min-height: 84px;
    color: #64748b;
    line-height: 1.75;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 800;
}

.service-stay::before {
    background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.service-play::before {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.service-goods::before {
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
}

.service-stay .service-icon {
    color: #16a34a;
    background: #ecfdf5;
}

.service-play .service-icon {
    color: #8b5cf6;
    background: #f5f3ff;
}

.service-goods .service-icon {
    color: #2563eb;
    background: #eff6ff;
}


/* =========================================================
   5. Member value card
   ========================================================= */

.member-value-card {
    position: relative;
    overflow: hidden;
    padding: 44px;
    border-radius: 32px;
    background: radial-gradient(circle at 12% 18%, rgba(255, 213, 226, .95), transparent 30%), radial-gradient(circle at 88% 18%, rgba(191, 219, 254, .85), transparent 34%), linear-gradient(135deg, #fff7ed 0%, #ffe4ec 42%, #dbeafe 100%);
    border: 1px solid rgba(255, 255, 255, .78);
    box-shadow: 0 24px 60px rgba(244, 114, 182, .18);
}

    .member-value-card::before {
        content: "桜";
        position: absolute;
        right: 42px;
        bottom: -26px;
        color: rgba(255, 255, 255, .28);
        font-size: 9rem;
        font-weight: 900;
        letter-spacing: -.08em;
        pointer-events: none;
    }

    .member-value-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, .12), transparent 55%);
        pointer-events: none;
    }

    .member-value-card > * {
        position: relative;
        z-index: 2;
    }

    .member-value-card .section-kicker {
        color: rgba(124, 45, 18, .55) !important;
    }

    .member-value-card h2 {
        color: #1e293b !important;
    }

    .member-value-card p {
        color: #475569 !important;
    }

    .member-value-card .btn-light {
        color: #2563eb;
        background: #fff;
        border: 1px solid rgba(255, 255, 255, .8);
        font-weight: 700;
    }

    .member-value-card .btn-outline-light {
        color: #1e293b;
        background: rgba(255, 255, 255, .38);
        border-color: rgba(30, 41, 59, .18);
        font-weight: 700;
    }

        .member-value-card .btn-outline-light:hover {
            color: #2563eb;
            background: #fff;
        }

.text-white-75 {
    color: rgba(255, 255, 255, .78);
}


/* =========================================================
   6. Footer
   ========================================================= */

.towa-footer {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, .86);
    background: radial-gradient(circle at 12% 0%, rgba(96, 165, 250, .24), transparent 30%), radial-gradient(circle at 86% 12%, rgba(244, 114, 182, .18), transparent 28%), linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #0f3b57 100%);
}

    .towa-footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background-size: 520px auto;
        background-repeat: repeat;
        opacity: .08;
        pointer-events: none;
    }

    .towa-footer .container {
        position: relative;
        z-index: 2;
    }

.footer-logo-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .32);
    font-size: 1.45rem;
    font-weight: 900;
}

.footer-brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.footer-subtitle {
    margin-top: 2px;
    color: rgba(255, 255, 255, .62);
    font-size: .9rem;
}

.footer-description {
    max-width: 360px;
    margin: 18px 0 20px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.95;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .footer-tags span {
        padding: 7px 13px;
        border-radius: 999px;
        color: rgba(255, 255, 255, .86);
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .16);
        font-size: .84rem;
        font-weight: 700;
    }

.footer-title {
    margin-bottom: 18px;
    color: #fff;
    font-weight: 900;
    letter-spacing: .04em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, .68);
        text-decoration: none;
        transition: .18s ease;
    }

        .footer-links a:hover {
            color: #fff;
            padding-left: 3px;
        }

.footer-qr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-qr-item {
    color: rgba(255, 255, 255, .86);
    text-align: center;
    font-size: .86rem;
    font-weight: 800;
}

.footer-qr-box {
    width: 86px;
    height: 86px;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

    .footer-qr-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.footer-contact {
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, .68);
    font-size: .9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .58);
    font-size: .9rem;
}

.footer-bottom-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, .58);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

    .footer-bottom-links a {
        color: rgba(255, 255, 255, .62);
        text-decoration: none;
    }

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

.footer-backtop {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .28);
}

    .footer-backtop:hover {
        background: rgba(255, 255, 255, .16);
    }


/* =========================================================
   7. Account pages
   ========================================================= */

.account-page {
    padding: 32px 0 56px;
}

.account-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    gap: 28px;
    align-items: stretch;
    max-width: 1120px;
    margin: 0 auto;
}

.account-shell-narrow {
    display: block;
    max-width: 560px;
}

.account-brand-panel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 48px;
    border-radius: 36px;
    color: #fff;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .54)), url("/images/towa-video-poster.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.account-brand-register {
    background-image: linear-gradient(135deg, rgba(13, 110, 253, .92), rgba(255, 107, 61, .58)), url("/images/towa-video-poster.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.account-brand-panel::after {
    content: "東";
    position: absolute;
    right: -16px;
    bottom: -72px;
    color: rgba(255, 255, 255, .08);
    font-size: 16rem;
    font-weight: 900;
    line-height: 1;
}

.account-brand-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(14px);
    font-weight: 800;
}

.account-brand-panel h1 {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 4vw, 4.25rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.05em;
}

.account-brand-panel p {
    position: relative;
    z-index: 1;
    max-width: 560px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
    line-height: 1.9;
}

.account-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 36px;
}

    .account-benefits div {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        width: fit-content;
        padding: 10px 14px;
        border-radius: 999px;
        color: rgba(255, 255, 255, .94);
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .16);
    }

    .account-benefits i {
        color: #22c55e;
    }

.account-form-panel {
    display: flex;
    align-items: center;
}

.account-form-card {
    width: 100%;
    padding: 42px;
    border-radius: 36px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 22px 56px rgba(15, 23, 42, .1);
}

.account-form-heading {
    margin-bottom: 28px;
}

.account-kicker {
    margin-bottom: 10px;
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.account-form-heading h2 {
    margin-bottom: 10px;
    color: #111827;
    font-weight: 900;
    letter-spacing: -.03em;
}

.account-form-heading p {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.8;
}

.account-input {
    position: relative;
}

    .account-input i {
        position: absolute;
        left: 18px;
        top: 50%;
        z-index: 2;
        transform: translateY(-50%);
        color: #94a3b8;
    }

    .account-input .form-control {
        height: 52px;
        padding-left: 48px;
        border-radius: 999px;
        background: #f8fafc;
        border-color: #e2e8f0;
    }

        .account-input .form-control:focus {
            background: #fff;
            border-color: #86b7fe;
            box-shadow: 0 0 0 .22rem rgba(13, 110, 253, .12);
        }

.account-submit {
    min-height: 52px;
    box-shadow: 0 14px 32px rgba(13, 110, 253, .22);
    font-weight: 800;
}

.account-small-link,
.account-switch a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 800;
}

    .account-small-link:hover,
    .account-switch a:hover {
        text-decoration: underline;
    }

.account-switch {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: #64748b;
}

.account-icon-circle {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: #0d6efd;
    background: #edf5ff;
    font-size: 2rem;
}


/* =========================================================
   8. Header member display
   ========================================================= */

.member-header-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: 180px;
    padding: .35rem .65rem;
    border-radius: 999px;
    color: #111827;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
}

    .member-header-chip:hover {
        color: #0d6efd;
        background: #eef5ff;
        border-color: #b6d4fe;
    }

.member-header-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   9. Global right offcanvas menu
   ========================================================= */

.towa-offcanvas-menu {
    width: min(380px, 92vw);
}

.towa-menu-body {
    padding: 0 18px 24px;
}

.towa-menu-section {
    margin-top: 18px;
}

.towa-menu-title {
    margin-bottom: 8px;
    color: #111827;
    font-size: .95rem;
    font-weight: 900;
}

.towa-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 4px;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    font-size: .96rem;
}

    .towa-menu-link:hover {
        color: #0d6efd;
        background: #f8fafc;
    }

    .towa-menu-link i {
        width: 22px;
        color: #0d6efd;
        font-size: 1rem;
        text-align: center;
    }

.towa-menu-logout {
    width: 100%;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ef4444;
    background: #fff;
    border: 1px solid #ef4444;
    border-radius: 999px;
    font-weight: 800;
}

    .towa-menu-logout:hover {
        color: #fff;
        background: #ef4444;
    }

.language-option {
    color: #111827;
}

.language-flag {
    width: 24px;
    font-size: 1.05rem;
    line-height: 1;
}

/* Keep old menu classes compatible if any old partial still uses them. */
.mobile-nav-offcanvas .mobile-menu-title,
.mobile-nav-offcanvas .menu-title {
    color: #111827;
    font-weight: 800;
    letter-spacing: .02em;
}

.mobile-nav-offcanvas .language-flag {
    display: inline-flex;
    width: 1.5rem;
    margin-right: .5rem;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
}

.mobile-nav-offcanvas .language-list .list-group-item.active {
    color: #111827;
    background-color: #f3f4f6;
    border-color: rgba(0, 0, 0, .125);
    font-weight: 700;
}

    .mobile-nav-offcanvas .language-list .list-group-item.active .bi-check2 {
        color: #0d6efd;
    }

    .mobile-nav-offcanvas .language-list .list-group-item.active:hover,
    .mobile-nav-offcanvas .language-list .list-group-item.active:focus {
        color: #111827;
        background-color: #e5e7eb;
        border-color: rgba(0, 0, 0, .125);
    }


/* =========================================================
   10. Responsive
   ========================================================= */

@media (min-width: 992px) {
    .hero-card-col {
        justify-content: flex-end;
        padding-left: 24px;
        padding-right: 0;
    }

    .japan-travel-card {
        max-width: 390px;
        margin-left: auto;
        margin-right: 0;
        transform: translateX(18px);
    }
}

@media (min-width: 1200px) {
    .hero-card-col {
        padding-left: 40px;
    }

    .japan-travel-card {
        max-width: 420px;
        transform: translateX(34px);
    }
}

@media (min-width: 1400px) {
    .japan-travel-card {
        transform: translateX(42px);
    }
}

@media (max-width: 1199.98px) {
    .hero-title {
        font-size: clamp(2.2rem, 4.8vw, 4.4rem);
    }

    .weather-row > .col-6 {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .hero-video-wrap {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 38px 20px;
    }

    .hero-sun-mask {
        background: linear-gradient( 180deg, rgba(248, 250, 252, .82) 0%, rgba(248, 250, 252, .66) 48%, rgba(15, 23, 42, .12) 100% );
    }

    .hero-title-line {
        white-space: normal;
    }

    .hero-card-col {
        display: block;
        padding-left: 0;
    }

    .japan-travel-card {
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
        transform: none;
    }

    .account-page {
        padding: 18px 0 36px;
    }

    .account-shell {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .account-brand-panel {
        min-height: auto;
        padding: 32px 24px;
        border-radius: 28px;
    }

        .account-brand-panel h1 {
            font-size: 2.35rem;
        }

    .account-form-card {
        padding: 28px 22px;
        border-radius: 28px;
    }

    .account-switch {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 767.98px) {
    .towa-footer {
        text-align: left;
    }

    .footer-qr-box {
        width: 78px;
        height: 78px;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .planner-card,
    .member-value-card {
        padding: 26px;
    }

    .weather-row .col-6 {
        width: 100%;
    }

    .member-header-chip {
        max-width: 110px;
        padding: .32rem .5rem;
    }
}


/* =========================================================
   TOWA Member Profile Page
   ========================================================= */

.member-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 0 48px;
}

.member-profile-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 220px;
    padding: 38px 42px;
    border-radius: 34px;
    background: radial-gradient(circle at 12% 20%, rgba(255, 226, 214, .95), transparent 32%), radial-gradient(circle at 88% 18%, rgba(191, 219, 254, .9), transparent 34%), linear-gradient(135deg, #fff7ed 0%, #fff 42%, #eff6ff 100%);
    border: 1px solid rgba(226, 232, 240, .86);
    box-shadow: 0 24px 58px rgba(15, 23, 42, .08);
}

    .member-profile-hero::after {
        content: "會員";
        position: absolute;
        right: 30px;
        bottom: -42px;
        color: rgba(13, 110, 253, .06);
        font-size: 8.5rem;
        font-weight: 900;
        letter-spacing: -.08em;
        pointer-events: none;
    }

.member-kicker,
.member-card-kicker {
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.member-profile-hero h1 {
    margin: 10px 0 10px;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.04em;
}

.member-profile-hero p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    line-height: 1.85;
    font-size: 1.02rem;
}

.member-profile-avatar {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 34px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #06b6d4);
    box-shadow: 0 18px 42px rgba(13, 110, 253, .28);
    font-size: 3rem;
    font-weight: 900;
}

.member-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 22px;
    margin-top: 24px;
}

.member-card {
    padding: 30px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

.member-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.member-card h2 {
    margin: 6px 0 0;
    color: #111827;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.member-info-list {
    display: grid;
    gap: 12px;
}

.member-info-row {
    display: grid;
    grid-template-columns: minmax(150px, .35fr) minmax(0, .65fr);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.member-info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-weight: 800;
}

    .member-info-label i {
        color: #0d6efd;
    }

.member-info-value {
    min-width: 0;
    color: #111827;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.member-action-card {
    align-self: start;
}

.member-action-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.member-action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 18px;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    text-decoration: none;
    font-weight: 900;
    transition: .18s ease;
}

    .member-action-link:hover {
        color: #0d6efd;
        background: #eef5ff;
        border-color: #bfdbfe;
        transform: translateY(-1px);
    }

    .member-action-link span {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .member-action-link i {
        color: #0d6efd;
    }

@media (max-width: 991.98px) {
    .member-profile-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px 24px;
        border-radius: 28px;
    }

    .member-profile-avatar {
        width: 86px;
        height: 86px;
        border-radius: 26px;
        font-size: 2.2rem;
    }

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

    .member-card {
        padding: 24px 20px;
        border-radius: 26px;
    }

    .member-card-header {
        flex-direction: column;
    }

    .member-info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


/* =========================================================
   TOWA Offcanvas language active state
   ========================================================= */

.towa-menu-link.language-option {
    position: relative;
    padding-right: 38px;
}

    .towa-menu-link.language-option.active {
        color: #111827;
        background: #f3f4f6;
        border-color: #e5e7eb;
        font-weight: 900;
    }

        .towa-menu-link.language-option.active:hover,
        .towa-menu-link.language-option.active:focus {
            color: #111827;
            background: #e5e7eb;
        }

.language-code {
    width: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: .72rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.language-check {
    position: absolute;
    right: 10px;
    color: #0d6efd !important;
    font-size: 1.05rem;
}

/* =========================================================
   TOWA Member Profile Page V2
   Right card changed from quick links to profile details.
   ========================================================= */

.member-profile-grid-v2 {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
}

.member-profile-avatar img,
.member-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.member-profile-side-card {
    align-self: start;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.member-avatar-panel {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 226, 214, .9), transparent 34%), linear-gradient(135deg, #f8fafc, #eff6ff);
    border: 1px solid #e5edf8;
}

.member-avatar-preview {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #06b6d4);
    box-shadow: 0 16px 36px rgba(13, 110, 253, .22);
    font-size: 2.5rem;
    font-weight: 900;
}

.member-avatar-panel h2 {
    margin: 5px 0 6px;
    color: #111827;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.member-avatar-panel p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.65;
}

.member-detail-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.member-detail-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 15px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e9eef5;
}

.member-detail-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #0d6efd;
    background: #eef5ff;
}

.member-detail-label {
    color: #64748b;
    font-size: .82rem;
    font-weight: 800;
}

.member-detail-value {
    min-width: 0;
    margin-top: 2px;
    color: #111827;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.member-profile-note {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 15px;
    border-radius: 18px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    font-size: .9rem;
    line-height: 1.65;
}

    .member-profile-note i {
        color: #0d6efd;
        margin-top: 2px;
    }

@media (max-width: 991.98px) {
    .member-profile-grid-v2 {
        grid-template-columns: 1fr;
    }

    .member-avatar-panel {
        grid-template-columns: 80px minmax(0, 1fr);
        padding: 16px;
    }

    .member-avatar-preview {
        width: 80px;
        height: 80px;
        border-radius: 24px;
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .member-avatar-panel {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   TOWA Online Support Section + Bootstrap Modal Chat
   ========================================================= */

.support-value-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 44px;
    border-radius: 32px;
    background: radial-gradient(circle at 12% 18%, rgba(219, 234, 254, .95), transparent 32%), radial-gradient(circle at 88% 20%, rgba(255, 226, 214, .88), transparent 34%), linear-gradient(135deg, #f8fbff 0%, #eff6ff 42%, #fff7ed 100%);
    border: 1px solid rgba(226, 232, 240, .86);
    box-shadow: 0 24px 60px rgba(37, 99, 235, .12);
}

    .support-value-card::before {
        content: "客服";
        position: absolute;
        right: 42px;
        bottom: -38px;
        color: rgba(13, 110, 253, .06);
        font-size: 9rem;
        font-weight: 900;
        letter-spacing: -.08em;
        pointer-events: none;
    }

    .support-value-card > * {
        position: relative;
        z-index: 2;
    }

    .support-value-card h2 {
        margin: 0 0 14px;
        color: #111827;
        font-size: clamp(1.9rem, 3.5vw, 3.25rem);
        line-height: 1.12;
        font-weight: 900;
        letter-spacing: -.045em;
    }

    .support-value-card p {
        max-width: 760px;
        margin: 0;
        color: #475569;
        line-height: 1.9;
        font-size: 1.02rem;
    }

.support-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

    .support-points span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 13px;
        border-radius: 999px;
        color: #1e293b;
        background: rgba(255, 255, 255, .72);
        border: 1px solid rgba(226, 232, 240, .88);
        font-size: .9rem;
        font-weight: 800;
    }

    .support-points i {
        color: #0d6efd;
    }

.support-value-action {
    display: grid;
    justify-items: center;
    gap: 16px;
    min-width: 230px;
}

.support-online-badge,
.support-chat-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.support-online-badge {
    padding: 8px 13px;
    border-radius: 999px;
    color: #166534;
    background: rgba(220, 252, 231, .88);
    border: 1px solid rgba(34, 197, 94, .22);
    font-size: .88rem;
    font-weight: 900;
}

.support-online-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .12);
}

.support-chat-modal {
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .26);
}

.support-chat-header {
    align-items: flex-start;
    padding: 24px 26px;
    background: radial-gradient(circle at 10% 10%, rgba(219, 234, 254, .95), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #e5e7eb;
}

.support-chat-kicker {
    color: #0d6efd;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.support-chat-header h5 {
    margin: 5px 0 7px;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.support-chat-status {
    color: #16a34a;
    font-size: .88rem;
    font-weight: 800;
}

.support-chat-body {
    padding: 0;
    background: #f8fafc;
}

.support-chat-window {
    height: min(440px, 54vh);
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px;
}

.support-message {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.support-message-user {
    justify-content: flex-end;
}

.support-message-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #06b6d4);
    font-weight: 900;
}

.support-message-bubble {
    max-width: min(72%, 520px);
    padding: 12px 15px;
    border-radius: 18px;
    color: #111827;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    line-height: 1.7;
}

.support-message-agent .support-message-bubble {
    border-bottom-left-radius: 6px;
}

.support-message-user .support-message-bubble {
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #2563eb);
    border-color: transparent;
    border-bottom-right-radius: 6px;
}

.support-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 0 22px 18px;
}

.support-quick-reply {
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 8px 13px;
    color: #0d6efd;
    background: #fff;
    font-size: .88rem;
    font-weight: 800;
}

    .support-quick-reply:hover {
        background: #eef5ff;
    }

.support-chat-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 18px 22px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.support-chat-input {
    min-height: 48px;
    border-radius: 999px;
    background: #f8fafc;
    border-color: #e2e8f0;
    padding-left: 18px;
}

    .support-chat-input:focus {
        background: #fff;
        border-color: #86b7fe;
        box-shadow: 0 0 0 .22rem rgba(13, 110, 253, .12);
    }

.support-chat-send {
    min-width: 112px;
    border-radius: 999px;
    font-weight: 900;
}

.support-chat-note {
    display: flex;
    gap: 9px;
    padding: 0 22px 20px;
    color: #64748b;
    background: #fff;
    font-size: .85rem;
    line-height: 1.65;
}

    .support-chat-note i {
        color: #0d6efd;
        margin-top: 2px;
    }

@media (max-width: 991.98px) {
    .support-value-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        border-radius: 28px;
    }

    .support-value-action {
        justify-items: stretch;
        min-width: 0;
    }

        .support-value-action .btn {
            width: 100%;
        }

    .support-value-card::before {
        right: 18px;
        bottom: -28px;
        font-size: 6.8rem;
    }
}

@media (max-width: 575.98px) {
    .support-chat-window {
        height: 50vh;
        padding: 18px;
    }

    .support-message-bubble {
        max-width: 82%;
    }

    .support-chat-input-row {
        grid-template-columns: 1fr;
    }

    .support-chat-send {
        width: 100%;
    }
}
/* =========================================================
   TOWA Online Support Chat - message timestamp
   ========================================================= */

.support-message-content {
    display: flex;
    flex-direction: column;
    max-width: min(72%, 520px);
}

.support-message-user .support-message-content {
    align-items: flex-end;
}

.support-message-agent .support-message-content {
    align-items: flex-start;
}

.support-message-content .support-message-bubble {
    max-width: 100%;
}

.support-message-time {
    margin-top: 5px;
    color: #94a3b8;
    font-size: .74rem;
    line-height: 1;
}

.support-message-user .support-message-time {
    padding-right: 4px;
}

.support-message-agent .support-message-time {
    padding-left: 4px;
}

@media (max-width: 575.98px) {
    .support-message-content {
        max-width: 82%;
    }
}
/* =========================================================
   TOWA Portal - Merchant Application
   ========================================================= */

.merchant-apply-page {
    min-height: calc(100vh - 96px);
    padding: 56px 20px 80px;
    background: radial-gradient(circle at 15% 10%, rgba(219, 234, 254, .75), transparent 30%), linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.merchant-apply-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.merchant-apply-hero {
    margin-bottom: 22px;
    padding: 34px 38px;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .06);
}

.merchant-apply-kicker {
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.merchant-apply-hero h1,
.merchant-apply-success-card h1 {
    margin: 8px 0 10px;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 950;
    letter-spacing: -.05em;
}

.merchant-apply-hero p,
.merchant-apply-success-card p {
    margin: 0;
    max-width: 760px;
    color: #64748b;
    line-height: 1.8;
}

.merchant-apply-card,
.merchant-apply-success-card {
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.merchant-apply-card {
    padding: 34px 38px;
}

    .merchant-apply-card .form-control,
    .merchant-apply-card .form-select {
        min-height: 52px;
        border-radius: 16px;
    }

    .merchant-apply-card textarea.form-control {
        min-height: 140px;
    }

.merchant-apply-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.merchant-apply-confirm-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

    .merchant-apply-confirm-list div {
        padding: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        background: #f8fafc;
    }

.merchant-apply-confirm-wide {
    grid-column: 1 / -1;
}

.merchant-apply-confirm-list dt {
    color: #64748b;
    font-size: .78rem;
    font-weight: 900;
}

.merchant-apply-confirm-list dd {
    margin: 5px 0 0;
    color: #111827;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.merchant-apply-success-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 54px 42px;
    text-align: center;
}

.merchant-apply-success-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #0d6efd);
    font-size: 2.2rem;
    box-shadow: 0 18px 40px rgba(37, 99, 235, .22);
}

.merchant-apply-success-card p {
    margin-left: auto;
    margin-right: auto;
}

.merchant-apply-application-no {
    display: inline-grid;
    gap: 6px;
    margin: 28px 0;
    padding: 14px 22px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

    .merchant-apply-application-no span {
        color: #64748b;
        font-size: .78rem;
        font-weight: 900;
    }

    .merchant-apply-application-no strong {
        color: #0f172a;
        font-size: 1.1rem;
    }

@media (max-width: 767.98px) {
    .merchant-apply-page {
        padding: 32px 14px 54px;
    }

    .merchant-apply-hero,
    .merchant-apply-card,
    .merchant-apply-success-card {
        border-radius: 24px;
        padding: 26px 20px;
    }

    .merchant-apply-confirm-list {
        grid-template-columns: 1fr;
    }

    .merchant-apply-actions .btn,
    .merchant-apply-actions form {
        width: 100%;
    }

    .merchant-apply-actions .btn {
        justify-content: center;
    }
}
/* =========================================================
   TOWA Portal - Merchant Apply Entry
   ========================================================= */

.towa-partner-entry-section {
    padding: 24px 0 48px;
}

.towa-partner-entry-card {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 38px;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    background: radial-gradient(circle at 12% 15%, rgba(219, 234, 254, .9), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.towa-partner-entry-kicker {
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.towa-partner-entry-content h2 {
    margin: 8px 0 10px;
    color: #111827;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    font-weight: 950;
    letter-spacing: -.045em;
}

.towa-partner-entry-content p {
    max-width: 720px;
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

.towa-partner-entry-content span {
    display: inline-block;
    margin-top: 12px;
    color: #94a3b8;
    font-size: .88rem;
    font-weight: 700;
}

.towa-partner-entry-button {
    flex: 0 0 auto;
    min-width: 180px;
}

@media (max-width: 767.98px) {
    .towa-partner-entry-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px 22px;
        border-radius: 24px;
    }

    .towa-partner-entry-button {
        width: 100%;
    }
}
.towa-language-dropdown .dropdown-toggle {
    border-color: #d9e2ef;
    color: #1f2d3d;
    background: #fff;
}

    .towa-language-dropdown .dropdown-toggle:hover,
    .towa-language-dropdown .dropdown-toggle:focus {
        border-color: #0d6efd;
        color: #0d6efd;
        background: #f8fbff;
    }

.towa-language-dropdown .dropdown-menu {
    min-width: 12rem;
    border: 1px solid #e5edf7;
    border-radius: 1rem;
    padding: .45rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .12);
}

.towa-language-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: .75rem;
    padding: .55rem .75rem;
    font-weight: 500;
}

    .towa-language-dropdown .dropdown-item.active,
    .towa-language-dropdown .dropdown-item:active {
        color: #0d6efd;
        background: #eef5ff;
    }

.towa-language-dropdown .language-code {
    width: 2rem;
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.towa-language-dropdown .language-check {
    margin-left: auto;
    color: #0d6efd;
}

@media (max-width: 575.98px) {
    .towa-language-current-label {
        display: none;
    }

    .towa-language-dropdown .dropdown-menu {
        min-width: 11rem;
    }
}

/* =========================================================
   TOWA Pass Home Logo Hero
   ========================================================= */

.towa-logo-hero-section {
    padding: 24px 0 0;
    background: transparent;
}

.towa-logo-hero-card {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 56px 32px;
    border: 1px solid rgba(226, 232, 240, .9);
    background: radial-gradient(circle at 18% 18%, rgba(255, 210, 160, .38), transparent 30%), radial-gradient(circle at 82% 24%, rgba(147, 197, 253, .32), transparent 32%), radial-gradient(circle at 50% 82%, rgba(244, 114, 182, .22), transparent 36%), linear-gradient(135deg, #fffaf3 0%, #f8fbff 48%, #fff7fb 100%);
    isolation: isolate;
}

    .towa-logo-hero-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient(90deg, rgba(255,255,255,.78), rgba(255,255,255,.34)), radial-gradient(circle at center, rgba(255,255,255,.12), rgba(15,23,42,.08));
        pointer-events: none;
    }

    .towa-logo-hero-card::after {
        content: "";
        position: absolute;
        width: min(680px, 72vw);
        height: min(680px, 72vw);
        border-radius: 999px;
        background: radial-gradient(circle, rgba(255,255,255,.82) 0%, rgba(255,255,255,.18) 56%, transparent 72%);
        filter: blur(2px);
        z-index: 1;
        pointer-events: none;
    }

.towa-main-logo {
    position: relative;
    z-index: 2;
    width: min(920px, 86vw);
    max-height: 620px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 28px 46px rgba(15, 23, 42, .18));
    animation: towaLogoFloat 5.2s ease-in-out infinite;
}

@keyframes towaLogoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.012);
    }
}

@media (max-width: 991.98px) {
    .towa-logo-hero-card {
        min-height: 520px;
        padding: 42px 20px;
    }

    .towa-main-logo {
        width: min(760px, 92vw);
        max-height: 460px;
    }
}

@media (max-width: 575.98px) {
    .towa-logo-hero-section {
        padding-top: 14px;
    }

    .towa-logo-hero-card {
        min-height: 360px;
        border-radius: 28px !important;
        padding: 30px 14px;
    }

    .towa-main-logo {
        width: 96vw;
        max-height: 330px;
    }
}
/* =========================================================
   TOWA Header Logo
   ========================================================= */

.towa-navbar-brand {
    gap: 10px;
    color: #111827;
    letter-spacing: -.03em;
}

    .towa-navbar-brand:hover {
        color: #0d6efd;
    }

.towa-navbar-logo {
    width: 88px;
    height: auto;
    max-height: 46px;
    object-fit: contain;
    display: block;
}

@media (max-width: 575.98px) {
    .towa-navbar-brand {
        gap: 8px;
        font-size: 1.05rem !important;
    }

    .towa-navbar-logo {
        width: 38px;
        height: 38px;
    }
}