/* ==========================
   COIN DETAIL PAGE STYLES
   ========================== */

#coin-detail-page {
    padding-bottom: 0;
}

/* Coin Sticky Header */
.coin-sticky-header {
    position: sticky;
    top: 0;
    background: #1A1D29;
    z-index: 100;
}

/* Header Logo Container */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.header-logo {
    width: 40px;
    height: 40px;
    background: #242938;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #2A2F3F;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-logo-container h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* Coin Balance Container */
.coin-balance-container {
    background: #1A1D29;
}

.coin-balance-section {
    position: sticky;
    top: 0;
    padding: 24px 20px;
    text-align: center;
    background: #242938;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 90;
    border-radius: 0 0 20px 20px;
    margin: 0 10px;
}

.balance-crypto-large {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.balance-usd-large {
    font-size: 20px;
    color: #9CA3B8;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Balance Stats with Colors */
.balance-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 16px;
    background: #2A2F3F;
    border-radius: 14px;
    margin-top: 16px;
    margin-bottom: 8px;
    border: 1px solid #343A4D;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-label {
    font-size: 11px;
    color: #6B7088;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: -0.3px;
}

.stat-value.price-value {
    color: #FF7F50;
    font-size: 15px;
}

.stat-value.positive {
    color: #22C55E;
}

.stat-value.negative {
    color: #EF4444;
}

.stat-value.neutral {
    color: #6B7088;
}

.change-icon {
    width: 12px;
    height: 12px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, #343A4D, transparent);
}

/* Coin Scrollable Content */
.coin-scrollable-content {
    background: #1A1D29;
    padding: 5px 0 100px 0;
}

.coin-scrollable-content .section-title {
    font-size: 13px;
    font-weight: 700;
    color: #6B7088;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}

.coin-scrollable-content .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    gap: 8px;
    text-align: center;
}

.coin-scrollable-content.empty {
    padding-bottom: 5px;
    padding-top: 5px;
    min-height: auto;
}

/* Coin Fixed Bottom Actions */
.coin-actions-bottom {
    position: fixed;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 100%;
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(26, 29, 41, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid #2A2F3F;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
    z-index: 99;
}

.phantom-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.phantom-btn .btn-icon {
    width: 20px;
    height: 20px;
}

.phantom-btn.primary {
    background: linear-gradient(135deg, #FF7F50 0%, #FF9F70 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 127, 80, 0.3);
}

.phantom-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
    transform: translateY(-2px);
}

.phantom-btn.secondary {
    background: #242938;
    color: #fff;
    border: 1px solid #2A2F3F;
}

.phantom-btn.secondary:hover {
    background: #2A2F3F;
    border-color: #343A4D;
}

/* ==========================
   SELECT COIN PAGE
   ========================== */

#select-coin-page {
    padding-bottom: 30px;
}

.select-coin-list {
    padding: 20px;
}

.select-coin-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #242938;
    border: 1px solid #2A2F3F;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.select-coin-item:hover {
    background: #2A2F3F;
    border-color: #343A4D;
}

.select-coin-item:active {
    transform: scale(0.98);
}

.select-coin-item .coin-logo {
    width: 48px;
    height: 48px;
    background: #2A2F3F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 14px;
}

.select-coin-item .coin-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.select-coin-item .coin-info {
    flex: 1;
}

.select-coin-item .coin-name {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.select-coin-item .coin-symbol {
    font-size: 14px;
    font-weight: 500;
    color: #9CA3B8;
}

.select-coin-item .select-arrow {
    width: 20px;
    height: 20px;
    color: #6B7088;
    flex-shrink: 0;
}

/* ==========================
   MANAGE ASSETS PAGE
   ========================== */

.search-section {
    padding: 0 20px 16px 20px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #6B7088;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 44px 14px 48px;
    background: #242938;
    border: 2px solid #2A2F3F;
    border-radius: 12px;
    font-size: 15px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.search-input::placeholder {
    color: #6B7088;
}

.search-input:focus {
    border-color: #FF7F50;
}

.search-clear {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2A2F3F;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.search-clear svg {
    width: 14px;
    height: 14px;
    color: #9CA3B8;
}

.search-clear:hover {
    background: #343A4D;
}

.search-clear:active {
    transform: scale(0.9);
}

.manage-assets-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.manage-asset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #242938;
    border-radius: 14px;
    transition: background 0.2s;
}

.manage-asset-item:hover {
    background: #2A2F3F;
}

.manage-asset-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.manage-asset-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #1A1D29;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manage-asset-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manage-asset-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.manage-asset-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.manage-asset-symbol {
    font-size: 13px;
    color: #6B7088;
}

.manage-asset-fullname {
    font-size: 14px;
    font-weight: 400;
    color: #9CA3B8;
    margin-top: 4px;
}
