/* Landing page Tesla — app/Modules/Home/Views/index.php */
:root {
    --ts-red: #e31937;
    --ts-red-bright: #ff2e47;
    --ts-red-mid: #c8102e;
    --ts-red-deep: #8f0a1c;
    --ts-ink: #1b1c20;
    --ts-muted: #737782;
    --ts-line: #e6e7ec;
    --ts-card: rgba(255, 255, 255, .97);
    --ts-radius: 18px;
    --ts-shadow: 0 18px 40px rgba(40, 8, 16, .12);
    --ts-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ts-display: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--ts-font);
    color: var(--ts-ink);
    background: #eef0f3 var(--page-bg) center top / 100% auto no-repeat;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

a:focus-visible {
    outline: 2px solid var(--ts-red);
    outline-offset: 3px;
}

.ts-page {
    max-width: 1120px;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(255, 255, 255, .35);
    box-shadow: 0 0 60px rgba(30, 10, 15, .08);
}

/* ---------- Hero ---------- */
.ts-hero {
    position: relative;
    min-height: 500px;
    color: #fff;
    isolation: isolate;
    background:
        linear-gradient(180deg, #0f0608 0%, #22090d 22%, #4a1517 42%, #8e3326 54%, #c9653f 60%, #3a1316 63%, #1a0a0c 100%);
}

.ts-hero-scene {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.ts-hero-sun {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 38% 22% at 62% 60%, rgba(255, 170, 100, .75), rgba(255, 110, 70, .25) 55%, transparent 75%),
        radial-gradient(ellipse 70% 30% at 20% 58%, rgba(227, 25, 55, .35), transparent 70%);
}

.ts-skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 37%;
    width: 100%;
    height: 40%;
    opacity: .7;
    filter: blur(.6px);
}

/* Gelapkan sisi kiri agar teks hero tetap terbaca di atas skyline. */
.ts-hero-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 4, 6, .78) 0%, rgba(12, 4, 6, .45) 38%, transparent 62%);
}

.ts-hero-floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background:
        radial-gradient(ellipse 45% 40% at 66% 30%, rgba(255, 150, 110, .35), transparent 70%),
        linear-gradient(180deg, #2a1012 0%, #4d3236 30%, #a29fa5 72%, #e9eaee 100%);
}

.ts-streak {
    position: absolute;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--ts-red-bright) 40%, #ffd1d7 60%, transparent);
    box-shadow: 0 0 14px rgba(255, 46, 71, .85);
    transform: rotate(-6deg);
}

.ts-streak-1 { left: -8%; bottom: 31%; width: 58%; }
.ts-streak-2 { right: -10%; bottom: 25%; width: 48%; transform: rotate(5deg); opacity: .75; }

.ts-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 34px 0;
}

.ts-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ts-brand-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(150deg, var(--ts-red-bright), var(--ts-red-deep));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 8px 18px rgba(227, 25, 55, .45);
    overflow: hidden;
}

.ts-brand-mark img { width: 24px; height: 24px; object-fit: contain; }

.ts-brand-mark.has-logo { background: #fff; }
.ts-brand-mark.has-logo img { width: 100%; height: 100%; object-fit: cover; }

.ts-brand-name {
    font-family: var(--ts-display);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
    max-width: 260px;
}

.ts-nav {
    display: flex;
    gap: 10px;
}

.ts-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 76px;
    height: 62px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    color: #2a2b31;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ts-nav-item img { width: 24px; height: 24px; object-fit: contain; }

.ts-nav-item:hover { transform: translateY(-2px); }

.ts-nav-item.is-active {
    color: #fff;
    background: linear-gradient(160deg, var(--ts-red-bright), #b30d22);
    box-shadow: 0 10px 22px rgba(227, 25, 55, .5);
}

.ts-hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 12px;
    padding: 34px 34px 104px;
}

.ts-hero-copy { padding-bottom: 20px; }

.ts-hero-title {
    margin: 0;
    font-family: var(--ts-display);
    font-weight: 900;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}

.ts-hero-title span { display: block; white-space: nowrap; }

.ts-hero-title .is-red {
    color: var(--ts-red-bright);
    text-shadow: 0 0 22px rgba(255, 46, 71, .45), 0 6px 24px rgba(0, 0, 0, .4);
}

.ts-hero-desc {
    max-width: 290px;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .9);
}

