
.ion-tabs {
    background-color: #000;
}
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
ion-tab-bar {
    height: 50px;
    padding: 5px 10px 0;
    border-top: 1px solid var(--btn-border-color, var(--special-btn));
}
.tab-button-background {
    background-color: transparent;
}
ion-tab-button {
    padding-bottom: 4px;
}
ion-tab-button ion-icon {
    font-size: 28px;
    color: var(--tab-color);
    margin-bottom: 0px;
}
ion-tab-button.tab-selected ion-icon,
ion-tab-button.tab-selected .tab-name {
    color: var(--tab-color-active);
}
ion-tab-button.tab-selected {
    position: relative;
}
ion-tab-button.tab-selected::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    /* background: linear-gradient(270deg, rgba(244, 37, 0, 0) 0%, #E5252A 50%, rgba(244, 37, 0, 0) 100%); */
    background: linear-gradient(270deg, rgba(244, 37, 0, 0) 0%, var(--tab-color-active) 50%, rgba(244, 37, 0, 0) 100%);
}
.tab-name {
    font-size: 12px;
    height: 25px;
    color: var(--tab-color);
}

/* ================= normal tab ================= */
.main-tab-bar {
    background: linear-gradient(to bottom,
            var(--login-bg-top) 0%,
            var(--login-bg-top) 65%,
            var(--tab-selected-color) 100%);
    border-radius: 25px;
}

/* ================= floating tab ================= */
.floating-tabs ion-content {
    --padding-bottom: 70px;
}
.floating-tab-wrapper {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    z-index: 1000;
    padding: 5px 0;
    /* background-color: var(--content-color); */
}
.floating-tab-wrapper .main-tab-bar {
    border-radius: 30px;
}

/* ================= gem layout ================= */
.gem-tab-layout {
    display: flex;
    justify-content: center;
}
.gem-tab-layout ion-tab-button {
    max-width: 95px;
}
.floating-tab-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 50px;
    color: var(--content-color);
    background-color: var(--content-color);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.user-details-wrapper[data-v-f5e8d461] {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    color: var(--color-white);
}
.user-details-wrapper.vertical[data-v-f5e8d461] {
    flex-direction: column;
}
.user-details-wrapper.vertical .avatar[data-v-f5e8d461] {
    margin-right: 0;
}
.user-details-wrapper.vertical .user-details-info[data-v-f5e8d461] {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.user-details-info h3[data-v-f5e8d461],
.user-details-info p[data-v-f5e8d461] {
    text-align: center;
    margin: 0;
    /* Resetting h3/p margin for better control */
}
.user-details-info h3[data-v-f5e8d461] {
    font-size: 1.2em;
    font-weight: 600;
}
.user-details-info p[data-v-f5e8d461] {
    font-size: 14px;
    margin: 2px 0 0;
}
.user-details-wrapper.horizontal[data-v-f5e8d461] {
    flex-direction: row;
    align-items: flex-start;
    /* Align items to the top/start */
}
.user-details-wrapper.horizontal .avatar[data-v-f5e8d461] {
    margin-right: 15px;
    margin-bottom: 0;
}
.user-details-wrapper.horizontal .user-details-info[data-v-f5e8d461] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.user-details-info .text-left[data-v-f5e8d461] {
    text-align: left !important;
}
.avatar[data-v-f5e8d461] {
    font-size: 60px;
    color: var(--user-avatar);
}
.skeleton-circle-avatar[data-v-f5e8d461] {
    width: 70px !important;
    min-width: 70px;
    height: 70px !important;
    border-radius: 50% !important;
    margin: 0 0 10px 0 !important;
}
.user-details-wrapper.horizontal .skeleton-circle-avatar[data-v-f5e8d461] {
    margin: 0 15px 0 0 !important;
}
.cvv-copy-icon[data-v-f5e8d461] {
    margin-left: 5px;
    font-size: 12px;
}
img[data-v-f5e8d461] {
    width: 70px;
    height: 70px;
}
ion-skeleton-text[data-v-f5e8d461] {
    background: #63636333;
}

ion-menu.main-menu[data-v-8e61857a] {
    --width: 100% !important;
    --max-width: 100% !important;
}
ion-content.menu-content[data-v-8e61857a] {
    /* --background: var(--content-color) !important; */
    height: 100%;
}
.scroll-container[data-v-8e61857a] {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0 10px;
}
.main-body[data-v-8e61857a] {
    flex: 1;
}

/* 4. 头部样式 */
/* .ion-header {
    background-color: var(--content-color) !important;
    --border-bottom: none !important;
} */
ion-toolbar[data-v-8e61857a] {
    --background: transparent;
    --border-width: 0;
    box-shadow: none;
}

/* 5. 个人资料 */
.profile-container[data-v-8e61857a] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0 0 0;
}

