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

/* Bank Item Styles */
.bank-list {
    font-size: 14px;
}

.bank-item {
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 8px;
}

.bank-item:hover {
    background: #3a3a3a;
    border-color: #555;
}

.section-header {
    font-size: 14px;
}

/* Bank form reminder sections */
.alert p, .alert strong {
    font-size: 12px !important;
}

.text-white.small {
    font-size: 12px !important;
}

body {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 50%, #1a1f3a 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

/* Add bottom padding for pages with navigation, but not login/register */
body:not(.login-page):not(.register-page) {
    padding-bottom: 80px;
}

/* Header */
.header-section {
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.search-icon {
    font-size: 20px;
    color: #8892b0;
    cursor: pointer;
}

/* Navigation Tabs */
.nav-tabs-section {
    background: rgba(26, 31, 58, 0.8);
    padding: 10px 0;
}

.custom-nav .nav-link {
    background: none;
    border: none;
    color: #8892b0;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.custom-nav .nav-link.active {
    color: #ffffff;
    background: none;
    border-bottom: 2px solid #00d4ff;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(255, 165, 0, 0.15));
    padding: 0;
    margin: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 50, 100, 0.8) 0%, 
        rgba(0, 100, 150, 0.6) 25%, 
        rgba(255, 165, 0, 0.4) 50%, 
        rgba(0, 212, 255, 0.6) 75%, 
        rgba(0, 50, 100, 0.8) 100%
    );
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.3) 1px, transparent 1px),
        linear-gradient(45deg, transparent 40%, rgba(0, 212, 255, 0.1) 41%, rgba(0, 212, 255, 0.1) 43%, transparent 44%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 165, 0, 0.1) 41%, rgba(255, 165, 0, 0.1) 43%, transparent 44%);
    background-size: 50px 50px, 30px 30px, 100px 100px, 100px 100px;
    opacity: 0.8;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 15px;
    height: 100%;
    min-height: 120px;
}

.banner-text {
    color: #ffffff;
    font-size: 13px;
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 10px;
    overflow: hidden;
}