.ts-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ts-btn.ts-btn-ghost {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .45);
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.ts-btn.ts-btn-outline {
    background: #fff;
    color: var(--ts-red-mid);
    border: 1.5px solid var(--ts-red);
    box-shadow: none;
}

.ts-hero-features {
    display: flex;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.ts-hero-features li {
    width: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: rgba(255, 255, 255, .92);
}

.ts-feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}

.ts-feature-icon img { width: 26px; height: 26px; object-fit: contain; }

.ts-hero-visual {
    position: relative;
    min-height: 330px;
}

.ts-hero-car {
    position: absolute;
    z-index: 2;
    left: -4%;
    bottom: -64px;
    width: 86%;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .35));
}

.ts-hero-charger {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: -40px;
    height: 104%;
    width: auto;
    filter: drop-shadow(0 0 22px rgba(227, 25, 55, .55)) drop-shadow(0 14px 14px rgba(0, 0, 0, .3));
}

/* ---------- Main ---------- */
.ts-main {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 18px;
    margin-top: -66px;
    padding: 0 26px;
}

.ts-card {
    background: var(--ts-card);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--ts-radius);
    box-shadow: var(--ts-shadow);
}

.ts-muted {
    font-size: 12px;
    font-weight: 500;
    color: var(--ts-muted);
}

/* Welcome */
.ts-welcome {
    display: grid;
    grid-template-columns: 1.1fr 1fr .95fr;
    align-items: center;
    padding: 22px 0;
    overflow: hidden;
}

.ts-welcome > * { padding: 0 26px; }
.ts-welcome > * + * { border-left: 1px solid var(--ts-line); }

.ts-welcome-user {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 4px 14px;
}

.ts-avatar { width: 64px; height: 64px; object-fit: contain; }
.ts-avatar.is-photo { object-fit: cover; border-radius: 50%; border: 3px solid var(--ts-red); }

/* Flash message dashboard */
.ts-flash {
    padding: 12px 16px;
    border-radius: 12px;
    background: #ecfdf3;
    border: 1px solid #a6f0c6;
    color: #067647;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--ts-shadow);
}

.ts-flash.is-error { background: #fff1f2; border-color: #fecdd3; color: #b42318; }

/* ---------- Company profile ---------- */
.ts-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 22px 0;
}

.ts-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
}

.ts-stat + .ts-stat { border-left: 1px solid var(--ts-line); }
.ts-stat img { width: 44px; height: 44px; object-fit: contain; flex: none; }

.ts-stat-number {
    font-family: var(--ts-display);
    font-size: 26px;
    font-weight: 900;
    color: var(--ts-red);
    line-height: 1.1;
}

.ts-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ts-red);
}

.ts-kicker::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--ts-red);
}

.ts-heading {
    margin: 8px 0 12px;
    font-family: var(--ts-display);
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 900;
    line-height: 1.12;
}

.ts-lead { font-size: 15px; line-height: 1.7; color: #4a4d56; }

.ts-section-center { text-align: center; margin-bottom: 18px; }

.ts-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 28px;
    padding: 30px 34px;
}

.ts-about-visual {
    position: relative;
    padding: 20px 10px 40px;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 80%, #e2e4ea 0%, #f3f4f7 55%, #fbfbfc 100%);
}

.ts-about-visual > img:first-child {
    width: 100%;
    max-height: 270px;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .16));
}

.ts-about-solar {
    position: absolute;
    right: -14px;
    bottom: -18px;
    width: 42%;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .22));
}

.ts-checklist {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.ts-checklist li {
    position: relative;
    padding-left: 32px;
    font-size: 14px;
    font-weight: 600;
}

.ts-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ts-red-bright), var(--ts-red-mid));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

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

.ts-pillar {
    position: relative;
    padding: 22px 22px 20px;
    overflow: hidden;
    border-top: 4px solid var(--ts-red);
}

.ts-pillar::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 25, 55, .12), transparent 70%);
}

.ts-pillar-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff1f3;
}

.ts-pillar-icon img { width: 28px; height: 28px; object-fit: contain; }

.ts-pillar h3 {
    margin: 14px 0 6px;
    font-family: var(--ts-display);
    font-size: 18px;
    font-weight: 800;
}