/* 6. 卡片网格 */
.card-grid[data-v-8e61857a] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.card[data-v-8e61857a] {
    background: var(--item-color) !important;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--item-border-color);
    justify-content: space-between;
    align-items: flex-start;
    color: var(--color-white);
}
.card ion-label[data-v-8e61857a] {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-white) !important;
}

/* 7. 列表样式 */
ion-list[data-v-8e61857a] {
    background: var(--item-color);
    border-radius: 10px;
    margin-top: 20px;
}
.menu-item-header[data-v-8e61857a] {
    background-color: var(--skeleton-bg-color);
    padding: 11px 15px;
    font-size: .8em;
    color: var(--tab-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
ion-item[data-v-8e61857a] {
    --background: var(--item-color);
    color: var(--color-white);
    font-size: 14px;
    --min-height: 45px;
    border-bottom: 1px solid var(--item-border-color);
}
ion-item[data-v-8e61857a]:last-child {
    border-bottom: none;
}
ion-item ion-label[data-v-8e61857a] {
    font-weight: bold;
    font-size: 1rem;
    color: var(--color-white) !important;
}

/* 8. 登出按钮 */
.logout-btn[data-v-8e61857a] {
    color: #fff;
    margin-top: 16px;
    margin-left: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px 6px;
}
ion-icon[data-v-8e61857a] {
    color: var(--color-white) !important;
}
.logout-icon[data-v-8e61857a] {
    font-size: 25px;
    margin-right: 5px;
}

/* 9. 版本信息：去掉绝对定位 */
.version-info[data-v-8e61857a] {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 30px;
    /* 留出底部边距 */
}
.version[data-v-8e61857a] {
    color: var(--color-white);
    font-size: 0.8rem;
    opacity: 0.6;
}
.logout-text[data-v-8e61857a] {
    color: var(--color-white);
    font-weight: 700;
}
.close-icon-container[data-v-8e61857a] {
    display: flex;
    height: 30px;
    justify-content: flex-end;
    padding: 10px 15px 0 0;
}

/* 暗黑模式适配 */
/* @media (prefers-color-scheme: dark) {
    ion-label {
        color: #ffffff !important;
    }
} */

.pwa-install-banner[data-v-0dee8dcf] {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;

  /* 暗模式 */
  /* @media (prefers-color-scheme: dark) {
    background: linear-gradient(to top, rgba(15, 15, 20, 0.96), rgba(15, 15, 20, 0.9));
    border-top-color: rgba(255, 255, 255, 0.1);
  } */
}
.close-btn {
&[data-v-0dee8dcf] {
  position: absolute;
  top: 5px;
  right: 6px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s;

  /* @media (prefers-color-scheme: dark) {
    &:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #ddd;
    }
  } */
  }
&[data-v-0dee8dcf]:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #666;
}
}
.content[data-v-0dee8dcf] {
  gap: 16px;
}
.left[data-v-0dee8dcf] {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.icon[data-v-0dee8dcf] {
  font-size: 36px;
  flex-shrink: 0;
}
.text[data-v-0dee8dcf] {
  flex: 1;
  min-width: 0;
}
.title[data-v-0dee8dcf] {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #000;

  /* @media (prefers-color-scheme: dark) {
    color: #fff;
  } */
}
.desc[data-v-0dee8dcf] {
  font-size: 13.5px;
  color: #666;
  margin: 0;

  /* @media (prefers-color-scheme: dark) {
    color: #aaa;
  } */
}
.install-btn {
&[data-v-0dee8dcf] {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
  float: right;

  /* @media (prefers-color-scheme: dark) {
    background: #fff;
    color: #000;
  } */
  }
&[data-v-0dee8dcf]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
&[data-v-0dee8dcf]:active {
    transform: translateY(0);
}
}

/* iOS 专用 */
.ios .guide[data-v-0dee8dcf] {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #007aff;
  flex-shrink: 0;
}
.share-icon[data-v-0dee8dcf] {
  width: 28px;
  height: 28px;
  color: #007aff;
}
.ios .tip[data-v-0dee8dcf] {
  white-space: nowrap;
  font-weight: 500;
}

/* 上滑动画 */
.slide-enter-active[data-v-0dee8dcf],
.slide-leave-active[data-v-0dee8dcf] {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}
.slide-enter-from[data-v-0dee8dcf],
.slide-leave-to[data-v-0dee8dcf] {
  transform: translateY(100%);
  opacity: 0;
}

/* 全局安全区域适配 */
ion-tab-bar[data-v-2fdae426] {
    padding-bottom: env(safe-area-inset-bottom);
    /* background-color: #fff; */
    background-color: #333;
    height: calc(56px + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

html,
body,
#app,
ion-app {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.app-wrapper {
    width: 100vw;
    height: 100vh;
    background: #000;
    position: relative;
    overflow: hidden;
}

// 接口返回覆盖
:root {
    /* --color-primary-dark: #660708; */
    /* --color-primary-medium: #A4161A; */
    /* --color-primary-lighter: #E5383B; */
    /* --color-secondary-dark: #161A1D; */
    /* --color-neutral-medium: #B1A7A6; */
    /* --color-neutral-light: #D3D3D3; */
    /* --color-background-dark: #0B090A; */
    /* --color-background-light: #F5F3F4; */
    --color-primary-light: #380102a2;
    --color-text-light: #E5EAFA;
    --ion-header-icon-color: #ffffff;
    --surface-input: #92111580;
    --flowed-in:#00E560;
    --flowed-out:#EE4A4A;
    --btn-bg-color:#DE0202;
    --header-bg: #FFFFFF;
    --ion-card-background: #92111580;
    --ion-item-background: #92111580;
    --content-color: #080808ff;
    --tab-selected-color: #db93935e;
    --item-color: #00000033;
    --skeleton-bg-color: #92111580;
    --color-white: #ffffff;
    /* --not-transaction-loading: ; */
    --special-btn: #92111580;
    --login-bg-top: #160808ff;
    --login-bg-footer: #ffffff;
    --tab-color: '#E5EAFA';
    --tab-color-active: #E5252A;
    --user-avatar: #000000;
    --btn-footer-glow: #222;
    --sub-text-color: #888;
    --sub-theme-color: #f70707ea;
    --invite-bg: '#380102a2';
    --item-border-color: rgba(146, 17, 21, 0.7);
    --home-card-background: #00000033;
    --home-card-box-shadow: 0px 4px 4px 0px #00000040;
    --dialog-bg-color: #333;
    --toolbar-background: #0c1527;
    --content-background: #17274B;
    --input-item-background: #0E192D;
    --item-primary-gray-background: #17274B;
    /* --primary-background: #17274B; */
}

ion-router-outlet {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    ion-router-outlet {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        width: 375px;
        height: 812px;
        max-width: 375px;
        max-height: 812px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
    }
    ion-menu {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 375px;
        height: 812px;
        max-width: 375px;
        max-height: 812px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    ion-router-outlet {
        border-radius: 0;
    }
}

ion-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

ion-content {
    /* --background: #ffffff; */
    width: 100%;
    height: 100%;
    overflow: hidden; /* 修改为 hidden，移除滚动条 */
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    scrollbar-width: thin !important; /* 设置滚动条宽度为 "thin" */
    scrollbar-color: #d6d2d2 #f1f1f1; /* 滑块颜色 轨道颜色 */
}

ion-content::part(scroll) {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

ion-content::part(scroll)::-webkit-scrollbar {
    display: none;
}

ion-back-button {
    color: var(--color-white);
}

ion-toolbar {
    --border-style: none;
}

ion-header {
    background: var(--toolbar-background);
}

ion-toolbar {
    --color: var(--ion-header-icon-color) !important;
    --padding-top: 6px;
    --padding-bottom: 6px;
    box-shadow: 1px 2px 4px #74707036;
}

ion-input .native-input {
    caret-color: var(--btn-bg-color) !important;
}

ion-buttons ion-icon {
    color: var(--ion-header-icon-color) !important;
}

ion-button {
    margin: 16px 0;
    font-size: 14px !important;
    --background: linear-gradient(to bottom, var(--btn-bg-color) 0%, var(--btn-bg-color) 50%, var(--btn-footer-glow) 100%);
    text-transform: none !important;
    font-weight: 900;
    color: var(--login-bg-footer);
}

ion-menu-button {
    color: var(--ion-header-icon-color) !important;
}

ion-button {
    --background-activated: var(--btn-bg-color) !important;
    --background-focused: var(--btn-bg-color) !important;
    --background-hover: var(--btn-bg-color) !important;
}

ion-button:focus,
ion-button:hover,
ion-button:active {
    filter: brightness(0.9);
}

ion-header {
    scrollbar-width: thin;
}

ion-header ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

ion-header ::-webkit-scrollbar-thumb {
    background-color: var(--color-primary-light);
    border-radius: 36px;
}

ion-header ion-segment {
    padding-bottom: 6px;
}

ion-segment-button {
    --color-checked: var(--btn-bg-color);
    --indicator-color: var(--special-btn);
}

.input-clear-icon.sc-ion-input-md {
    color: red;
    width: 14px;
    height: 14px;
    border: 1px solid red;
    border-radius: 7px;
    margin-right: 5px;
}

.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios {
    background: none;
    color: var(--color-white);
}

.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios {
    color: var(--color-white);
}

ion-title {
    color: var(--color-white) !important;
}

ion-toast::part(button) {
    font-size: 16px;
    min-height: 34px;
    width: 48px;
    border-radius: 48px;
    margin-left: 15px;
}

.action-sheet-button {
    --button-color: var(--color-text-light, #eee);
    --button-color-focused: var(--color-white, #fff);
}

.router-loading .loading-wrapper,
.custom-loading .loading-wrapper {
    box-shadow: none;
}

.logo-btn {
	padding: 0;
	margin-right: 4px;
}

.header-logo {
	height: 18px;
	width: auto;
	display: block;
}

.button-native{
  	--color: var(--color-primary-light) !important;
}

.my-alert {
  	/* --background: linear-gradient(165deg,  var(--tab-selected-color), var(--item-color)30%,var(--item-color)100%) !important; */
	--background: var(--dialog-bg-color);
	--border-radius: 15px;
	--button-background: transparent !important;
}

.my-alert .alert-wrapper {
	background: var(--dialog-bg-color, #222);
}

.my-alert .alert-message{
  	color: var(--color-white);
}

.my-alert .alert-title{
  	color: var(--color-white) !important;
}

/* 调整按钮间距 */

.my-alert .alert-button-group {
	justify-content: space-between;
	margin-top: 20px;
}

.my-alert .alert-button {
    color: var(--btn-bg-color);
	border-color: rgba(160,160,160,0.6);
}

.my-alert .alert-wrapper:focus {
  	outline: none !important;
}

.my-alert .alert-button.alert-confirm-btn {
    background: var(--btn-bg-color) !important;
    border-color: var(--btn-bg-color);
    color: var(--login-bg-footer);
    border-radius: 8px;
    min-width: 0px;
    margin:0 10px;
}

.my-alert .alert-cancel-btn {
    border: 1px solid var(--btn-bg-color) !important;
    color: var(--btn-bg-color);
    background: transparent;
    border-radius: 8px;
    min-width: 0px;
    margin:0 10px;
    margin-bottom: 5px;
}

.bill-minor {
  	font-size: 12px;
}

.telegram-bind-alert {
	--background: linear-gradient(135deg, #fff);
	--border-radius: 12px;
	--color: black !important;
	--border-bottom:none !important;
	box-shadow: none !important;  
	outline: none !important;
	box-shadow: 3px 3px 3px #030303;
}

.telegram-bind-alert .alert-wrapper {
	backdrop-filter: none;   
	outline: none !important;         
	box-shadow: none !important;
	box-shadow: 4px 6px 20px rgb(255 255 255 / 10%) !important;
}

.telegram-bind-alert .alert-wrapper {
  	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
}

.telegram-bind-alert .alert-message {
	color: black;
	font-weight: 500;
}

.telegram-bind-alert .alert-cancel-button {
  	color: #888888; 
  	background: transparent;
  	font-size: 14px;
  	padding: 10px;
}

.telegram-bind-alert .alert-confirm-button {
  	color: var(--btn-bg-color); 
  	font-size: 14px;
}

.telegram-bind-alert .alert-title {
	color:black !important; 
	font-size: 1.2em; 
	font-weight: bold;
}

.custom-card-toast::part(container) {
	--border-radius: 8px !important; 
	max-width: 90% !important;
	color: white;
}

.toast-content {
  	padding: 0px !important;
}

.custom-card-toast::part(message) {
	font-size: 12px !important;
	color:#e5eafa;
}

.toast-warning::part(message) {
	font-size: 12px !important;
	color: #000000;
}

.toast-warning::part(container) {
	--border-radius: 8px !important; 
	max-width: 90% !important;
	color: rgb(0, 0, 0) !important;
}

.toast-warning::part(container) {
	--border-radius: 8px !important; 
	max-width: 90% !important;
	color: white;
}

.custom-card-toast {
	display: flex !important;
	align-items: center !important;  
	justify-content: flex-start !important; 
	gap: 8px; 
}

.custom-card-toast .toast-button {
	padding: 0 !important;
	margin: 0 !important;
}

.custom-card-toast::part(ion-icon) {
 	font-size: 18px !important;
}

.custom-card-toast::part(button) {
	margin-left: 15px !important;
	background-color: #02613065;
	height: 34px !important;
	width: 34px !important;
	display: flex !important;
	border-radius: 17px;
	justify-content: center !important;
}

.toast-warning::part(button) {
	margin-left: 15px !important;
	background-color: #02613042;
	height: 34px !important;
	width: 34px !important;
	display: flex !important;
	border-radius: 17px;
  	justify-content: center !important;
}

.custom-select-popover ion-item {
	  --color: var(--color-white) !important; 
}

.toast-button-group-end{
  	margin-right: -30px !important;
}

.no-data-message {
	text-align: center;
	padding-top: 50px;
	color: #999;
}

.starfield {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.router-loading .loading-wrapper{
  	background: transparent;
}

.router-loading ion-spinner {
	width: 40px;
	height: 40px;
}

.custom-loading .loading-wrapper{
  	background: transparent;
}

.custom-loading ion-spinner {
	width: 40px;
	height: 40px;
}/* For information on how to create your own theme, please see:
http://ionicframework.com/docs/theming/ */

/* src/theme/variables.css */

/* Ionic Variables */
:root {
  /** primary color */
  --ion-color-primary: #020202;
  --ion-color-primary-rgb: 56, 128, 255;
  --ion-color-primary-contrast: #ffffff;
  --ion-color-primary-contrast-rgb: 255, 255, 255;
  --ion-color-primary-shade: #3171e0;
  --ion-color-primary-tint: #4c8eff;

  /** secondary color */
  --ion-color-secondary: #0cd1e8;
  --ion-color-secondary-rgb: 12, 209, 232;
  --ion-color-secondary-contrast: #ffffff;
  --ion-color-secondary-contrast-rgb: 255, 255, 255;
  --ion-color-secondary-shade: #0bb8cc;
  --ion-color-secondary-tint: #24d6ea;
}

/* Other global styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}