.scrolling-text-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.scrolling-text {
    display: inline-block;
    animation: scroll-left 15s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.scrolling-text:hover {
    animation-play-state: paused;
}

/* Notice Bar Styles */
.notice-bar-section {
    padding: 10px 0;
    background: transparent;
}

.notice-bar {
    display: flex;
    align-items: center;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    color: #ffffff;
}

.notice-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.notice-img {
    width: 20px;
    height: 20px;
}

.notice-content {
    flex: 1;
    overflow: hidden;
    height: 30px;
    position: relative;
}

.notice-swiper {
    height: 90px;
    animation: notice-scroll 9s infinite;
    transition: transform 0.5s ease;
}

.notice-item {
    height: 30px;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    opacity: 0.8;
}

.notice-item.active {
    opacity: 1;
}

@keyframes notice-scroll {
    0%, 33% {
        transform: translateY(0);
    }
    33.33%, 66% {
        transform: translateY(-30px);
    }
    66.66%, 100% {
        transform: translateY(-60px);
    }
}

.notice-arrow {
    margin-left: 12px;
    flex-shrink: 0;
}

.arrow-img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.banner-menu {
    color: #ffffff;
    font-size: 18px;
}

/* Trading Functions */
.trading-functions {
    padding: 15px 0;
}

.function-card {
    background: transparent;
    border-radius: 0;
    padding: 20px 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    height: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.function-card:hover {
    transform: translateY(-2px);
}

.function-card:hover .function-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.function-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.exchange-icon {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.funds-icon {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.spot-icon {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.perpetual-icon {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.contract-icon {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.management-icon {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.pool-icon {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.pledge-icon {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.loan-icon {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.imgBox {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.imgBox img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.function-card:hover .imgBox {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

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

.list {
    background: transparent;
    border-radius: 0;
    padding: 20px 10px;
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.list:hover {
    transform: translateY(-2px);
}

.list:hover .imgBox {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.list .mt-15 {
    font-size: 15px;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    line-height: 1.3;
    margin-top: 10px;
    opacity: 0.9;
    word-break: break-word;
    hyphens: auto;
}

.function-label {
    font-size: 15px;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
    hyphens: auto;
    margin-top: 10px;
    opacity: 0.9;
}

/* Market Tabs */
.market-tabs {
    padding: 15px;
    background: rgba(26, 31, 58, 0.5);
}

.market-nav .nav-link {
    background: none;
    border: none;
    color: #8892b0;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.market-nav .nav-link.active {
    color: #ffffff;
    background: #00d4ff;
}

/* Trading Header */
.trading-header {
    padding: 10px 15px;
    background: rgba(26, 31, 58, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-label {
    font-size: 12px;
    color: #8892b0;
    font-weight: 500;
}

/* Trading Pairs */
.trading-pairs {
    background: rgba(26, 31, 58, 0.2);
}

.trading-pair-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
    cursor: pointer;
}

.trading-pair-item:hover {
    background: rgba(45, 53, 97, 0.3);
}

.coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.sol-icon {
    background: linear-gradient(135deg, #9945ff, #14f195);
    color: #ffffff;
}

.dot-icon {
    background: linear-gradient(135deg, #e6007a, #ff6b9d);
    color: #ffffff;
}

.xaut-icon {
    background: linear-gradient(135deg, #f4d03f, #f7dc6f);
    color: #2c3e50;
}

.xaut-icon {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000000;
}

.pair-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.pair-volume {
    font-size: 12px;
    color: #8892b0;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.price-usd {
    font-size: 12px;
    color: #8892b0;
}

.change-positive {
    background: #00c896;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.change-negative {
    background: #ff4757;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Bottom Navigation - Unified Style */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    z-index: 1000;
    height: 80px;
}

.bottom-nav .container-fluid {
    padding: 8px 0;
}

.bottom-nav .row {
    margin: 0;
}

.bottom-nav .col-2 {
    padding: 0;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    text-decoration: none;
    color: #8892b0;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item:hover {
    color: #007bff;
}

.bottom-nav .nav-item.active {
    color: #007bff;
}

.bottom-nav .nav-item.trade-active {
    color: #007bff;
}

.bottom-nav .nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 576px) {
    .header-section {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .hero-banner {
        margin: 10px;
        padding: 12px 0;
    }
    
    .banner-text {
        font-size: 12px;
    }
    
    .banner-text span {
        display: block;
        margin-top: 2px;
    }
    
    .function-card {
        padding: 8px 2px;
        min-height: 70px;
        border-radius: 6px;
    }
    
    .function-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .function-label {
        font-size: 9px;
        line-height: 1.0;
    }
    
    .market-nav .nav-link {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 4px;
    }
    
    .trading-header {
        padding: 8px 15px;
    }
    
    .header-label {
        font-size: 11px;
    }
    
    .pair-name {
        font-size: 14px;
    }
    
    .pair-volume {
        font-size: 11px;
    }
    
    .price {
        font-size: 14px;
    }
    
    .price-usd {
        font-size: 11px;
    }
    
    .change-positive {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .coin-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .bottom-nav .nav-item i {
        font-size: 18px;
    }
    
    .nav-label {
        font-size: 9px;
    }
}

@media (max-width: 375px) {
    .function-card {
        padding: 6px 1px;
        min-height: 65px;
    }
    
    .function-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
    
    .function-label {
        font-size: 8px;
    }
    
    .banner-text {
        font-size: 11px;
    }
    
    .pair-name {
        font-size: 13px;
    }
    
    .price {
        font-size: 13px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 31, 58, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
}

/* Animation for loading effect */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.trading-pair-item:hover .coin-icon {
    animation: pulse 2s infinite;
}

/* Index.html Specific Styles */
/* Forex View Styles */
.hollway-banner {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Perpetual Page Styles */
.trading-header {
    background: #131a2e;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.back-btn {
    background: none;
    border: none;
    color: #8892b0;
    font-size: 18px;
    cursor: pointer;
}

.trading-pair-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pair-symbol {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

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

.icon-btn {
    background: none;
    border: none;
    color: #8892b0;
    font-size: 16px;
    cursor: pointer;
}

.contract-tabs {
    background: #131a2e;
    padding: 16px;
    display: flex;
    gap: 16px;
}

.tab-btn {
    background: #00c896;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.tab-btn.inactive {
    background: transparent;
    color: #8892b0;
}

.pair-type {
    background: #00c896;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.price-change {
    color: #ff4757;
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
}

.trading-tabs {
    background: rgba(26, 31, 58, 0.8);
    padding: 12px 16px;
}

.trading-tab {
    background: #00c896;
    color: #ffffff;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
}

.trading-tab.inactive {
    background: rgba(255, 255, 255, 0.1);
    color: #8892b0;
}

.trading-form {
    background: rgba(26, 31, 58, 0.6);
    padding: 16px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.form-label {
    color: #8892b0;
    font-size: 14px;
    min-width: 60px;
}

.form-select, .form-input {
    background: rgba(45, 53, 97, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

.form-select:focus, .form-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    background: rgba(45, 53, 97, 0.9);
    color: #ffffff;
}

.trading-buttons {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.btn-buy-long {
    background: #00c896;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    flex: 1;
}

.btn-buy-short {
    background: rgba(255, 255, 255, 0.1);
    color: #8892b0;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    flex: 1;
}

.order-input-section {
    background: rgba(45, 53, 97, 0.6);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.input-label {
    color: #ffffff;
    font-size: 14px;
    min-width: 80px;
}

.price-input {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    flex: 1;
    text-align: right;
}

.currency-label {
    color: #8892b0;
    font-size: 12px;
}

.total-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.percentage-buttons {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.percentage-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #8892b0;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.volume-slider {
    width: 100%;
    margin: 16px 0;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00c896;
    cursor: pointer;
}

.volume-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8892b0;
    margin-top: 8px;
}

.volume-info {
    color: #8892b0;
    font-size: 12px;
    margin: 8px 0;
}

.order-book {
    background: rgba(26, 31, 58, 0.6);
    margin-top: 16px;
}

.order-book-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-book-title {
    color: #8892b0;
    font-size: 12px;
}

.order-book-content {
    padding: 0;
}

.order-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 16px;
    font-size: 12px;
}

.price-sell {
    color: #ff4757;
    font-weight: 500;
}

.price-buy {
    color: #00c896;
    font-weight: 500;
}

.quantity {
    color: #ffffff;
}

.current-price {
    color: #ff4757;
    padding: 10px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.login-section {
    margin-top: 80px;
}

.login-text {
    color: #8892b0;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.btn-login {
    background: rgba(136, 146, 176, 0.2);
    color: #8892b0;
    border: 1px solid rgba(136, 146, 176, 0.3);
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: rgba(136, 146, 176, 0.3);
}

.position-tabs {
    background: rgba(26, 31, 58, 0.8);
    padding: 12px 16px;
    display: flex;
    gap: 16px;
}

.position-tab {
    background: #3498db;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.position-tab.inactive {
    background: rgba(255, 255, 255, 0.1);
    color: #8892b0;
}

.bottom-nav .nav-item.trade-active {
    color: #007bff;
}

.main-content {
    display: flex;
    flex-direction: row;
    gap: 0;
    background: transparent;
    width: 100%;
    min-height: 400px;
}

.left-panel {
    flex: 0 0 50%;
    width: 50%;
    padding: 5px;
    box-sizing: border-box;
}

.right-panel {
    flex: 0 0 50%;
    width: 50%;
    padding: 16px;
    box-sizing: border-box;
}

/* Ensure side-by-side layout on all screen sizes */
@media (max-width: 768px) {
    .main-content {
        flex-direction: row;
    }
    .left-panel, .right-panel {
        flex: 0 0 50%;
        width: 50%;
    }
}

.trading-form {
    background: transparent;
    margin: 0;
    padding: 0;
}

.order-book {
    background: transparent;
    margin: 0;
    padding: 0;
}

.delivery-time-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-row {
    display: flex;
}

.delivery-option {
    flex: 1;
    height: 48px;
    color: #a0aec0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-option.delivery-profit-option {
    background: #1B2134;
    border: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: space-between;
    padding: 0 12px;
    text-align: left;
}

.delivery-option.delivery-profit-option .delivery-option-time {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.delivery-option.delivery-profit-option .delivery-option-profit {
    font-size: 12px;
    font-weight: 700;
    color: #00d4aa;
}

.delivery-option:hover {
    background: #5a6578;
}

.delivery-option.active {
    color: white;
    font-weight: 600;
}

.delivery-option.delivery-profit-option:hover {
    background: #222a44;
    border-color: rgba(255, 255, 255, 0.14);
}

.delivery-option.delivery-profit-option.active {
    background: rgba(0, 212, 170, 0.12);
    border-color: rgba(0, 212, 170, 0.8);
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.16);
    transform: translateY(-1px);
}

.trade-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    padding: 0;
}

.trade-modal-overlay.active {
    display: flex;
}

.trade-modal-sheet {
    width: 100%;
    max-width: none;
    height: 80vh;
    background: rgba(26, 31, 58, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    transform: translateY(110%);
    transition: transform 220ms ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.trade-modal-sheet.open {
    transform: translateY(0);
}

.trade-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trade-modal-symbol {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.trade-modal-price {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 700;
    color: #00d4aa;
}

.trade-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.trade-modal-body {
    padding: 14px;
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.trade-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
}

.trade-modal-label {
    color: #8892b0;
    font-size: 12px;
    font-weight: 600;
}

.trade-modal-value {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
}

.trade-modal-badge {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: rgba(0, 212, 170, 0.14);
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.55);
}

.trade-modal-badge.short {
    background: rgba(255, 107, 107, 0.14);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.55);
}

.trade-modal-section {
    margin-bottom: 12px;
}

.trade-modal-section-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 700;
    margin: 2px 2px 10px;
}

.trade-modal-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.trade-modal-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #1B2134;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trade-modal-time span:last-child {
    color: #00d4aa;
    font-weight: 800;
}

.trade-modal-time:hover {
    background: #222a44;
    border-color: rgba(255, 255, 255, 0.16);
}

.trade-modal-time.active {
    background: rgba(0, 212, 170, 0.12);
    border-color: rgba(0, 212, 170, 0.8);
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.16);
    transform: translateY(-1px);
}

.trade-modal-amount {
    width: 170px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    outline: none;
    text-align: right;
}

.trade-modal-confirm {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    background: #00d4aa;
    color: #ffffff;
    transition: all 0.2s ease;
    margin-top: auto;
}

.trade-modal-confirm.short {
    background: #ff6b6b;
}

.trade-modal-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

/* Profile Page Styles */
body {
    background: #1a1a2e;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.profile-container {
    max-width: 400px;
    margin: 0 auto;
    background: #1a1a2e;
    min-height: 100vh;
    position: relative;
}

.profile-header {
    padding: 20px;
    text-align: center;
    position: relative;
}

.welcome-section {
    padding: 30px 20px;
    text-align: center;
    margin: 20px;
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

.headphones-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #8892b0;
    font-size: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4c5fd7, #5a6eeb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-id {
    color: #8892b0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-icon {
    color: #8892b0;
    cursor: pointer;
}

.quick-entry {
    padding: 0 20px 20px;
}

.quick-entry-title {
    color: #8892b0;
    font-size: 14px;
    margin-bottom: 15px;
}

.quick-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.quick-option {
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-option:hover {
    transform: translateY(-2px);
}

.quick-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 16px;
}

.safe-icon {
    background: linear-gradient(135deg, #4c5fd7, #5a6eeb);
    color: white;
}

.password-icon {
    background: linear-gradient(135deg, #4c5fd7, #5a6eeb);
    color: white;
}

.record-profile-icon {
    background: linear-gradient(135deg, #4c5fd7, #5a6eeb);
    color: white;
}

.auth-icon {
    background: linear-gradient(135deg, #4c5fd7, #5a6eeb);
    color: white;
}

.quick-option-text {
    font-size: 12px;
    color: #ffffff;
    line-height: 1.2;
}

.action-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.auth-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.action-card {
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(237, 237, 237, 0.2);
}

.action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(76, 95, 215, 0.4);
}

.action-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4c5fd7, #5a6eeb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: white;
    font-size: 16px;
}

.action-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.action-card-subtitle {
    font-size: 12px;
    color: #8892b0;
}

.general-section {
    padding: 0 20px;
}

.section-title {
    color: #8892b0;
    font-size: 14px;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: rgba(76, 95, 215, 0.1);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: #8892b0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-text {
    flex: 1;
    font-size: 12px;
    color: #ffffff;
}

.menu-status {
    font-size: 12px;
    color: #00c896;
    margin-right: 10px;
}

.menu-arrow {
    color: #8892b0;
    font-size: 14px;
}

.exit-button {
    background: linear-gradient(135deg, #4c5fd7, #5a6eeb);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 15px;
    width: 100%;
    margin: 30px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 95, 215, 0.3);
}



/* Quote Page Styles */
.main-container {
    min-height: 100vh;
    background: #0f1419;
}

.header {
    background: #1a1f3a;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.header .back-btn {
    position: absolute;
    left: 16px;
}

.header-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

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

.back-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}

.refresh-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.pair-symbol {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

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

.icon-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}

.contract-tabs {
    background: #1a1f3a;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.contract-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #8892b0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.contract-tab.active {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.price-section {
    background: #1a1f3a;
    padding: 20px 16px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.price-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.main-price {
    font-size: 36px;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
}

.price-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ffffff;
}

.price-change-value {
    color: #007bff;
    font-weight: 500;
}

.mark-price {
    font-size: 12px;
    color: #8892b0;
    margin-top: 4px;
}

.price-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-content: start;
    font-size: 11px;
}

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

.stat-label {
    color: #8892b0;
    font-size: 11px;
}

.stat-value {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
}

.chart-section {
    padding-bottom: 85px;
    background: #1a1f3a;
    margin-top: 1px;
    height: 450px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.chart-timeframes {
    display: flex;
    gap: 4px;
}

.timeframe-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #8892b0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeframe-btn.active {
    background: #007bff;
    color: #ffffff;
}

.chart-canvas {
    width: 100%;
    height: calc(100% - 50px);
    background: #1a1f3a;
    position: relative;
}

#kline-chart {
    width: 100%;
    height: 100%;
}

.chart-indicators {
    position: absolute;
    top: 50px;
    left: 16px;
    display: flex;
    gap: 16px;
    z-index: 10;
    font-size: 12px;
}

.indicator-item {
    color: #8892b0;
}

.indicator-item.ma5 { color: #ffd700; }
.indicator-item.ma10 { color: #ff6b6b; }
.indicator-item.ma20 { color: #4ecdc4; }
.indicator-item.ma30 { color: #45b7d1; }
.indicator-item.ma60 { color: #f093fb; }

.volume-indicators {
    position: absolute;
    bottom: 80px;
    left: 16px;
    display: flex;
    gap: 16px;
    z-index: 10;
    font-size: 12px;
}

.technical-indicators {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 16px;
    z-index: 10;
}

.tech-indicator {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #8892b0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-indicator.active {
    background: #007bff;
    color: #ffffff;
}

/* Volume Chart Section */
.volume-chart-section {
    background: #1a1f3a;
    margin-top: 1px;
    height: 200px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
}

.volume-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.volume-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.volume-timeframes {
    display: flex;
    gap: 4px;
}

.vol-timeframe-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #8892b0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vol-timeframe-btn.active {
    background: #007bff;
    color: #ffffff;
}

.vol-timeframe-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.volume-chart-container {
    width: 100%;
    height: calc(100% - 50px);
    background: #1a1f3a;
    position: relative;
}

#volume-chart {
    width: 100%;
    height: 100%;
}

.bottom-section {
    background: #1a1f3a;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    margin-bottom: 80px;
}

.bottom-tabs {
    display: flex;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-tab {
    background: none;
    border: none;
    color: #8892b0;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.bottom-tab.active {
    color: #ffffff;
    border-bottom-color: #007bff;
}

.bottom-content {
    flex: 1;
    padding: 10px;
}

.order-book {
    height: auto;
}

.order-book-content {
    display: flex;
    flex-direction: column;
}

.order-list {
    margin-bottom: 5px;
}

.order-headers {
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    padding: 8px 0px;
    margin-bottom: 0;
}

.order-header {
    color: #8892b0;
    font-size: 11px;
    font-weight: 500;
}

.order-list {
    height: auto;
}

.deal-table {
    width: 100%;
    color: #fff;
}

.deal-headers {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1fr;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #888;
}

.deal-header {
    text-align: left;
}

.deal-list {
    height: auto;
}

.deal-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1fr;
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    align-items: center;
}

.deal-time {
    color: #888;
}

.deal-direction.buy {
    color: #007bff;
}

.deal-direction.sell {
    color: #ff6b6b;
}

.deal-price {
    color: #fff;
    font-weight: 500;
}

.deal-quantity {
    color: #888;
}

.depth-chart {
    width: 100%;
    height: 300px;
    background: #1a1a1a;
    position: relative;
}

.depth-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    font-size: 12px;
    color: #fff;
}

.legend-item.buy {
    color: #ff6b6b;
}

.legend-item.sell {
    color: #007bff;
}

#depth-chart-container {
    width: 100%;
    height: 250px;
    position: relative;
}

.tab-content {
    width: 100%;
    height: 100%;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 11px;
    line-height: 1.4;
}

.order-price {
    color: #ffffff;
    font-weight: 500;
}

.buy-price {
    color: #007bff !important;
}

.sell-price {
    color: #ff6b6b !important;
}

.order-quantity {
    color: #8892b0;
    font-size: 11px;
}

/* Last Price Display */
.last-price-display {
    text-align: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.last-price-label {
    font-size: 12px;
    color: #8892b0;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.last-price-value {
    font-size: 20px;
    font-weight: 600;
    color: #64ffda;
    margin-bottom: 3px;
}

.last-price-usd {
    font-size: 12px;
    color: #8892b0;
    opacity: 0.8;
}

/* Safe Page Styles */
.safe-header {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    background: #1a2332;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.safe-header .back-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 8px;
    margin-right: 16px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.safe-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.safe-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.safe-content {
    padding: 24px 16px;
    background: #131a2e;
    min-height: calc(100vh - 160px);
}

.security-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: #8892b0;
    margin: 0;
}

.security-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.security-option:last-child {
    border-bottom: none;
}

.security-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.option-text {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}

.option-arrow {
    color: #8892b0;
    font-size: 14px;
}

/* Change Password Page Styles */
.change-password-header {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    background: #1a2332;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.change-password-header .back-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 8px;
    margin-right: 16px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.change-password-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.change-password-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.change-password-content {
    padding: 24px 16px;
    background: #131a2e;
    min-height: calc(100vh - 80px);
}

.password-field {
    margin-bottom: 24px;
}

.password-label {
    display: block;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 500;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #1a2332;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.password-input::placeholder {
    color: #8892b0;
}

.password-toggle,
.password-hide {
    background: none;
    border: none;
    color: #8892b0;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
}

.password-toggle:hover,
.password-hide:hover {
    color: #ffffff;
}

.password-hint {
    font-size: 12px;
    color: #8892b0;
    margin-top: 8px;
    margin-bottom: 0;
}

.submit-btn {
    width: 100%;
    background: #007bff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 32px;
}

.submit-btn:hover {
    background: #0056b3;
}

.submit-btn:active {
    background: #004085;
}

.current-price {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid #007bff;
    border-radius: 4px;
    padding: 8px;
    margin: 8px 0;
    text-align: center;
    color: #007bff;
    font-weight: 600;
}

.timeframe-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.current-price-indicator {
    color: #007bff;
    font-weight: bold;
    margin-left: auto;
}

.vol-item {
    color: #888;
}

.vol-item.ma5 {
    color: #ff9800;
}

.vol-item.ma10 {
    color: #2196f3;
}

.vol-item.ma20 {
    color: #9c27b0;
}

.vol-item.volume {
    color: #007bff;
}

.buy-sell-buttons {
    position: fixed;
    bottom: 75px;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    background: #1a1f3a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.btn-buy-long {
    background: #00c896;
    color: #ffffff;
    border: none;
    padding: 8px;
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    cursor: pointer;
    position: relative;
    border-radius: 6px 6px 0 0 ;
}

.btn-sell-short {
    background: #ff4757;
    color: #ffffff;
    border: none;
    padding: 8px;
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    cursor: pointer;
    position: relative;
    border-radius: 6px 6px 0 0 ;
}



/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.login-container {
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #8892b0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #fff;
}

.login-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}



.forgot-password {
    color: #00d4ff;
    text-decoration: none;
    font-size: 14px;
    display: block;
    text-align: right;
    margin-top: 10px;
}

.forgot-password:hover {
    color: #00b8e6;
}

.login-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #8892b0;
}

.register-link a {
    color: #00d4ff;
    text-decoration: none;
}

.register-link a:hover {
    color: #00b8e6;
}

/* Register Page Styles */
.register-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}
        
.register-container {
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 69px 20px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    position: relative;
}

.step {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.step.active {
    background: linear-gradient(135deg, #00d4ff 0%, #0ea5e9 100%);
    color: #fff;
    border-color: #00d4ff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

.step.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    min-width: 90px;
}

.step-line {
    position: absolute;
    top: 22px;
    left: 77%;
    width: calc(100% - 44px);
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-container:not(:last-child) .step-line {
    display: block;
}

.step-container:last-child .step-line {
    display: none;
}

.step-line.completed {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.step-label {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-top: 12px;
    white-space: nowrap;
    max-width: 90px;
    line-height: 1.3;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step-container .step.active + .step-label {
    color: #00d4ff;
    font-weight: 600;
}

.step-container .step.completed + .step-label {
    color: #10b981;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .progress-steps {
        max-width: 100%;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .step {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .step-container {
        min-width: 70px;
    }
    
    .step-line {
        top: 18px;
        width: calc(100% - 36px);
    }
    
    .step-label {
        font-size: 11px;
        max-width: 70px;
        margin-top: 8px;
    }
}

.register-title {
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Shared Form Styles for Login and Register Pages */
.login-page .tab-buttons,
.register-page .tab-buttons {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
}

.login-page .tab-btn,
.register-page .tab-btn {
    flex: 1;
    padding: 4px;
    background: none;
    border: none;
    color: #8892b0;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-page .tab-btn {
    font-size: 12px;
}

.login-page .tab-btn.active,
.register-page .tab-btn.active {
    background: #00d4ff;
    color: #fff;
}

.login-page .form-group,
.register-page .form-group {
    margin-bottom: 20px;
}

.login-page .form-label,
.register-page .form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.login-page .form-input,
.register-page .form-input {
    width: 100%;
    padding: 7px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-page .form-input:focus,
.register-page .form-input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.08);
}

.login-page .form-input::placeholder,
.register-page .form-input::placeholder {
    color: #8892b0;
}

.login-page .password-container,
.register-page .password-container {
    position: relative;
}

.login-page .password-toggle,
.register-page .password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8892b0;
    cursor: pointer;
    font-size: 18px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-container label {
    color: #8892b0;
    font-size: 14px;
    margin: 0;
}

.checkbox-container a {
    color: #00d4ff;
    text-decoration: none;
}

.checkbox-container a:hover {
    color: #00b8e6;
}

.register-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.register-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #8892b0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-link {
    text-align: center;
    font-size: 14px;
    margin: 15px 0 5px;
}


/* Ensure checkbox is completely separate */
.checkbox-container {
    position: relative;
    z-index: 100;
    clear: both;
    background: transparent;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.captcha-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.captcha-refresh {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
    z-index: 5;
}

.captcha-refresh:hover {
    background: #fff;
    color: #333;
    transform: rotate(180deg);
}

.captcha-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    user-select: none;
    -webkit-user-drag: none;
}

.captcha-missing-piece {
    position: absolute;
    top: 50px;
    right: 60px;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
}

.captcha-puzzle-piece {
    position: absolute;
    top: 50px;
    left: 20px;
    width: 42px;
    height: 42px;
    background: url('img/captcha-bg.svg') no-repeat;
    background-size: 280px 150px;
    background-position: -20px -50px;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    cursor: grab;
    transition: all 0.3s ease;
    z-index: 5;
}

.captcha-puzzle-piece:active {
    cursor: grabbing;
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #e8e8e8, #f5f5f5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 5px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 20px;
    transition: width 0.2s ease;
    z-index: 1;
}

.slider-button {
    width: 40px;
    height: 30px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.slider-button.dragging {
    cursor: grabbing;
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.slider-button.success {
    animation: success-pulse 0.6s ease-in-out;
}

@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.slider-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #888;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.verification-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.captcha-success {
    background: rgba(39, 174, 96, 0.2);
    border-color: #27ae60;
}

.captcha-success .slider-button {
    background: linear-gradient(45deg, #27ae60 0%, #2ecc71 100%);
}

.captcha-success .slider-text {
    color: #27ae60;
}

.login-link {
    color: #8892b0;
}

.login-link a {
    color: #00d4ff;
    text-decoration: none;
}

.login-link a:hover {
    color: #00b8e6;
}

.password-strength {
    margin-top: 5px;
    font-size: 12px;
}

.strength-weak { color: #ff4757; }
.strength-medium { color: #ffa502; }
.strength-strong { color: #2ed573; }

.hollway-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.main-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.sub-text {
    font-size: 12px;
    color: #666;
}

.banner-graphic {
    width: 80px;
    height: 60px;
    position: relative;
}

.graphic-element {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2196f3, #64b5f6);
    border-radius: 8px;
    position: relative;
}

.graphic-element::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
}

.forex-notice-bar {
    padding: 12px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forex-trading-functions {
    margin-bottom: 30px;
}

.forex-hots {
    border-radius: 12px;
    padding: 20px 0;
    margin-bottom: 20px;
}

.hots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hots-header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.more-link {
    color: #4a90e2;
    font-size: 14px;
    text-decoration: none;
}

.hots-container {
    width: 100%;
}

.forex-pair-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.forex-pair-card .pair-name {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}

.forex-pair-card .pair-price {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.forex-pair-card .pair-chart {
    margin-bottom: 10px;
    height: 40px;
}

.forex-pair-card .pair-change {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forex-pair-card .change-value {
    color: #ff4757;
    font-weight: bold;
    font-size: 12px;
}

.forex-pair-card .change-percent {
    color: #ff4757;
    font-size: 12px;
}

.forex-market {
    margin-bottom: 20px;
}

.market-header h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 15px 0;
}

.market-tab {
    background: none;
    border: none;
    color: #888;
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.market-tab.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

.market-pairs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-pair {
    background: #1a1a2e;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pair-left {
    flex: 1;
}

.pair-left .pair-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}

.pair-time {
    color: #888;
    font-size: 12px;
}

.pair-center {
    flex: 1;
    text-align: center;
}

.pair-high, .pair-low {
    color: #888;
    font-size: 12px;
    margin-bottom: 2px;
}

.pair-right {
    flex: 1;
    text-align: right;
}

.pair-right .pair-price {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 2px;
}

.pair-right .pair-change {
    color: #ff6b6b;
    font-size: 12px;
}

/* Crypto Price Change Styles */
.change-negative {
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.change-neutral {
    background: #747d8c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Cryptocurrency Icon Styles */
.coin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.coin-icon img {
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 2px;
}

/* Record Page Styles */
.tab-navigation {
    display: flex;
    background: #1a1a2e;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #8e8e93;
    padding: 10px 6px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-btn.active {
    background: #2d2d44;
    color: white;
}

.tab-content {
    padding: 0 16px;
    padding-bottom: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.record-item {
    display: flex;
    align-items: flex-start;
    background: #1a1a2e;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    gap: 10px;
}

.record-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.record-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.record-details {
    flex: 1;
    min-width: 0;
}

.record-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.record-subtitle {
    color: #8e8e93;
    font-size: 12px;
    margin-bottom: 3px;
}

.record-order {
    color: #666;
    font-size: 10px;
    line-height: 1.3;
    word-break: break-all;
}

.record-amount {
    flex-shrink: 0;
    font-size: 13px;
    text-align: right;
    margin-left: 8px;
    align-self: flex-start;
}

.record-amount.positive {
    color: #4CAF50;
}

.record-amount.negative {
    color: #F44336;
}

/* Authentication Page Styles */
.auth-content {
    padding: 20px 16px;
    padding-bottom: 100px;
    background: #0f0f23;
    min-height: 100vh;
    color: white;
    font-size: 14px;
}

.personal-center-section {
    margin-bottom: 32px;
}

.personal-center-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.personal-center-title {
    color: white;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

.country-flag {
    width: 40px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #333;
}

.country-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.view-features-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2a2a3e;
    border-radius: 20px;
    padding: 10px 16px;
    color: #8e8e93;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.view-features-btn:hover {
    background: #3a3a4e;
}

.view-features-btn i {
    color: #007AFF;
    font-size: 16px;
}

.certification-options {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.cert-option {
    flex: 1;
    background: #2a2a3e;
    border-radius: 24px;
    padding: 6px 18px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-option.primary-cert.active {
    background: #007AFF;
}

.cert-option.advanced-cert {
    background: #2a2a3e;
}

.cert-option.advanced-cert.active {
    background: #007AFF;
}

.cert-check {
    font-size: 14px;
    color: white;
}

.cert-text {
    flex: 1;
    color: white;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

.verified-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4CAF50;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.verified-badge i {
    font-size: 12px;
}

.requirements-section {
    margin-bottom: 40px;
    position: relative;
}

.verified-badge-requirements {
    position: absolute;
    top: -8px;
    right: 0;
    background: #4CAF50;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    z-index: 10;
}

.verified-badge-requirements i {
    font-size: 12px;
}

/* Features Dialog Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.dialog-overlay.show {
    opacity: 1;
}

.features-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2A2D47;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
}

.features-dialog.show {
    transform: translateY(0);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #3A3D5A;
}

.dialog-header h3 {
    color: white;
    font-size: 14px;
    margin: 0;
}

.dialog-close {
    background: none;
    border: none;
    color: #8E92BC;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.dialog-close:hover {
    color: white;
}

.dialog-content {
    padding: 0 12px;
}

.features-dialog .feature-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #3A3D5A;
}

.features-dialog .feature-item:last-child {
    border-bottom: none;
}

.features-dialog .feature-icon {
    width: 40px;
    height: 40px;
    background: #3A3D5A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.features-dialog .feature-icon i {
    color: #8E92BC;
    font-size: 16px;
}

.features-dialog .feature-info {
    flex: 1;
}

.features-dialog .feature-title {
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.features-dialog .feature-subtitle {
    color: #8E92BC;
    font-weight: 400;
}

.features-dialog .feature-description {
    color: #8E92BC;
    font-size: 12px;
    margin-bottom: 4px;
}

.features-dialog .feature-action {
    color: #007AFF;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.features-dialog .feature-action:hover {
    color: #0056CC;
}

/* Language Page Styles */
.language-container {
    background: #2A2D47;
    min-height: 100vh;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.language-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #3A3D5A;
    position: relative;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.language-list {
    padding: 0;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #3A3D5A;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.language-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.language-item.active {
    background: rgba(0, 122, 255, 0.1);
}

.language-flag {
    font-size: 20px;
    margin-right: 16px;
    width: 24px;
    text-align: center;
}

.language-name {
    font-size: 12px;
    font-weight: 400;
    flex: 1;
    color: white;
}

.language-check {
    color: #007AFF;
    font-size: 16px;
    margin-left: auto;
}

.language-item:last-child {
    border-bottom: none;
}

.dialog-footer {
    padding: 20px 24px 24px;
}

.confirm-btn {
    width: 100%;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.confirm-btn:hover {
    background: #0056CC;
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    color: #8e8e93;
    font-size: 14px;
    width: 24px;
}

.requirement-text {
    color: white;
    font-size: 12px;
}

.features-section {
    margin-bottom: 40px;
}


.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-check {
    color: #4CAF50;
    font-size: 14px;
}

.feature-name {
    color: white;
    font-size: 12px;
}

.feature-limits {
    padding-left: 0;
}

.limit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.limit-label {
    color: #999;
    font-size: 12px;
}

.limit-value {
    color: white;
    font-size: 12px;
}

.review-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8e8e93;
    padding: 12px 0;
    font-size: 14px;
}

.review-icon {
    font-size: 14px;
}

.review-text {
    font-size: 12px;
}

.certification-details-btn {
    margin-top: 20px;
    padding: 0 20px;
}

.cert-details-button {
    width: 100%;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 24px;
    padding: 11px 24px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cert-details-button:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

.cert-details-button:active {
    transform: translateY(0);
}

/* About Page Styles */
.about-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.about-page body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.about-page .header {
    background-color: #16213e;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.about-page .back-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
}

.about-page .header-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    text-align: center;
    margin-right: 40px;
}

.about-page .content {
    padding: 20px;
    max-width: 100%;
}

.about-page .content p {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.about-page .content strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-page .content {
        padding: 15px;
    }
    
    .about-page .content p {
        font-size: 13px;
    }
}


#captcha {
    margin-bottom: 50px !important;
}
