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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    padding-bottom: 70px;
}

/* Splash Screen */
.splash-screen {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-bottom: 0;
}

.splash-container {
    text-align: center;
    color: var(--white);
}

.logo-container {
    animation: fadeInUp 0.8s ease-out;
}

.crypto-logo {
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.app-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.app-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.loader {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    background: var(--white);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

/* Mobile Header */
.mobile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.menu-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.header-title {
    font-size: 1.2rem;
    font-weight: 600;
}

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

.notification-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Drawer Menu */
.drawer {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.drawer.open {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

.drawer-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 30px 20px;
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.drawer-logo svg {
    width: 40px;
    height: 40px;
}

.drawer-user-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.drawer-user-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.drawer-menu {
    list-style: none;
    padding: 10px 0;
}

.drawer-menu li {
    border-bottom: 1px solid var(--border-color);
}

.drawer-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
}

.drawer-menu a:hover,
.drawer-menu a.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.drawer-menu svg {
    width: 24px;
    height: 24px;
}

/* Main Content */
.mobile-content {
    padding: 20px;
    min-height: calc(100vh - 120px);
}

/* Dashboard Cards */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.welcome-section h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.welcome-section p {
    opacity: 0.9;
}

.balance-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.balance-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.balance-change {
    color: var(--success);
    font-size: 0.9rem;
}

.balance-change.negative {
    color: var(--danger);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.action-btn {
    background: var(--white);
    border: none;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.action-btn span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Crypto List */
.section-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}

.crypto-list {
    list-style: none;
}

.crypto-item {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.crypto-details h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.crypto-details p {
    font-size: 0.85rem;
    color: var(--text-light);
}

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

.crypto-price .amount {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.crypto-price .change {
    font-size: 0.85rem;
}

.crypto-price .change.up {
    color: var(--success);
}

.crypto-price .change.down {
    color: var(--danger);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 15px;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 0.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Plans */
.plan-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.plan-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin: 20px 0;
}

.plan-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li:before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
}

.plan-card.featured .plan-features li:before {
    color: var(--white);
}

.btn-plan {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.plan-card.featured .btn-plan {
    background: var(--white);
    color: var(--primary-color);
}

/* Trading Page */
.chart-container {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chart-placeholder {
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.trade-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.trade-btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.trade-btn.buy {
    background: var(--success);
    color: var(--white);
}

.trade-btn.sell {
    background: var(--danger);
    color: var(--white);
}

.trade-btn:active {
    transform: scale(0.98);
}

/* About & Contact */
.content-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.content-card p {
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:before {
    content: "●";
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes loading {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

/* Responsive */
@media (max-width: 375px) {
    .mobile-content {
        padding: 15px;
    }

    .welcome-section h2 {
        font-size: 1.3rem;
    }

    .balance-amount {
        font-size: 1.7rem;
    }

    .quick-actions {
        gap: 10px;
    }

    .action-btn {
        padding: 15px;
    }
}

@media (min-width: 376px) and (max-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}