.ts-pillar p { font-size: 14px; line-height: 1.6; color: #4a4d56; }

.ts-advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ts-advantage {
    padding: 20px 18px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(150deg, var(--ts-red-bright) 0%, var(--ts-red-mid) 55%, var(--ts-red-deep) 100%);
    box-shadow: 0 12px 26px rgba(200, 16, 46, .28);
    transition: transform .18s ease;
}

.ts-advantage:hover { transform: translateY(-3px); }

.ts-advantage h3 {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 800;
}

.ts-advantage p { font-size: 13px; line-height: 1.55; opacity: .9; }

.ts-steps { padding: 28px 30px 30px; }

.ts-step-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ts-step-list::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--ts-red) 0 8px, transparent 8px 14px);
    opacity: .5;
}

.ts-step { position: relative; text-align: center; }

.ts-step-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ts-red);
    box-shadow: 0 8px 18px rgba(227, 25, 55, .18);
}

.ts-step-icon img { width: 32px; height: 32px; object-fit: contain; }

.ts-step-icon b {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ts-red);
    color: #fff;
    font-size: 12px;
}

.ts-step h3 { margin: 12px 0 4px; font-size: 15px; font-weight: 800; }
.ts-step p { font-size: 13px; line-height: 1.5; color: var(--ts-muted); }

.ts-empty {
    padding: 24px;
    text-align: center;
    color: var(--ts-muted);
    font-weight: 600;
}

.ts-username {
    margin: 2px 0 6px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    word-break: break-word;
}

.ts-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ts-red-bright), var(--ts-red-mid));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.ts-balance {
    grid-column: 1 / -1;
    margin-top: 14px;
}

.ts-balance-value {
    margin-top: 2px;
    font-family: var(--ts-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--ts-red);
}

.ts-welcome-stats {
    display: grid;
    gap: 12px;
    margin: 0;
    list-style: none;
}

.ts-welcome-stats li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ts-welcome-stats img { width: 30px; height: 30px; object-fit: contain; flex: none; }

.ts-stat-value {
    font-size: 15px;
    font-weight: 800;
}

.ts-welcome-quote {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    padding-right: 70px !important;
    font-family: var(--ts-display);
    font-style: italic;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.45;
}

.ts-welcome-quote strong { color: var(--ts-red); font-weight: 800; }

.ts-welcome-quote::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -60px;
    width: 160px;
    height: 280px;
    border-radius: 50%;
    border: 14px solid transparent;
    border-left-color: var(--ts-red);
    transform: rotate(-14deg);
    opacity: .9;
}

.ts-welcome-quote::before {
    content: "";
    position: absolute;
    right: -88px;
    top: -40px;
    width: 160px;
    height: 280px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-left-color: var(--ts-red-deep);
    transform: rotate(-14deg);
    opacity: .7;
}

/* Quick actions */
.ts-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ts-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ts-red-bright) 0%, var(--ts-red-mid) 55%, var(--ts-red-deep) 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(200, 16, 46, .3);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ts-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(200, 16, 46, .38);
}

.ts-action-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
}

.ts-action-icon img { width: 28px; height: 28px; object-fit: contain; }

.ts-action-text { display: grid; gap: 2px; min-width: 0; }
.ts-action-text strong { font-size: 15px; font-weight: 800; }
.ts-action-text small { font-size: 11px; opacity: .88; }

.ts-action-arrow {
    margin-left: auto;
    font-size: 26px;
    line-height: 1;
    opacity: .9;
}

/* Banner */
.ts-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 16px;
    min-height: 290px;
    padding: 28px 30px 28px 80px;
    overflow: hidden;
    background: linear-gradient(115deg, #ffffff 0%, #f5f6f9 50%, #e8eaef 100%);
}

.ts-banner::before,
.ts-banner::after {
    content: "";
    position: absolute;
    top: -20%;
    height: 140%;
    transform: skewX(-20deg);
}

.ts-banner::before {
    left: -28px;
    width: 44px;
    background: linear-gradient(180deg, var(--ts-red-bright), var(--ts-red-deep));
    box-shadow: 0 0 24px rgba(227, 25, 55, .45);
}

.ts-banner::after {
    left: 30px;
    width: 4px;
    background: linear-gradient(180deg, transparent, var(--ts-red) 40%, transparent);
    opacity: .75;
}

.ts-banner-copy { position: relative; z-index: 1; }

