* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0b0d12;
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding-bottom: 110px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    background: linear-gradient(120deg, #11304c 0%, #071725 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.balance-amount {
    font-weight: 600;
}

.diamond-icon {
    color: #2196F3;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.diamond-icon svg {
    display: block;
}

.add-btn {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Banner Carousel */
.banner-carousel {
    margin: 16px;
    position: relative;
    padding-bottom: 8px;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 100px;
}

.banner {
    position: absolute;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    top: 0;
    left: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.banner.active {
    transform: translateX(0);
    z-index: 2;
}

.banner.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.banner.hide {
    transform: translateX(100%);
    z-index: 0;
}

.banner-content {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    z-index: 2;
    flex-wrap: wrap;
    max-width: 50%;
}

.banner-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.banner-more-btn {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.banner-more-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.banner-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.banner-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    width: 100%;
    margin-top: -4px;
}

.badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-blue {
    background: #2196F3;
}

.badge-red {
    background: #FF4444;
}

.badge-green {
    background: #00C853;
}

.badge-yellow {
    background: #FFB300;
    color: #000;
}

.badge-text {
    font-size: 11px;
}

.banner-image {
    width: 100%;
    display: block;
}

.banner-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Banner specific styles */
.banner-pay,
.banner-nft,
.banner-fee,
.banner-top10 {
    background: transparent;
    border: none;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2196F3;
    width: 24px;
    border-radius: 4px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab.active {
    background: rgba(255, 255, 255, 0.18);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 16px 12px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-filters {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.filter {
    color: #888;
    cursor: pointer;
}

.filter.active {
    color: #fff;
}

/* Product List */
.product-list {
    padding: 0 16px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
}

.product-image {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lottie-container {
    width: 100%;
    height: 100%;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.product-type {
    font-size: 13px;
    color: #888;
}

.product-stats {
    display: flex;
    gap: 16px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.stat-icon {
    color: #2196F3;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.stat-icon svg {
    display: block;
}

/* Market Live */
.market-live {
    padding: 0 16px;
}

.market-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 12px;
}

.market-live-title {
    font-size: 20px;
    font-weight: 700;
}

.arrow-icon {
    font-size: 20px;
    color: #888;
}

.market-live-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.market-live-items::-webkit-scrollbar {
    display: none;
}

.market-live-item {
    flex-shrink: 0;
    width: 120px;
}

.market-live-image {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.market-live-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-live-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.badge-listing {
    color: #5ab0ff;
    background: rgba(90, 176, 255, 0.1);
}

.badge-edit {
    color: #bb7fff;
    background: rgba(187, 127, 255, 0.1);
}

.badge-transfer {
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
}

.badge-purchase {
    color: #ffd166;
    background: rgba(255, 209, 102, 0.1);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #15171d;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-around;
    padding: 18px 0 20px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #888;
    cursor: pointer;
}

.nav-item.active {
    color: #2196F3;
}

.nav-icon {
    font-size: 26px;
}

.nav-label {
    font-size: 12px;
}

/* Emoji Icons */
.emoji {
    font-style: normal;
}

/* Auth Toast Popup */
.auth-toast {
    position: fixed;
    inset: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
}

.auth-toast.auth-toast-visible {
    visibility: visible;
    pointer-events: auto;
}

.auth-toast-dialog {
    width: 100%;
    max-width: 340px;
    padding: 20px 20px 18px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(40, 43, 52, 0.96), rgba(22, 24, 31, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    will-change: opacity, transform;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.18s ease-out, transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-toast.auth-toast-visible .auth-toast-dialog {
    opacity: 1;
    transform: scale(1);
}

.auth-toast-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(26, 29, 38, 0.95);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-toast-dismiss:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.auth-toast-dismiss:active {
    background: rgba(255, 255, 255, 0.2);
}

.auth-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff5252;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.auth-toast-body {
    font-size: 17px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 2px;
}

.auth-toast-close {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(102deg, #0284ac 0%, #5b8dff 48%, #3ac8ff 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.auth-toast-close:hover {
    filter: brightness(1.05);
}

.auth-toast-close:active {
    filter: brightness(0.97);
}

/* Loading Spinner */
.spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.spinner-large {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #2196F3;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Subscribe Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 100%;
    background: #15171d;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    position: relative;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.modal-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.modal-header-bg::after {
    display: none;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px 24px 32px;
    background: #15171d;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: #1c1f26;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-icon {
    font-size: 20px;
    background: rgba(255, 215, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text {
    font-size: 13px;
    line-height: 1.5;
    color: #ccc;
    font-weight: 500;
}

.subscribe-btn {
    width: 100%;
    height: 54px;
    background: #2196F3;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 20px -4px rgba(33, 150, 243, 0.4);
}

.subscribe-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(33, 150, 243, 0.5);
}

.subscribe-btn:active {
    transform: scale(0.98) translateY(0);
}
