* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

button, input, a, i, .filter-btn, .star-btn {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at top, #0f1f2c 0%, #080d12 100%);
}

body.watchlist-open .main-page {
    transform: translateX(-25%);
    opacity: 0.6;
}

body.watchlist-open .watchlist-page {
    transform: translateX(0);
}

.loading-page {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    gap: 20px;
    transition: 1s;
    overflow: hidden;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at top, #0f1f2c 0%, #080d12 100%);
}
.loading-page .loading-arraw { fill: #00e676; }
.loading-page .loading-bars { fill: #eeeeee; }
.loading-page .loading-seg {
    fill: #122842;
    animation: pulseAnimation 1.2s infinite ease-in-out;
}
.loading-page .s1 { animation-delay: 0s; }
.loading-page .s2 { animation-delay: 0.15s; }
.loading-page .s3 { animation-delay: 0.3s; }
.loading-page .s4 { animation-delay: 0.45s; }
.loading-page .s5 { animation-delay: 0.6s; }
.loading-page .s6 { animation-delay: 0.75s; }
.loading-page .s7 { animation-delay: 0.9s; }
.loading-page .s8 { animation-delay: 1.05s; }
.loading-page i {
    display: none;
    color: #ffb703;
    font-size: 120px;
}
.loading-page p {
    color: #eeeeee;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
@keyframes pulseAnimation {
    0%, 100% { fill: #122842; }
    15% { fill: #1d72d6; }
    40% { fill: #122842; }
}

.main-page {
    width: 100vw;
    height: 100%;
    color: #ffffff;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 1;
    overflow: hidden;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2;
    background: rgba(13, 21, 29, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #1c2834;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

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

.logo-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0052ff, #00a3ff);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 82, 255, 0.4);
}

.logo-box i {
    font-size: 1.2rem;
    color: #ffffff;
}

.brand-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.brand-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: #8b949e;
    margin-top: 2px;
}

.header-left .star-btn {
    background: transparent;
    border: none;
    color: #ffb703;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
}

.main-content {
    position: absolute;
    padding: 100px 20px 20px 20px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow-y: scroll;
}

.crypto-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 0.70rem;
    font-weight: 700;
    color: #657786;
    letter-spacing: 1.5px;
    margin-left: 10px;
    margin-bottom: 15px;
    text-align: left;
}

.grid-2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.margin-top-15 {
    margin-top: 15px;
}

.crypto-card {
    background-color: #111a22;
    border: 1px solid #1c2834;
    border-radius: 16px;
    padding: 16px;
    text-align: left;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.card-percentage {
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.percent-up {
    color: #00e676;
}

.percent-down {
    color: #ff5252;
}

.crypto-card-row {
    background-color: #111a22;
    border: 1px solid #1c2834;
    border-radius: 16px;
    padding: 14px 16px;
}

.row-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    direction: ltr;
}

.row-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.row-value {
    font-size: 0.85rem;
    font-weight: 700;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #1c2834;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
}

.icon-blue { color: #0052ff; }
.icon-yellow { color: #ffb703; }
.icon-btc { color: #f7931a; }
.icon-eth { color: #627eea; }
.icon-gold { color: #cc9933; }
.icon-silver { color: #a6a6a6; }

.color-yellow { color: #ffb703; }
.color-blue { color: #0052ff; }

.bg-yellow { background-color: #ffb703; }
.bg-blue { background-color: #0052ff; }

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    direction: ltr;
}

.top-assets-title {
    margin-bottom: 0;
}

.live-badge {
    background-color: rgba(0, 82, 255, 0.15);
    color: #0052ff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 82, 255, 0.3);
}

.search-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    direction: ltr;
    margin-bottom: 15px;
}

.filter-btn {
    width: 45px;
    height: 45px;
    background-color: #111a22;
    border: 1px solid #1c2834;
    border-radius: 12px;
    color: #0052ff;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transform: rotate(90deg);
}

.filter-btn:active {
    transform: scale(0.8),rotate(90deg);
}

.search-box-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #657786;
    font-size: 0.95rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 45px;
    background-color: #111a22;
    border: 1px solid #1c2834;
    border-radius: 12px;
    padding: 0 15px 0 45px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
}

.search-input::placeholder {
    color: #657786;
}

.search-input:focus {
    border-color: #0052ff;
}

.assets-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    direction: ltr;
}

.asset-large-card {
    background-color: #111a22;
    border: 1px solid #1c2834;
    border-radius: 24px;
    padding: 20px;
    justify-content: center;
    align-items: stretsh;
    transition: 0.5s;
}

.asset-card-main {
    display: flex;
    justify-content: space-between;
}

.asset-info-left {
    display: flex;
    text-align: left;
    gap: 10px;
}

.asset-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #222222;
}

.asset-name-block {
    display: flex;
    flex-direction: column;
}

.asset-full-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 5px;
    line-height: 20px;
}

.asset-ticker {
    font-size: 0.7rem;
    font-weight: 700;
    color: #657786;
    margin-bottom: 5px;
    line-height: 20px;
    text-transform: uppercase;
}

.asset-price-right {
    display: flex;
    align-items: flex-end;
}

.asset-price-cap {
    display: flex;
    text-align: right;
    flex-direction: column;
}

.asset-price {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 5px;
    line-height: 20px;
}

.asset-cap {
    font-size: 0.7rem;
    font-weight: 700;
    color: #657786;
    margin-bottom: 5px;
    line-height: 20px;
    letter-spacing: 0.5px;
}

.asset-to-fav {
    width: 30px;
    height: 50px;
    padding: 10px 0px;
    margin-left: 10px;
}

.fav-icon {
    color: #30363d;
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
}

.asset-card-divider {
    height: 1px;
    background-color: rgba(28, 40, 52, 0.5);
    margin: 15px 0;
}

.asset-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #657786;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    align-items: center;
    gap: 4px;
}

.no-assets-card {
    flex-grow: 1;
    background-color: #111a22;
    border: 1px solid #1c2834;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.no-assets-card i {
    font-size: 2rem;
    color: #657786;
}

.no-assets-card span {
    font-size: 1rem;
    font-weight: 600;
    color: #657786;
}

.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet-content {
    width: 100%;
    max-height: 85vh;
    background: rgba(17, 26, 34, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(28, 40, 52, 0.8);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 20px 16px 30px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    direction: ltr;
}

.bottom-sheet-overlay.active .bottom-sheet-content {
    transform: translateY(0);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(28, 40, 52, 0.5);
}

.sheet-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #657786;
    letter-spacing: 1.5px;
}

.sheet-close-btn {
    background: transparent;
    border: none;
    color: #657786;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}

.sheet-options-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.sheet-option-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.sheet-option-item.active-sorting {
    background-color: rgba(0, 82, 255, 0.15);
    border: 1px solid rgba(0, 82, 255, 0.3);
}

.sheet-option-item.active-sorting .option-text {
    color: #0052ff;
}

.option-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.option-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.sheet-option-items-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(28, 40, 52, 0.5);
    margin: 5px 0;
}

.color-yellow { color: #ffb703; }
.color-gray { color: #657786; }
.color-blue { color: #0052ff; }
.color-green { color: #00e676; }
.color-red { color: #ff5252; }

.watchlist-page {
    width: 100vw;
    height: 100%;
    background: radial-gradient(circle at top, #0f1f2c 0%, #080d12 100%);
    color: #ffffff;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    overflow: scroll;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}

.watchlist-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(13, 21, 29, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #1c2834;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    display: flex;
    align-items: center;
    padding: 20px;
}

.watchlist-back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    margin-right: 10px;
    justify-content: center;
    align-items: center;
}

.watchlist-back-btn i {
    font-size: 1.2rem;
    color: #ffffff;
}

.watchlist-title-block {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.watchlist-title-block h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.watchlist-title-block span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #8b949e;
    margin-top: 2px;
}

.watchlist-content {
    position: absolute;
    padding: 100px 20px 20px 20px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow-y: scroll;
}

.watchlist-content .crypto-section {
    margin-bottom: 0;
}

.watchlist-loading-assets, .empty-fav-card, .watchlist-no-assets {
    flex-grow: 1;
    background-color: #111a22;
    border: 1px solid #1c2834;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.watchlist-loading-assets i, .empty-fav-card i, .watchlist-no-assets i {
    font-size: 5rem;
    color: #657786;
}

.watchlist-loading-assets h3, .empty-fav-card h3, .watchlist-no-assets h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #657786;
}

.empty-fav-card p {
    font-size: 0.8rem;
    font-weight: 600;
    color: #dddddd;
}

.empty-fav-card .discover-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #dddddd;
    border-radius: 25px;
    border: 1px solid #657786;
}