.ts-banner-brand {
    font-family: var(--ts-display);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ts-red);
}

.ts-banner h2 {
    margin: 14px 0 10px;
    font-family: var(--ts-display);
    font-size: clamp(26px, 3.7vw, 40px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.ts-banner h2 span { display: block; }

.ts-banner-copy p {
    max-width: 240px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ts-muted);
}

.ts-banner-visual {
    width: 100%;
    max-height: 270px;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .18));
}

.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ts-red-bright), var(--ts-red-mid));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(200, 16, 46, .3);
    transition: filter .18s ease, transform .18s ease;
}

.ts-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ts-btn span { font-size: 18px; line-height: 1; }

.ts-btn-block { width: 100%; padding: 9px 12px; border-radius: 8px; }

/* Products */
.ts-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.ts-section-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--ts-display);
    font-size: 19px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ts-red);
}

.ts-section-head h2 img { width: 24px; height: 24px; object-fit: contain; }

.ts-section-head a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ts-muted);
    text-decoration: none;
}

.ts-section-head a:hover { color: var(--ts-red); }

.ts-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.ts-product {
    display: flex;
    flex-direction: column;
    padding: 12px 12px 14px;
    border: 1px solid #eceef2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 10, 15, .08);
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ts-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(20, 10, 15, .12);
}

.ts-product-media {
    display: grid;
    place-items: center;
    height: 118px;
    padding: 8px;
    border-radius: 10px;
    background: radial-gradient(ellipse at 50% 90%, #e4e6eb 0%, #f4f5f8 55%, #fbfbfc 100%);
}

.ts-product-media img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

.ts-product h3 {
    margin: 12px 0 2px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.ts-product-price {
    margin: 2px 0 12px;
    font-family: var(--ts-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--ts-red);
}

.ts-product .ts-btn { margin-top: auto; }

/* ---------- Footer ---------- */
.ts-footer {
    position: relative;
    margin-top: 36px;
    color: #fff;
    border-radius: 34px 34px 0 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 90% at 100% 0%, rgba(255, 70, 90, .35), transparent 70%),
        linear-gradient(115deg, #4e040e 0%, #8f0a1c 40%, #c8102e 100%);
}

.ts-footer-main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, .6fr);
    align-items: center;
    gap: 24px;
    padding: 30px 36px;
}

.ts-footer-brand p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .88);
}

.ts-footer-brand p span { display: block; }

.ts-footer-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ts-footer-features li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.ts-footer-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .08);
}

.ts-footer-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ts-footer-mail {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    opacity: .9;
}

.ts-footer-emblem {
    justify-self: end;
    height: 120px;
    width: auto;
    opacity: .25;
}

.ts-footer-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 12px 36px;
    background: rgba(0, 0, 0, .28);
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
}

.ts-footer-bar span:last-child {
    font-family: var(--ts-display);
    font-style: italic;
    letter-spacing: .3px;
}

/* ---------- Popup login ---------- */
html.ts-modal-open { overflow: hidden; }

.ts-login,
.ts-notice {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ts-ink);
    overflow: visible;
}

.ts-login { width: min(920px, calc(100% - 32px)); max-width: none; }

.ts-login::backdrop,
.ts-notice::backdrop {
    background: rgba(18, 4, 8, .62);
    backdrop-filter: blur(6px);
}

.ts-login[open] .ts-login-shell,
.ts-notice[open] { animation: ts-pop .38s cubic-bezier(.2, .9, .3, 1.15) both; }

.ts-login.is-closing .ts-login-shell,
.ts-notice.is-closing { animation: ts-pop-out .22s ease both; }

@keyframes ts-pop {
    from { opacity: 0; transform: translateY(26px) scale(.95); }
    to { opacity: 1; transform: none; }
}

@keyframes ts-pop-out {
    to { opacity: 0; transform: translateY(16px) scale(.97); }
}

.ts-login.is-shake .ts-login-panel { animation: ts-shake .42s ease; }

@keyframes ts-shake {
    20%, 60% { transform: translateX(-7px); }
    40%, 80% { transform: translateX(7px); }
}

.ts-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 40px 90px rgba(10, 0, 4, .45);
}

.ts-login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 540px;
    padding: 28px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 25% 15%, rgba(255, 90, 110, .45), transparent 45%),
        linear-gradient(160deg, #23060c 0%, #6e0613 48%, #c8102e 100%);
}

