:root {
    --ink: #f8fbff;
    --ink-dark: #18232d;
    --muted: rgba(235, 246, 255, 0.74);
    --glass: rgba(8, 16, 26, 0.42);
    --glass-strong: rgba(17, 31, 47, 0.56);
    --line: rgba(198, 226, 255, 0.24);
    --rose: #6fa8c6;
    --violet: #102032;
    --sky: #9fc7df;
    --navy: #060b12;
    --shadow: 0 26px 70px rgba(0, 3, 8, 0.58);
    --safe-area-left: 0;
    --safe-area-right: 0;
    --safe-area-top: 0;
    --safe-area-bottom: 0;
}

* { box-sizing: border-box; }
html, body {

    width: 100%;
    height: 100%;
    min-height: 100%;
background-color: #02050a;
background:
radial-gradient(circle at 50% 35%, rgba(130, 180, 206, 0.24), transparent 36%),
radial-gradient(circle at 78% 6%, rgba(169, 218, 255, 0.16), transparent 34%),
linear-gradient(145deg, #03060b 0%, #07101a 44%, #010307 100%),
#02050a;

}
html {
    background:
        linear-gradient(180deg, rgba(0, 4, 10, 0.04), rgba(7, 14, 23, 0.2) 34%, rgba(0, 2, 7, 0.74)),
        url("Tesla.jpg") center center / cover no-repeat fixed,
        #02050a;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #02050a;
    background:
        radial-gradient(circle at 50% 35%, rgba(130, 180, 206, 0.24), transparent 36%),
        radial-gradient(circle at 78% 6%, rgba(169, 218, 255, 0.16), transparent 34%),
        linear-gradient(145deg, #03060b 0%, #07101a 44%, #010307 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: calc(-1 * env(safe-area-inset-top)) 0 calc(-1 * env(safe-area-inset-bottom)) 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 4, 10, 0.04), rgba(7, 14, 23, 0.2) 34%, rgba(0, 2, 7, 0.74)),
        url("Tesla.jpg") center center / cover no-repeat fixed,
        #02050a;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.pwa-stage {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.phone-home {
    width: min(100%, 430px);
    height: min(100vh, 920px);
height: min(100dvh, 920px);
    min-height: 0;
    position: relative;
    overflow: auto;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(8, 20, 32, 0.26), rgba(5, 9, 16, 0.74)),
        url("Tesla.jpg") center / cover;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.phone-home,
.phone-home::before {
    scrollbar-width: none;
}

.phone-home::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.phone-home::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(215, 237, 255, 0.03), rgba(5, 8, 15, 0.28)),
        radial-gradient(circle at 50% 36%, rgba(135, 194, 224, 0.18), transparent 34%);
    backdrop-filter: blur(1.5px);
}

