@font-face {
    font-family: "DM Sans";
    src: url("https://iopgokphqerqsnqfkogz.supabase.co/storage/v1/object/public/lighty/fonts/DMSans-Regular.ttf")
        format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    background-color: #f7f5f0;
    color: #0a0a0a;
    font-family:
        "DM Sans",
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        sans-serif;
    overflow: hidden;
}
#loader-container {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#loader-container img {
    width: 60px;
    height: auto;
    animation: grayscaleFade 1.2s infinite ease-in-out;
}
@keyframes grayscaleFade {
    0%,
    100% {
        filter: grayscale(100%);
        opacity: 0.5;
    }
    50% {
        filter: grayscale(0%);
        opacity: 1;
    }
}
#content {
    display: none;
}
.page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 24px 48px;
}
.wrap {
    width: min(100%, 460px);
}
.banner {
    display: none;
    align-items: flex-start;
    gap: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 13px 16px;
    margin-bottom: 16px;
}
.banner.show {
    display: flex;
}
.banner-text {
    font-size: 13px;
    color: #9a3412;
    line-height: 1.5;
}
.banner-text strong {
    font-weight: 700;
}
.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eaeaea;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 20px;
    color: #0a0a0a;
    background: #ffffff;
}
.card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    background: #f0eeea;
    border: 1px solid #eaeaea;
    padding: 6px;
    border-radius: 18px;
    margin-bottom: 26px;
}
.tab {
    border: 0;
    background: transparent;
    color: #737373;
    padding: 10px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.18s ease;
}
.tab.active {
    background: #ffffff;
    color: #0a0a0a;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.panel {
    display: none;
}
.panel.active {
    display: block;
}
h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #0a0a0a;
}
.sub {
    color: #737373;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.conn-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    margin-bottom: 10px;
    background: #ffffff;
}
.conn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.conn-logo {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid #eaeaea;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    flex-shrink: 0;
}
.conn-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.conn-name {
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
}
.conn-status {
    font-size: 12px;
    color: #a3a3a3;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4d4d4;
    display: inline-block;
    flex-shrink: 0;
}
.dot.connected {
    background: #22c55e;
}
.connect-btn {
    border: 1px solid #d4d4d4;
    background: transparent;
    color: #0a0a0a;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 11px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.18s;
    white-space: nowrap;
}
.connect-btn:hover {
    background: #f5f5f5;
}
.connect-btn.connected {
    border-color: #bbf7d0;
    color: #15803d;
    background: #f0fdf4;
}
.connect-btn.connected:hover {
    background: #dcfce7;
}
.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 14px;
}
.tip-box svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.tip-text {
    font-size: 13px;
    color: #5b21b6;
    line-height: 1.55;
}
.tip-text strong {
    font-weight: 700;
}
.plan-box {
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
    background: #ffffff;
}
.plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.plan-label {
    font-size: 12px;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.plan-name {
    font-size: 16px;
    font-weight: 700;
    color: #0a0a0a;
}
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
}
.plan-badge.active {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.plan-badge.inactive {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.badge-dot.active {
    background: #22c55e;
}
.badge-dot.inactive {
    background: #f97316;
}
.plan-desc {
    font-size: 13px;
    color: #737373;
    line-height: 1.5;
}
.goto-billing-btn {
    width: 100%;
    height: 50px;
    border-radius: 16px;
    border: 1px solid #d4d4d4;
    background: transparent;
    color: #0a0a0a;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.18s;
}
.goto-billing-btn:hover {
    background: #f5f5f5;
}
.billing-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0 8px;
    gap: 12px;
    text-align: center;
}
.billing-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.billing-title {
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
}
.billing-desc {
    font-size: 14px;
    color: #737373;
    line-height: 1.6;
    max-width: 320px;
}
.billing-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 14px;
    text-decoration: none;
    font-family: inherit;
    transition: 0.18s;
    margin-top: 4px;
}
.billing-link:hover {
    opacity: 0.85;
}
.ext-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a3a3a3;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    width: min(90vw, 380px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 6px;
}
.modal-sub {
    font-size: 13px;
    color: #737373;
    margin-bottom: 18px;
    line-height: 1.5;
}
.modal-ts {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.modal-cancel {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #d4d4d4;
    background: transparent;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: 0.18s;
}
.modal-cancel:hover {
    background: #f5f5f5;
}
@media (max-width: 520px) {
    .card {
        padding: 20px;
        border-radius: 22px;
    }
    h2 {
        font-size: 20px;
    }
}