.ts-login-rings {
    position: absolute;
    top: 46%;
    left: 50%;
    width: 0;
    height: 0;
}

.ts-login-rings span {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .18);
    transform: translate(-50%, -50%);
    animation: ts-ring 3.6s ease-out infinite;
}

.ts-login-rings span:nth-child(1) { width: 220px; height: 220px; }
.ts-login-rings span:nth-child(2) { width: 340px; height: 340px; animation-delay: .6s; }
.ts-login-rings span:nth-child(3) { width: 470px; height: 470px; animation-delay: 1.2s; }

@keyframes ts-ring {
    0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.94); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.ts-login-car {
    position: absolute;
    left: 2%;
    top: 30%;
    width: 102%;
    max-width: none;
    filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .45));
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 97%);
    mask-image: linear-gradient(180deg, #000 80%, transparent 97%);
    animation: ts-drive .9s cubic-bezier(.2, .8, .2, 1) .1s both, ts-float 5s ease-in-out 1s infinite;
}

@keyframes ts-drive {
    from { opacity: 0; transform: translateX(60%); }
    to { opacity: 1; transform: none; }
}

@keyframes ts-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.ts-login-charge {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
}

.ts-login-charge-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.ts-login-charge-head img { width: 16px; height: 16px; }
.ts-login-charge-head strong { margin-left: auto; font-family: var(--ts-display); font-size: 14px; }

.ts-login-charge-bar {
    height: 8px;
    margin-top: 9px;
    border-radius: 99px;
    background: rgba(0, 0, 0, .3);
    overflow: hidden;
}

.ts-login-charge-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8a9a, #fff 50%, #ff8a9a);
    background-size: 200% 100%;
    animation: ts-charge 4.4s linear infinite, ts-shimmer 1.4s linear infinite;
}

@keyframes ts-charge {
    from { width: 62%; }
    to { width: 100%; }
}

@keyframes ts-shimmer {
    to { background-position: -200% 0; }
}

.ts-login-visual-copy { position: relative; }

.ts-login-brand {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .85;
}

.ts-login-visual-copy h3 {
    margin: 6px 0 6px;
    font-family: var(--ts-display);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.15;
}

.ts-login-visual-copy p:last-child { font-size: 14px; line-height: 1.55; opacity: .85; }

.ts-login-panel {
    position: relative;
    padding: 44px 38px 32px;
}

.ts-login-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f2f3f6;
    color: #4a4d56;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.ts-login-close:hover { background: var(--ts-red); color: #fff; transform: rotate(90deg); }

.ts-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff1f3;
    color: var(--ts-red-mid);
    font-size: 12px;
    font-weight: 800;
}

.ts-login-badge img { width: 16px; height: 16px; object-fit: contain; }

.ts-login-panel h2 {
    margin: 14px 0 6px;
    font-family: var(--ts-display);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

.ts-login-sub { font-size: 14px; color: var(--ts-muted); }

.ts-login-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.ts-login-alert {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #b42318;
    font-size: 13px;
    font-weight: 600;
}

.ts-login-alert[hidden] { display: none; }

.ts-field { display: grid; gap: 7px; }

.ts-field-label { font-size: 12px; font-weight: 700; color: #3a3b41; }

.ts-field-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #e3e5ea;
    border-radius: 12px;
    background: #f8f9fb;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ts-field-control:focus-within {
    border-color: var(--ts-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(227, 25, 55, .12);
}

.ts-field-prefix {
    padding: 0 12px;
    border-right: 1px solid #e3e5ea;
    font-weight: 800;
    color: var(--ts-red-mid);
}

.ts-field-control input {
    flex: 1;
    min-width: 0;
    padding: 13px 12px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--ts-ink);
    outline: none;
}

.ts-field-toggle {
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: var(--ts-red-mid);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ts-login-submit {
    position: relative;
    height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ts-red-bright), var(--ts-red-mid) 60%, var(--ts-red-deep));
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(200, 16, 46, .35);
    transition: transform .18s ease, filter .18s ease;
}

.ts-login-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.ts-login-submit:disabled { cursor: progress; }

.ts-login-submit-text { position: relative; z-index: 1; }

.ts-login-submit-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .32));
}