.home-content {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 17px;
    padding: calc(48px + env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.soft-pill {
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.hero-copy h1 {
    max-width: 360px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 8.2vw, 39px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: 0;
    text-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.shortcut-strip {
    width: calc(100% + 40px);
    display: flex;
    gap: 10px;
    margin: 0 -20px;
    padding: 0 20px 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.shortcut-strip::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.shortcut-card {
    flex: 0 0 112px;
    min-height: 66px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(209, 143, 174, 0.1)),
        rgba(255, 255, 255, 0.1);
    color: #fff;
    display: grid;
    place-items: center;
    gap: 5px;
    padding: 9px 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 34px rgba(0, 3, 8, 0.24);
    backdrop-filter: blur(22px) saturate(1.35);
}

.shortcut-card .material-icons {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(226, 244, 255, 0.14);
    font-size: 17px;
}

.section-title {
    max-width: 240px;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.1;
}

.collection-section {
    min-width: 0;
    overflow: hidden;
}

.collection-scroll {
    width: 100%;
    max-width: 100%;
    height: 164px;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 21px;
    background:
        linear-gradient(180deg, rgba(4, 9, 16, 0.08) 0%, rgba(4, 9, 16, 0.18) 42%, rgba(4, 9, 16, 0.78) 100%),
        radial-gradient(circle at 72% 38%, rgba(255, 221, 236, 0.48), transparent 24%),
        radial-gradient(circle at 26% 92%, rgba(104, 151, 190, 0.38), transparent 34%),
        linear-gradient(135deg, rgba(214, 104, 148, 0.5), rgba(43, 64, 90, 0.76)),
        rgba(6, 13, 24, 0.38);
    overflow: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.collection-scroll.is-dragging {
    cursor: grabbing;
}

.collection-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.feature-card {
    position: absolute;
    inset: 0 auto auto 0;
    width: calc(100% - 30px);
    max-width: 100%;
    height: 164px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 21px;
    background:
        linear-gradient(180deg, rgba(4, 9, 16, 0.08) 0%, rgba(4, 9, 16, 0.18) 42%, rgba(4, 9, 16, 0.78) 100%),
        radial-gradient(circle at 72% 38%, rgba(255, 221, 236, 0.48), transparent 24%),
        radial-gradient(circle at 26% 92%, rgba(104, 151, 190, 0.38), transparent 34%),
        linear-gradient(135deg, rgba(214, 104, 148, 0.5), rgba(43, 64, 90, 0.76)),
        rgba(6, 13, 24, 0.38);
    display: grid;
    align-content: end;
    padding: 16px 64px 17px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 24px 46px rgba(0, 3, 9, 0.42);
    backdrop-filter: blur(24px) saturate(1.45);
    overflow: hidden;
    transform: translate3d(var(--card-x, 0), 0, 0);
    transform-origin: left center;
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.26s ease, opacity 0.2s ease;
    z-index: 1;
}

.feature-card.is-active {
    filter: none;
    pointer-events: auto;
    z-index: 3;
}

.feature-card.is-next {
    filter: brightness(0.84) saturate(0.92);
    pointer-events: none;
    z-index: 2;
}

.feature-card.is-after {
    filter: brightness(0.7) saturate(0.82);
    pointer-events: none;
    z-index: 1;
}

.feature-card.is-before {
    filter: brightness(0.74) saturate(0.86);
    pointer-events: none;
    z-index: 0;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(0deg, rgba(4, 8, 13, 0.52), transparent 52%);
    pointer-events: none;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card > * {
    opacity: 0;
}

.feature-card.is-active > * {
    opacity: 1;
}

.collection-spacer {
    display: none;
    pointer-events: none;
}

.feature-card small,
.info-text small,
.pc-panel small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    font-weight: 800;
}

.feature-row {
    display: contents;
}

.feature-row > div {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.feature-card strong {
    display: block;
    margin: 5px 0 4px;
    color: #fff;
    font-size: 18px;
}

.feature-card span,
.info-text span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.play-button {
    position: absolute;
    right: 18px;
    bottom: 17px;
    width: 36px;
    height: 36px;
    z-index: 2;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(240, 248, 255, 0.78);
    color: #07101a;
}

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

.info-card {
    min-height: 76px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(119, 173, 206, 0.08)),
        rgba(5, 11, 19, 0.46);
    display: grid;
    grid-template-columns: 44px 1fr 30px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 34px rgba(0, 3, 8, 0.26);
    backdrop-filter: blur(24px) saturate(1.35);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(226, 244, 255, 0.13);
}

.info-icon .material-icons,
.bottom-tab .material-icons,
.soft-pill .material-icons {
    font-size: 18px;
}

.info-text strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 15px;
}

.bottom-nav {
    height: 66px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(103, 151, 184, 0.06)),
        rgba(3, 8, 15, 0.64);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 22px 46px rgba(0, 3, 8, 0.46);
    backdrop-filter: blur(28px) saturate(1.45);
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 8;
}

.bottom-tab {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 800;
}

.bottom-tab.active {
    color: #fff;
}

.info-page {
    background:
        linear-gradient(180deg, rgba(31, 45, 58, 0.18), rgba(88, 52, 72, 0.74)),
        url("Tesla.jpg") center / cover;
}

.profile-page {
    background:
        linear-gradient(180deg, rgba(36, 46, 58, 0.18), rgba(86, 55, 76, 0.78)),
        url("Tesla.jpg") center / cover;
}

.profile-content {
    grid-template-rows: auto auto auto 1fr auto;
}

.page-top {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 8px;
}

.round-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: grid;
    place-items: center;
    backdrop-filter: blur(16px);
}

.page-top strong {
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.info-hero {
    margin-top: 20px;
    min-height: 210px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid var(--line);
    padding: 18px;
    display: grid;
    align-content: end;
    backdrop-filter: blur(18px);
}

.info-hero h1 {
    margin: 8px 0 0;
    max-width: 310px;
    color: #fff;
    font-size: 34px;
    line-height: 1.04;
}

.detail-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.detail-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    padding: 15px;
    backdrop-filter: blur(16px);
}

.detail-card strong {
    display: block;
    color: #fff;
    font-size: 16px;
}

.detail-card p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    line-height: 1.45;
}

.profile-hero {
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.2), transparent 32%),
        rgba(255, 255, 255, 0.14);
    padding: 22px;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    backdrop-filter: blur(18px);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 32px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(184, 105, 114, 0.48));
    border: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(30, 26, 38, 0.22);
}

