:root {
    --background-dark: #121212;
    --text-primary: #ffffff;
    --accent-green: #02C076;
    --accent-yellow: #DFAB29;
    --accent-red: #F84960;
    --card-background: #1E1E1E;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    max-width: 480px;
    margin: 0 auto;
}

.app-container {
    padding-bottom: 80px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.balance-section {
    text-align: center;
    padding: 20px;
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

.balance-change {
    font-size: 16px;
}

.text-green {
    color: var(--accent-yellow);
}

.quick-actions {
    padding: 20px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.action-buttons button {
    background-color: var(--card-background);
    border: none;
    color: var(--text-primary);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.crypto-markets, .portfolio {
    background-color: var(--card-background);
    margin: 20px;
    border-radius: 15px;
    padding: 20px;
}

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

.see-all {
    color: var(--accent-yellow);
    text-decoration: none;
}

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    width: calc(100% - 40px);
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    background-color: rgba(30, 30, 30, 0.7); 
    justify-content: space-around;
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(10px); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.bottom-nav .nav-item {
    background: none;
    border: none;
    color: var(--text-primary);
    opacity: 0.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    width: 60px;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
    transition: background-color 0.3s, opacity 0.3s;
}

.bottom-nav .nav-item:hover {
    background-color: rgba(255,255,255,0.1);
}

.bottom-nav .nav-item.active {
    opacity: 1;
    color: var(--accent-yellow);
    background-color: rgba(2, 192, 118, 0.2); 
}

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

.bottom-nav .nav-item span {
    font-size: 10px;
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.market-item {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 10px;
}

.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.crypto-details {
    flex-grow: 1;
}

.crypto-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.crypto-details p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.crypto-price {
    text-align: right;
}

.crypto-price p {
    margin-bottom: 5px;
}

.price-change {
    font-size: 12px;
}

.text-red {
    color: var(--accent-red);
}

/* Profile Page Styles */
.profile-header {
    text-align: center;
    padding: 20px;
    background-color: var(--card-background);
    margin: 20px;
    border-radius: 15px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--accent-yellow);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    background-color: var(--card-background);
    margin: 20px;
    border-radius: 15px;
    padding: 15px;
}

.stat-box {
    text-align: center;
}

.stat-box h3 {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 16px;
    font-weight: bold;
}

.profile-menu {
    background-color: var(--card-background);
    margin: 20px;
    border-radius: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s;
}

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

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

.menu-item i {
    color: var(--accent-yellow);
    margin-right: 15px;
}

.menu-item.logout {
    color: var(--accent-red);
}

.menu-item.logout i {
    color: var(--accent-red);
}

/* Edit Profile Page Styles */
.edit-profile-section {
    padding: 20px;
}

.profile-avatar-edit {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.profile-avatar-edit img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-yellow);
}

.btn-change-avatar {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--accent-yellow);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-profile-form .input-group {
    margin-bottom: 20px;
}

.edit-profile-form input,
.edit-profile-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--card-background);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
}

.btn-save-profile {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-yellow);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    font-weight: bold;
}

/* Wallet Page Styles */
.wallet-holdings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255,255,255,0.05);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.wallet-holdings-item .coin-info {
    display: flex;
    align-items: center;
}

.wallet-holdings-item .coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-holdings-item .coin-details {
    flex-grow: 1;
}

.wallet-holdings-item .coin-amount {
    text-align: right;
}

/* Coin Details Page */
.coin-details-header {
    display: flex;
    align-items: center;
    background-color: var(--card-background);
    padding: 20px;
    margin-bottom: 20px;
}

.coin-details-header .coin-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-details-header .coin-info {
    flex-grow: 1;
}

.coin-details-header .coin-price {
    text-align: right;
}

.coin-details-actions {
    display: flex;
    justify-content: space-around;
    background-color: var(--card-background);
    padding: 15px;
    margin: 0 20px 20px;
    border-radius: 15px;
}

.coin-details-actions button {
    background: none;
    border: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coin-details-actions button i {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--accent-yellow);
}

.transactions-list .transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255,255,255,0.05);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.transaction-details {
    flex-grow: 1;
}

.transaction-amount {
    text-align: right;
}

.transaction-type-send {
    color: var(--accent-red);
}

.transaction-type-receive {
    color: var(--accent-yellow);
}

/* Swap Page Styles */
.swap-section {
    padding: 20px;
}

.swap-form .input-group {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.swap-form .coin-select {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.swap-form .coin-select .coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.swap-form .coin-select select {
    background: none;
    border: none;
    color: var(--text-primary);
    flex-grow: 1;
}

.swap-icon {
    text-align: center;
    margin: 15px 0;
    color: var(--accent-yellow);
}

.swap-details {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.swap-details .detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* KYC Page Styles */
.kyc-section {
    padding: 20px;
}

.kyc-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.progress-step {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
    background-color: rgba(255,255,255,0.1);
    margin: 0 5px;
    border-radius: 5px;
    color: rgba(255,255,255,0.5);
}

.progress-step.active {
    background-color: var(--accent-yellow);
    color: var(--text-primary);
}

.kyc-form .form-section {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.kyc-form .input-group {
    margin-bottom: 15px;
}

.file-upload {
    background-color: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.file-upload input[type="file"] {
    display: none;
}

/* Referral Page Styles */
.referral-section {
    padding: 20px;
}

.referral-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.referral-stats .stat-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    margin: 0 5px;
}

.referral-link {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.link-container {
    display: flex;
    align-items: center;
}

.link-container input {
    flex-grow: 1;
    background-color: rgba(255,255,255,0.05);
    border: none;
    padding: 10px;
    color: var(--text-primary);
    border-radius: 5px 0 0 5px;
}

.link-container .btn-copy {
    background-color: var(--accent-yellow);
    border: none;
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
}

.referral-rules ul {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    list-style-type: disc;
    padding-left: 30px;
    margin-bottom: 20px;
}

.referral-history {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
}

.referral-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Authentication Page Styles */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-form {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 30px;
}

.auth-form .input-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-form label {
    display: block;
    margin-bottom: 10px;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    background-color: rgba(255,255,255,0.05);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
}

.auth-header{
    padding-bottom: 26px;
    justify-self: center;
}

.forgot-password {
    position: absolute;
    right: 0;
    top: -5px;
    color: var(--accent-yellow);
    text-decoration: none;
}

.btn-auth {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-yellow);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: bold;
    margin-bottom: 20px;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.auth-divider span {
    background-color: var(--card-background);
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    z-index: 0;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-login button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.05);
    color: var(--text-primary);
    gap: 10px;
}

.social-login button i {
    font-size: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.terms-checkbox input {
    margin-right: 10px;
}

/* Security Page Styles */
.security-section,
.notifications-section,
.help-support-section {
    padding: 20px;
}

.security-menu .menu-item,
.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--card-background);
    border-radius: 10px;
    margin-bottom: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 34px;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + label {
    background-color: var(--accent-yellow);
}

.toggle-switch input:checked + label:before {
    transform: translateX(26px);
}

/* Notifications Page Styles */
.recent-notifications {
    margin-top: 30px;
}

.notification-list-item {
    display: flex;
    align-items: center;
    background-color: var(--card-background);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.notification-icon {
    margin-right: 15px;
    font-size: 24px;
}

.notification-content {
    flex-grow: 1;
}

.notification-content h4 {
    margin-bottom: 5px;
}

.notification-content p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Help & Support Page Styles */
.help-support-section .menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-background);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}