.ts-login-submit.is-loading .ts-login-submit-fill { animation: ts-fill 1.1s ease-in-out infinite; }
.ts-login-submit.is-success { background: linear-gradient(135deg, #22c55e, #15803d); }
.ts-login-submit.is-success .ts-login-submit-fill { width: 100%; animation: none; }

@keyframes ts-fill {
    from { width: 0; }
    to { width: 100%; }
}

.ts-login-foot {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: var(--ts-muted);
}

.ts-login-foot strong { color: var(--ts-ink); }

.ts-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ts-red-mid);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* Popup daftar: memakai kerangka popup login, form lebih padat. */
.ts-register .ts-login-shell { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.ts-register .ts-login-visual { position: sticky; top: 0; min-height: 100%; }
.ts-register .ts-login-panel { padding: 36px 34px 26px; }
.ts-register .ts-login-panel h2 { margin-top: 12px; font-size: 26px; }
.ts-register-form { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 18px; }
.ts-register .ts-field-control input { width: 100%; padding: 12px; }

.ts-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ts-field-row .ts-field { align-content: start; }
.ts-field-note { margin-left: 4px; font-style: normal; font-weight: 700; color: #15803d; }

.ts-strength { height: 4px; border-radius: 4px; background: #eceef2; overflow: hidden; }
.ts-strength i { display: block; width: 0; height: 100%; border-radius: inherit; background: #ef4444; transition: width .25s ease, background .25s ease; }
.ts-strength i[data-level="fair"] { background: #f59e0b; }
.ts-strength i[data-level="strong"] { background: #16a34a; }

.ts-verify {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8f9fb;
    border: 1px dashed #d9dce3;
    font-size: 12px;
    font-weight: 700;
    color: var(--ts-muted);
}

.ts-verify-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); animation: ts-blink 1s ease-in-out infinite; }
.ts-verify.is-ok { border-style: solid; border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.ts-verify.is-ok .ts-verify-dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); animation: none; }
.ts-verify.is-fail { border-style: solid; border-color: #fecdd3; background: #fff1f2; color: #b42318; }
.ts-verify.is-fail .ts-verify-dot { background: #e11d48; animation: none; }

@keyframes ts-blink { 50% { opacity: .35; } }

.ts-bot-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ts-terms { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--ts-muted); }
.ts-terms input { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: var(--ts-red); }
.ts-terms a { color: var(--ts-red-mid); font-weight: 700; }

/* Popup pengumuman dashboard */
.ts-notice {
    width: min(420px, calc(100% - 32px));
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 40px 90px rgba(10, 0, 4, .45);
}

.ts-notice .ts-login-close { z-index: 2; background: rgba(255, 255, 255, .9); }

.ts-notice-visual {
    display: grid;
    place-items: end center;
    height: 160px;
    padding: 0 20px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 90, 110, .5), transparent 60%),
        linear-gradient(160deg, #23060c 0%, #8f0a1c 55%, #c8102e 100%);
}

.ts-notice-visual img {
    width: 78%;
    margin-bottom: -26px;
    filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .4));
    animation: ts-drive .8s cubic-bezier(.2, .8, .2, 1) .15s both;
}

.ts-notice-body {
    padding: 38px 24px 24px;
    text-align: center;
}

.ts-notice-body h2:focus { outline: none; }

.ts-notice-body h2 {
    margin: 12px 0 8px;
    font-family: var(--ts-display);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.ts-notice-body p { font-size: 14px; line-height: 1.6; color: var(--ts-muted); }

.ts-notice-actions { display: grid; gap: 10px; margin-top: 20px; }

.ts-notice-skip {
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--ts-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* Tab bar mobile */
.ts-tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .ts-welcome { grid-template-columns: 1fr 1fr; row-gap: 18px; }
    .ts-welcome-quote {
        grid-column: 1 / -1;
        min-height: 0;
        padding-top: 16px !important;
        border-left: 0 !important;
        border-top: 1px solid var(--ts-line);
    }
    .ts-welcome-quote::before,
    .ts-welcome-quote::after { top: -120px; }
    .ts-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ts-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ts-footer-main { grid-template-columns: 1fr 2fr; }
    .ts-footer-emblem { display: none; }
    .ts-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
    .ts-stat:nth-child(3) { border-left: 0; }
    .ts-advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    body { padding-bottom: 76px; }

    .ts-header { padding: 18px 16px 0; }
    .ts-nav { display: none; }

    .ts-hero { min-height: 0; }
    .ts-hero-body {
        grid-template-columns: 1fr;
        padding: 26px 16px 92px;
    }
    .ts-hero-copy { padding-bottom: 0; }
    .ts-hero-features { gap: 8px; }
    .ts-hero-features li { width: auto; flex: 1; }
    .ts-hero-visual { min-height: 200px; }
    .ts-hero-car { width: 80%; bottom: -54px; }
    .ts-hero-charger { height: 112%; bottom: -30px; }

    .ts-main { padding: 0 16px; margin-top: -60px; }

    .ts-welcome { grid-template-columns: 1fr; padding: 18px 0; }
    .ts-welcome > * { padding: 0 18px; }
    .ts-welcome > * + * {
        border-left: 0;
        border-top: 1px solid var(--ts-line);
        padding-top: 16px;
    }
    .ts-welcome-quote { padding-right: 80px !important; }
    .ts-welcome-quote::before,
    .ts-welcome-quote::after { top: -30px; height: 190px; }

    .ts-actions { gap: 10px; }
    .ts-action { padding: 12px; gap: 10px; }
    .ts-action-icon { width: 40px; height: 40px; }
    .ts-action-icon img { width: 24px; height: 24px; }
    .ts-action-text strong { font-size: 14px; }
    .ts-action-arrow { display: none; }

    .ts-banner {
        grid-template-columns: 1fr;
        padding: 26px 18px 18px 44px;
    }
    .ts-banner::before,
    .ts-banner::after { transform: skewX(-4deg); }
    .ts-banner::before { left: -22px; width: 34px; }
    .ts-banner::after { left: 22px; }

    .ts-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

    .ts-brand-name { font-size: 16px; letter-spacing: 1.5px; }
    .ts-stat { padding: 0 14px; gap: 10px; }
    .ts-stat img { width: 34px; height: 34px; }
    .ts-stat-number { font-size: 20px; }
    .ts-about { grid-template-columns: 1fr; padding: 22px 18px; }
    .ts-pillars { grid-template-columns: 1fr; }
    .ts-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
    .ts-step-list::before { display: none; }
    .ts-steps { padding: 22px 16px; }

    .ts-login-shell { grid-template-columns: 1fr; max-height: calc(100dvh - 32px); overflow-y: auto; }
    .ts-login-visual { min-height: 210px; padding: 18px; }
    .ts-login-car { width: 70%; left: auto; right: -6%; top: 56px; }
    .ts-login-charge { right: auto; width: 54%; top: 16px; left: 16px; }
    .ts-login-visual-copy h3 { font-size: 20px; max-width: 60%; }
    .ts-login-visual-copy p:last-child { display: none; }
    .ts-login-panel { padding: 26px 20px 22px; }
    .ts-login-panel h2 { font-size: 23px; }
    .ts-login-close { background: rgba(255, 255, 255, .92); }
    .ts-login-shell { position: relative; }
    .ts-login-panel { position: static; }
    .ts-register .ts-login-visual { position: relative; min-height: 150px; }
    .ts-register .ts-login-charge,
    .ts-register .ts-login-brand { display: none; }
    .ts-register .ts-login-car { top: 24px; width: 64%; }
    .ts-register .ts-login-panel { padding: 22px 18px 20px; }
    .ts-register .ts-login-panel h2 { font-size: 22px; }
    .ts-field-row { grid-template-columns: 1fr; }

    .ts-footer-main { grid-template-columns: 1fr; padding: 26px 16px; }
    .ts-footer-features { gap: 6px; }
    .ts-footer-bar { padding: 12px 16px; }

    .ts-tabbar {
        position: fixed;
        z-index: 50;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 24px rgba(30, 10, 15, .12);
    }
    .ts-tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 0;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 700;
        color: #3a3b41;
        text-decoration: none;
    }
    .ts-tabbar img { width: 22px; height: 22px; object-fit: contain; }
    .ts-tabbar a.is-active {
        color: #fff;
        background: linear-gradient(160deg, var(--ts-red-bright), #b30d22);
    }
}

@media (max-width: 380px) {
    .ts-actions { grid-template-columns: 1fr; }
    .ts-advantage-grid { grid-template-columns: 1fr; }
    .ts-hero-features li { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