.profile-hero h1 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.profile-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.profile-stats div {
    min-height: 76px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: grid;
    align-content: center;
    justify-items: center;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.profile-stats strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 15px;
}

.profile-link {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    color: #fff;
}

.profile-link > .material-icons {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
}

.pc-panel {
    display: none;
}

@media (min-width: 900px) {
    .pwa-stage {
        grid-template-columns: minmax(360px, 430px) minmax(320px, 460px);
        gap: 46px;
        padding: 38px;
    }

    .phone-home {
        min-height: 860px;
        border: 8px solid #14202b;
    }

    .bottom-nav {
        position: sticky;
        left: auto;
        right: auto;
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .pc-panel {
        display: block;
        color: #fff;
    }

    .pc-panel h2 {
        margin: 10px 0 14px;
        font-size: 44px;
        line-height: 1;
        letter-spacing: 0;
    }

    .pc-panel p {
        max-width: 400px;
        margin: 0;
        color: rgba(255, 255, 255, 0.72);
        font-size: 15px;
        line-height: 1.6;
    }

    .pc-actions {
        display: flex;
        gap: 10px;
        margin-top: 22px;
        flex-wrap: wrap;
    }

    .pc-actions a {
        min-height: 42px;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 0 16px;
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.14);
        font-size: 13px;
        font-weight: 900;
        backdrop-filter: blur(16px);
    }
}

@media (max-width: 430px) {
    .pwa-stage {
        padding: 0;
        display: block;
    
.phone-home {
  width: 100%;
  height: 100dvh;
  border-radius: 0;
}
}

    .phone-home {
        width: 100%;
        min-height: calc(100dvh + env(safe-area-inset-top) + env(safe-area-inset-bottom));
        height: calc(100dvh + env(safe-area-inset-top) + env(safe-area-inset-bottom));
        margin-top: calc(-1 * env(safe-area-inset-top));
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    html {
        background:
            linear-gradient(180deg, rgba(0, 4, 10, 0.04), rgba(7, 14, 23, 0.18) 34%, rgba(0, 2, 7, 0.74)),
            url("Tesla.jpg") center center / cover no-repeat fixed,
            #02050a;
    }

    body {
        background: transparent;
    }

    body::before {
        background:
            linear-gradient(180deg, rgba(0, 4, 10, 0.04), rgba(7, 14, 23, 0.18) 34%, rgba(0, 2, 7, 0.74)),
            url("Tesla.jpg") center center / cover no-repeat fixed,
            #02050a;
    }

    .pwa-stage {
        min-height: calc(100dvh + env(safe-area-inset-bottom));
        display: block;
        padding: 0;
        background: transparent;
    }

    .phone-home {
        width: 100%;
        max-width: none;
        min-height: calc(100dvh + env(safe-area-inset-top) + env(safe-area-inset-bottom));
        height: calc(100dvh + env(safe-area-inset-top) + env(safe-area-inset-bottom));
        margin-top: calc(-1 * env(safe-area-inset-top));
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-content {
        padding-top: calc(66px + env(safe-area-inset-top));
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }
}

@media (max-height: 780px) and (max-width: 430px) {
    .home-content {
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-copy h1 {
        font-size: 29px;
    }

    .shortcut-card {
        flex-basis: 96px;
        min-height: 60px;
    }

    .feature-card {
        min-height: 132px;
    }

    .info-card {
        min-height: 68px;
    }

    .profile-hero {
        min-height: 220px;
    }
}

.fee-table-card {
    overflow: hidden;
}

.fee-table-wrap {
    overflow-x: auto;
    margin-top: 10px;
}

.fee-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    color: #fff;
    font-size: 12px;
}

.fee-table th,
.fee-table td {
    padding: 10px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    vertical-align: top;
}

.fee-table th {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 900;
}

.fee-table td:first-child {
    font-weight: 900;
}

.source-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.current-fee-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    margin-top: 12px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(217, 138, 149, 0.92), rgba(184, 105, 114, 0.92));
    color: #fff;
    font-weight: 900;
}

.current-fee-btn i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
}

.current-fee-result {
    display: none;
}

.current-fee-result.is-visible {
    display: block;
}

.current-fee-meta {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.4;
}

.charging-schedule-table {
    min-width: 420px;
}

.charging-slot-result {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.charging-slot-result strong {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 6px;
}

.charging-range-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.charging-range-grid label {
    display: grid;
    gap: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.charging-range-grid input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: inherit;
    outline: none;
}

.charging-range-grid input:focus {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.16);
}
