@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons+Outlined");

/**
@chrisbautista @codespud
Animated tabs using only CSS transitions.
*/

:root {
  --accent-color: #1fa8f5;
  --app-content-background-color: #4dd146;
  --bar-bg: #f9f8fa;

}

html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body {
  background-color: #e8e8e8;
  font-size: 10px;
  font-family: "Poppins", "Roboto", sans-serif;
  transition: background-color 0.4s ease;
}


/* HOME */

.home.active {
  color: var(--accent-color);
}

.home-style {
  --app-content-background-color: #4dd146;
}

/* PRODUCTS */

.products.active {
  color: #690c0c;
}

.products-style {
  --app-content-background-color: #ffffff;
}

/* SERVICES */

.services.active {
  color: #cf5c0f;
}

.services-style {
  --app-content-background-color: #ed9426;
}

/* ABOUT */

.about.active {
  color: #4dd146;
}

.about-style {
  --app-content-background-color: #4dd146;
}

/* HELP */

.help.active {
  color: #490867;
}

.help-style {
  --app-content-background-color: #a3a3a3;
}
.flex-center{
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.container{
    padding: 1rem 1rem 1.5rem;
}
.stage{
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
}
.stage > .container{
    padding: 0;
    height: 100%;
}
.tabbar{
    background: var(--app-content-background-color);
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s;
}
.tabbar ul,
.tabbar li{
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.tabbar ul{
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--bar-bg);
    align-self: flex-end;
    justify-content: center;
    height: 50px;
    transition: background-color 0.4s ease;
}
.tabbar li{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    margin-right: 5px;
    transition: all 0.4s;
    width: 60px;
    height: 60px;
    position: relative;
    background: var(--bar-bg);
    color: #888;
    cursor: pointer;
}
.tabbar li:last-child{
    margin-right: 0;
}
.tab-style1 ul{
    justify-content: space-around;
}
.tab-style1 li{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 50px;
    top: 1px;
    left: 0;
    margin-right: 0;
    transition: top 0.2s ease-out,
                width 0.4s;
}
.tab-style1 li.follow{
    position: absolute;
    border-radius: 50%;
    content: '';
    width: 60px;
    height: 60px;
    border: 10px solid var(--app-content-background-color);
    top: -3rem;
    background: var(--app-content-background-color);
    transition: left 0.4s ease-in;
}
.tab-style1 li.follow::before,
.tab-style1 li.follow::after {
  content: " ";
  position: absolute;
  top: 27px;
  right: -27px;
  border-top: 11px solid var(--app-content-background-color);
  background-color: var(--bar-bg);
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  transition: border-color 0.4s, background-color 0.4s;
}
.tab-style1 li.follow::before {
    left: -27px;
    border-top-right-radius: 100%;
    right: unset;
}
.tab-style1 li.follow::after {
    border-top-left-radius: 100%;
}
.tab-style1 li:nth-child(1).active ~ .follow{
    left: calc(100vw / 6 - 40px);
}

.tab-style1 li:nth-child(2).active ~ .follow{
    left: calc(50vw - 40px);
}

.tab-style1 li:nth-child(3).active ~ .follow{
    left: calc(100vw * 5 / 6 - 40px);
}
.tab-style1 .active{
    width: 60px;
    height: 60px;
    top: -2rem;
    z-index: 100;
    border-radius: 50%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

/* BALANCE CARD */

.page-header{
    margin: 20px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-header-title{
    font-family: "Fredoka", "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a0a;
}
.page-header-title-name{
    letter-spacing: 1.5px;
}
.page-header-icon{
    font-size: 1.8rem;
    color: #1a1a1a;
    flex: 0 0 auto;
    transition: color 0.4s ease;
}
.theme-switch-input{
    display: none;
}
.theme-switch-label{
    width: 70px;
    height: 35px;
    border-radius: 999px;
    background: #F3F3F3;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
    display: block;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.theme-switch-circle{
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.12), -2px -2px 4px rgba(0, 0, 0, 0.05) inset;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(10%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: left 0.4s ease, transform 0.4s ease, width 0.2s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.theme-switch-circle svg{
    width: 15px;
    position: absolute;
    transition: margin-top 0.4s ease, opacity 0.4s ease, color 0.4s ease;
}
.theme-switch-sun{
    color: #FFD600;
    margin-top: 0%;
    opacity: 1;
}
.theme-switch-moon{
    margin-top: -150%;
    color: #fff;
    opacity: 0;
}
.theme-switch-input:checked + .theme-switch-label{
    background: #1F1F21;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}
.theme-switch-input:checked + .theme-switch-label .theme-switch-circle{
    left: 100%;
    transform: translate(-110%, -50%);
    background: #2C2C2F;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), -2px -2px 4px rgba(0, 0, 0, 0.3) inset;
}
.theme-switch-input:checked + .theme-switch-label .theme-switch-sun{
    margin-top: 150%;
    opacity: 0;
}
.theme-switch-input:checked + .theme-switch-label .theme-switch-moon{
    margin-top: 0%;
    opacity: 1;
}
.theme-switch-label:active .theme-switch-circle{
    width: 38px;
}
.balance-card{
    margin: 0 16px 0;
    background: #fff;
    border-radius: 14px;
    padding: 11px 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: background-color 0.4s ease;
}
.balance-card + .balance-card{
    margin-top: 14px;
}
.balance-card-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.balance-card-title{
    font-size: 1.2rem;
    font-weight: 600;
    color: #0a0a0a;
}
.balance-eye-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #f0f0f1;
    color: #5b5b5e;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.15s ease;
}
.balance-eye-btn:active{
    background: #e0e0e2;
    transform: scale(0.85);
}
.balance-eye-btn .material-icons-outlined{
    font-size: 1.4rem;
    display: inline-block;
}
@keyframes eye-pop{
    0%{ transform: scale(1) rotate(0deg); }
    45%{ transform: scale(0.65) rotate(-18deg); }
    100%{ transform: scale(1) rotate(0deg); }
}
.balance-eye-btn.eye-pop .material-icons-outlined{
    animation: eye-pop 0.4s ease;
}
.balance-card-amount{
    font-size: 2.4rem;
    font-weight: 600;
    color: #0a0a0a;
    margin: 5px 0 11px;
    letter-spacing: 0px;
    transition: opacity 0.22s ease, filter 0.22s ease, letter-spacing 0.22s ease, color 0.4s ease;
}
.balance-card-amount.balance-negative{
    color: #e11d48;
}
.balance-card-amount.hidden-amount{
    letter-spacing: 2px;
}
.balance-card-amount.balance-amount-fading{
    opacity: 0;
    filter: blur(8px);
}

/* PAY NOW / BTC ADDRESS */

.pay-now-network-badge{
    font-size: 0.75rem;
    font-weight: 600;
    color: #f7931a;
    background: #fff4e6;
    padding: 3px 9px;
    border-radius: 999px;
    flex: 0 0 auto;
    transition: background-color 0.4s ease, color 0.4s ease;
}
.pay-now-row{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.pay-now-address{
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92rem;
    color: #0a0a0a;
    word-break: break-all;
    flex: 1;
    min-width: 0;
    padding-top: 2px;
    transition: color 0.4s ease;
}
.pay-now-address.pay-now-empty{
    color: #9a9a9a;
    font-family: inherit;
    font-style: italic;
}
.pay-now-copy-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f0f0f1;
    color: #5b5b5e;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    transition: background-color 0.2s ease, transform 0.15s ease, color 0.3s ease;
}
.pay-now-copy-btn:active{
    background: #e0e0e2;
    transform: scale(0.85);
}
.pay-now-copy-btn:disabled{
    cursor: default;
    opacity: 0.5;
}
.pay-now-copy-btn .material-icons-outlined{
    font-size: 1.2rem;
}
.pay-now-copy-btn.copy-success{
    background: #dcfce7;
    color: #15803d;
}

/* PAGES */

.page{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
}
.page.active-page{
    display: block;
}

/* ACTIVITY (PRODUCTS) PAGE */

.activity-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 16px 14px;
}
.activity-title{
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a0a;
}
.activity-header-icons{
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1a1a1a;
}
.activity-header-icons .material-icons-outlined{
    font-size: 1.7rem;
}
.activity-list{
    padding: 4px 16px 90px;
}
.activity-row{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f1;
}
.activity-dot{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex: 0 0 auto;
}
.activity-dot-hidden{
    background: transparent;
}
.activity-avatar{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    display: block;
}
.activity-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.2);
}
.activity-info{
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.activity-name{
    font-size: 1.05rem;
    font-weight: 600;
    color: #0a0a0a;
}
.activity-sub{
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-amount{
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a0a0a;
    flex: 0 0 auto;
    margin-left: 8px;
}
.activity-amount-negative{
    color: #e11d48;
}

/* RENT CARD */

.rent-card{
    margin: 0 16px;
    background: #fff;
    border-radius: 20px;
    padding: 18px 18px 19px;
    box-sizing: border-box;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    font-family: "Fredoka", "Roboto", sans-serif;
    transition: background-color 0.4s ease;
}
.rent-card + .rent-card{
    margin-top: 14px;
}
.rent-card-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.rent-card-text{
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rent-card-title{
    font-size: 1.7rem;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 1.15;
}
.rent-arrow-btn{
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #111;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    padding: 0;
    transition: transform 0.3s ease, background-color 0.2s;
}
.rent-arrow-btn .material-icons-outlined{
    font-size: 1.7rem;
}
.rent-arrow-btn.open{
    transform: rotate(90deg);
}
.rent-card-row{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #9a9a9a;
    margin-top: 5px;
}
.rent-card-row.rent-row-strong{
    font-weight: 600;
    color: #2a2a2a;
}
.rent-dot{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex: 0 0 auto;
}
.rent-dot.rent-dot-paused{
    background: #f59e0b;
}

/* RENT DETAILS (COLLAPSIBLE, EXPANDS INSIDE THE SAME CARD) */

.rent-details{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease, border-color 0.4s ease;
}
.rent-details.open{
    max-height: 300px;
    opacity: 1;
    margin-top: 13px;
}
.rent-details-inner{
    padding-top: 13px;
    border-top: 1px solid #eee;
}
.rent-details-heading{
    font-size: 1.3rem;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 10px;
}
.rent-detail-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 1.02rem;
}
.rent-detail-row span:first-child{
    color: #9a9a9a;
    font-weight: 500;
}
.rent-detail-row span:last-child{
    color: #0a0a0a;
    font-weight: 600;
}

/* DARK MODE */

body.dark-mode{
    background-color: #0e0e10;
    --app-content-background-color: #000000;
    --bar-bg: #1c1c1e;
}
body.dark-mode .home-style,
body.dark-mode .products-style,
body.dark-mode .about-style{
    --app-content-background-color: #000000;
}
body.dark-mode .balance-card,
body.dark-mode .rent-card{
    background: #1c1c1e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
body.dark-mode .balance-eye-btn{
    background: #2c2c2e;
    color: #b3b3b8;
}
body.dark-mode .balance-eye-btn:active{
    background: #38383a;
}
body.dark-mode .pay-now-copy-btn{
    background: #2c2c2e;
    color: #b3b3b8;
}
body.dark-mode .pay-now-copy-btn:active{
    background: #38383a;
}
body.dark-mode .pay-now-copy-btn.copy-success{
    background: #14532d;
    color: #4ade80;
}
body.dark-mode .pay-now-network-badge{
    background: #3a2a12;
    color: #f7b155;
}
body.dark-mode .page-header-title,
body.dark-mode .balance-card-title,
body.dark-mode .balance-card-amount,
body.dark-mode .activity-title,
body.dark-mode .activity-name,
body.dark-mode .activity-amount,
body.dark-mode .rent-card-title,
body.dark-mode .rent-details-heading,
body.dark-mode .rent-detail-row span:last-child,
body.dark-mode .rent-card-row.rent-row-strong,
body.dark-mode .pay-now-address{
    color: #f2f2f3;
}
body.dark-mode .activity-sub,
body.dark-mode .rent-detail-row span:first-child,
body.dark-mode .rent-card-row{
    color: #9d9da3;
}
body.dark-mode .activity-amount-negative{
    color: #fb7185;
}
body.dark-mode .balance-card-amount.balance-negative{
    color: #fb7185;
}
body.dark-mode .activity-header-icons,
body.dark-mode .page-header-icon{
    color: #e5e5e6;
}
body.dark-mode .activity-row{
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .rent-details-inner{
    border-top-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .tabbar li{
    color: #a0a0a5;
}

/* DARK MODE TOGGLE ANIMATION (circular reveal via View Transitions API) */

::view-transition-old(root),
::view-transition-new(root){
    animation: none;
    mix-blend-mode: normal;
}