* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Roboto';
    src: local('Roboto Regular'), local('Roboto');
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #e8f2fe;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    color: #333;
}

.app-container {
    width: 100%;
    max-width: 450px;
    min-height: 100vh;
    background: #e8f2fe;
    position: relative;
    box-shadow: 0px 4px 6px -1px #dedede, 0px 2px 4px -2px #dedede;
    overflow: hidden;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 16px;
    background: #e8f2fe;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.header-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tab Bar */
.tab-bar {
    display: flex;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    z-index: 100;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    text-decoration: none;
    color: #afafaf;
    font-size: 11px;
}

.tab-item.active {
    color: #66abf8;
}

.tab-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tab-item span {
    font-size: 11px;
    font-weight: 400;
}

/* Main content area (adds padding for fixed tab bar) */
.main-content {
    padding-bottom: 70px;
}

/* Page */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    border-radius: 5px;
    transition: opacity 0.2s;
}

.btn:active {
    opacity: 0.8;
}

.btn-primary {
    background: linear-gradient(to right, #7ab8ff, #4b9ffe);
    color: #fff;
}

.btn-blue {
    background: #66abf8;
    color: #fff;
}

/* Cards */
.card {
    background: #f8f9fe;
    border-radius: 8px;
}

/* Quote Card */
.quote-card {
    background: #f8f9fe;
    border-radius: 12px;
    padding: 0;
    position: relative;
    width: 100%;
    height: 108px;
    cursor: pointer;
}

.quote-card .coin-icon {
    position: absolute;
    left: 10px;
    top: 13px;
    width: 22px;
    height: 22px;
}

.quote-card .coin-row {
    position: absolute;
    left: 40px;
    top: 10px;
    display: flex;
    align-items: baseline;
    gap: 2px;
    max-width: calc(100% - 50px);
}

.quote-card .coin-name {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    line-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quote-card .coin-pair {
    font-size: 14px;
    color: #77a1d2;
    line-height: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.quote-card .coin-price {
    position: absolute;
    left: 10px;
    top: 58px;
    font-size: 13.9px;
    color: #333;
    line-height: 20px;
}

.quote-card .coin-usd {
    position: absolute;
    left: 10px;
    top: 82px;
    font-size: 12px;
    color: #77a1d2;
    line-height: 16px;
}

.quote-card .change-badge {
    position: absolute;
    right: 10px;
    top: 58px;
    width: 83.16px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.change-badge.negative {
    background: #66abf8;
}

.change-badge.positive {
    background: #7fcbc7;
}

.change-badge.zero {
    background: #7fcbc7;
}

.quote-card .divider {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 47.25px;
    height: 0.5px;
    background: #374151;
}

/* Scrollbar hidden */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
