body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

header {
    background-color: #1e1e1e;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header-content h1 {
    margin: 0;
    color: #00d4aa;
    font-size: 1.5em;
}

.status {
    display: flex;
    align-items: center;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.active {
    background-color: #00d4aa;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat .label {
    font-size: 12px;
    color: #aaa;
}

.stat .value {
    font-size: 18px;
    font-weight: bold;
    color: #00d4aa;
}

main {
    display: flex;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
}

.chart-section {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.chart-section h2 {
    margin-top: 0;
    color: #00d4aa;
    text-align: center;
}

.chart-container {
    flex: 1;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#priceChart {
    width: 100% !important;
    height: 100% !important;
}

.sidebar {
    width: 100%;
    background-color: #1e1e1e;
    padding: 20px;
    border-top: 1px solid #333;
    overflow-y: auto;
    max-height: 40vh;
}

.portfolio h3, .recent-trades h3 {
    margin-top: 0;
    color: #00d4aa;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.balance {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.crypto-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.total-balance {
    margin-top: 20px;
    font-weight: bold;
    color: #00d4aa;
}

.recent-trades ul {
    list-style: none;
    padding: 0;
}

.recent-trades li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.trade-icon {
    margin-right: 10px;
    font-size: 18px;
}

.trade-buy .trade-icon {
    color: #00d4aa;
}

.trade-sell .trade-icon {
    color: #ff6b6b;
}

.trade-details {
    flex: 1;
}

.trade-amount {
    font-weight: bold;
}

.trade-price {
    font-size: 12px;
    color: #aaa;
}

.trade-time {
    font-size: 10px;
    color: #777;
}

/* Mobile styles */
@media (min-width: 768px) {
    main {
        flex-direction: row;
    }

    .sidebar {
        width: 300px;
        border-top: none;
        border-left: 1px solid #333;
        max-height: none;
    }

    .chart-section h2 {
        text-align: left;
    }

    .stats {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    .header-content h1 {
        font-size: 1.2em;
    }

    .stats {
        gap: 15px;
    }

    .stat .value {
        font-size: 16px;
    }

    .chart-section, .sidebar {
        padding: 10px;
    }

    .crypto-icon {
        width: 25px;
        height: 25px;
    }
}

/* Dashboard styles */
.dashboard-header {
    background-color: #1e1e1e;
    padding: 40px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-section h1 {
    margin: 0 0 10px 0;
    color: #00d4aa;
    font-size: 2.5rem;
}

.welcome-section p {
    margin: 0;
    color: #aaa;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    align-items: center;
    position: relative;
}

.user-avatar {
    font-size: 3rem;
    color: #00d4aa;
    cursor: pointer;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1e1e1e;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.user-dropdown.active {
    display: block;
}

.user-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
}

.user-email {
    color: #aaa;
    font-size: 0.9rem;
}

.first-visit-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 300px;
}

.first-visit-notification p {
    margin: 0 0 0.5rem 0;
    color: #e0e0e0;
}

.dismiss-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    float: right;
}

.dismiss-btn:hover {
    color: #00d4aa;
}

.dashboard-main {
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.dashboard-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dashboard-card h3 {
    margin-top: 0;
    color: #00d4aa;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    font-size: 1.3rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00d4aa;
    margin: 1rem 0;
}

.overview-item {
    margin-bottom: 1.5rem;
}

.overview-item h4 {
    margin: 0 0 0.5rem 0;
    color: #00d4aa;
    font-size: 1.1rem;
    font-weight: 600;
}

.item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4aa;
}

.status {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e0e0e0;
}

.balance-breakdown {
    display: flex;
    gap: 1rem;
}

.crypto-balance {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    padding: 0.5rem;
    border-radius: 4px;
}

.crypto-icon-small {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.status-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.bot-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bot-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-stat .label {
    color: #aaa;
}

.bot-stat .value {
    font-weight: bold;
    color: #00d4aa;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.deposit-btn {
    background-color: #00d4aa;
    color: #121212;
}

.deposit-btn:hover {
    background-color: #00b894;
}

.withdraw-btn {
    background-color: #ff6b6b;
    color: #fff;
}

.withdraw-btn:hover {
    background-color: #ff5252;
}

.trading-btn {
    background-color: #ffa726;
    color: #121212;
}

.trading-btn:hover {
    background-color: #ff9800;
}

.transaction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.transaction-icon.deposit {
    background-color: #00d4aa;
    color: #121212;
}

.transaction-icon.trade {
    background-color: #ffa726;
    color: #121212;
}

.transaction-icon.withdrawal {
    background-color: #ff6b6b;
    color: #fff;
}

.transaction-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.transaction-type {
    font-weight: bold;
    color: #e0e0e0;
}

.transaction-amount {
    font-size: 1.1rem;
    font-weight: bold;
}

.transaction-amount[style*="color: rgb(0, 212, 170)"] {
    color: #00d4aa !important;
}

.transaction-date {
    color: #aaa;
    font-size: 0.9rem;
}

.transaction-item.empty-state {
    justify-content: center;
    padding: 2rem 0;
    border-bottom: none;
}

.empty-message {
    text-align: center;
    color: #aaa;
}

.empty-message i {
    font-size: 2.5rem;
    color: #444;
    margin-bottom: 0.75rem;
}

.empty-message p {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #e0e0e0;
    font-weight: 500;
}

.empty-message span {
    font-size: 0.85rem;
}

.view-all-link {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.view-all-link a {
    color: #00d4aa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.view-all-link a:hover {
    color: #00b894;
    text-decoration: underline;
}

.view-all-link i {
    margin-right: 0.5rem;
}

/* Investment History Styles */
.investment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.investment-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.investment-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.investment-icon.active {
    background-color: #00d4aa;
    color: #121212;
}

.investment-icon.completed {
    background-color: #4caf50;
    color: #fff;
}

.investment-icon.pending {
    background-color: #ff9800;
    color: #121212;
}

.investment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.investment-type {
    font-weight: bold;
    color: #e0e0e0;
}

.investment-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00d4aa;
}

.investment-date {
    color: #aaa;
    font-size: 0.9rem;
}

.investment-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.investment-txid {
    font-size: 0.8rem;
    color: #888;
    font-family: monospace;
}

.investment-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.investment-status.active {
    background-color: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
}

.investment-status.completed {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.investment-status.pending {
    background-color: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.investment-item.empty-state {
    justify-content: center;
    padding: 2rem 0;
    border-bottom: none;
}

/* Mobile styles for dashboard */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        gap: 0.5rem;
    }

    .welcome-section h1 {
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.2;
    }

    .welcome-section {
        flex: 1;
        min-width: 0;
    }

    .user-info {
        flex-shrink: 0;
    }

    .user-avatar {
        font-size: 1.8rem;
    }

    .user-dropdown {
        display: none !important;
    }

    .dashboard-main {
        padding: 15px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        margin: 0;
    }

    .dashboard-card {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .action-buttons {
        flex-direction: column;
    }

    .balance-breakdown {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Home page styles */
.navbar {
    background-color: #1e1e1e;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.navbar-static {
    position: static;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    color: #00d4aa;
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #00d4aa;
}

.hero {
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    display: flex;
    align-items: center;
    min-min-height: 100vh;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #00d4aa;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #00d4aa;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
}

.cta-button {
    display: inline-block;
    background-color: #00d4aa;
    color: #121212;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #00b894;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-crypto-icon {
    width: 100px;
    height: 100px;
    margin: 0 1rem;
    opacity: 0.8;
}

.features, .testimonials {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.features h2, .testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #00d4aa;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    color: #00d4aa;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #00d4aa;
}

.feature-card p {
    line-height: 1.6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-name {
    font-weight: bold;
    display: block;
}

.author-title {
    color: #aaa;
    font-size: 0.9rem;
}

.footer {
    background-color: #1e1e1e;
    padding: 40px 20px 20px;
    color: #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #00d4aa;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #00d4aa;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 1rem;
    color: #aaa;
}

/* Auth pages styles */
.auth-section {
    padding: 80px 20px 80px;
    background-color: #121212;
    min-min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-container {
    max-width: 400px;
    width: 100%;
}

.auth-form {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #00d4aa;
}

.auth-form p {
    text-align: center;
    margin-bottom: 2rem;
    color: #aaa;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4aa;
}

.checkbox {
    display: flex;
    align-items: flex-start;
}

.checkbox input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.checkbox label {
    margin-bottom: 0;
    line-height: 1.4;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.25rem;
}

.auth-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #00d4aa;
    color: #121212;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #00b894;
}

.auth-button-secondary {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
}

.auth-button-secondary:hover {
    background-color: #3a3a3a;
    border-color: #666;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-buttons .auth-button {
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #aaa;
}

.social-login {
    margin-top: 2rem;
    text-align: center;
}

.social-login p {
    margin-bottom: 1rem;
    color: #aaa;
}

.social-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.facebook-btn {
    background-color: #1877f2;
    color: #fff;
}

.facebook-btn:hover {
    background-color: #166fe5;
}

.google-btn {
    background-color: #db4437;
    color: #fff;
}

.google-btn:hover {
    background-color: #c23321;
}

.email-btn {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
}

.email-btn:hover {
    background-color: #3a3a3a;
    border-color: #00d4aa;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #444;
}

.or-divider span {
    padding: 0 1rem;
    color: #888;
    font-size: 0.9rem;
}

.email-form-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.link {
    color: #00d4aa;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.deposit-summary {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.deposit-summary h4 {
    margin-top: 0;
    color: #00d4aa;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: bold;
    color: #00d4aa;
    font-size: 1.1rem;
}

.deposit-instructions {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #2a2a2a;
    border-radius: 4px;
}

.deposit-instructions h4 {
    margin-top: 0;
    color: #00d4aa;
}

.deposit-instructions ol {
    padding-left: 1.5rem;
}

.deposit-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.balance-info {
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.balance-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

#available-balance {
    color: #00d4aa;
    font-weight: bold;
}

.withdraw-summary {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.withdraw-summary h4 {
    margin-top: 0;
    color: #00d4aa;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.withdraw-instructions {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #2a2a2a;
    border-radius: 4px;
}

.withdraw-instructions h4 {
    margin-top: 0;
    color: #ff6b6b;
}

.withdraw-instructions ol {
    padding-left: 1.5rem;
}

.withdraw-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.withdraw-instructions p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* Mobile styles for home page */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-crypto-icon {
        width: 60px;
        height: 60px;
    }

    .features-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none; /* For simplicity, hide menu on mobile */
    }
    
    .nav-menu.active {
        display: flex; /* Show menu when active */
    }
 
    .auth-section {
        padding: 60px 20px 60px;
    }
 
    .auth-form {
        padding: 1.5rem;
    }
}

/* Comprehensive mobile styles for max-width: 768px */
@media (max-width: 768px) {
    /* General layout adjustments */
    * {
        box-sizing: border-box;
    }
    
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    header {
        padding: 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .header-content h1 {
        font-size: 1.3em;
    }

    .stats {
        gap: 20px;
        justify-content: center;
    }

    .stat .value {
        font-size: 16px;
    }

    .stat .label {
        font-size: 11px;
    }

    main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 50vh;
        border-top: 1px solid #333;
        border-left: none;
    }

    .chart-section {
        padding: 15px;
    }

    .chart-section h2 {
        font-size: 1.2em;
        text-align: center;
    }

    /* Button sizes */
    .action-btn {
        padding: 1.2rem;
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }

    .auth-button {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .social-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Font sizes */
    .balance-amount {
        font-size: 2rem;
    }

    .transaction-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .features h2, .testimonials h2 {
        font-size: 2rem;
    }

    /* Spacing adjustments */
    .dashboard-header {
        padding: 12px 15px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .dashboard-main {
        padding: 15px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .dashboard-card {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .feature-card, .testimonial-card {
        padding: 1.5rem;
    }

    .footer {
        padding: 30px 15px 15px;
    }

    /* Forms */
    .auth-section {
        padding: 60px 20px 60px;
    }
 
    .auth-form {
        padding: 1.5rem;
    }

    .form-group input {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    /* Deposit/Withdraw */
    .deposit-summary, .withdraw-summary {
        padding: 1rem;
    }

    .summary-item {
        padding: 0.75rem 0;
    }

    .deposit-instructions, .withdraw-instructions {
        padding: 1rem;
    }

    .balance-info {
        padding: 0.75rem;
    }

    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    /* Make nav-menu vertical if displayed */
    .nav-menu {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1e1e1e;
        border-top: 1px solid #333;
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #333;
    }

    .nav-menu a {
        padding: 1rem;
        display: block;
    }
}

.overview-item .item-content .action-btn {
    flex: 0 0 auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.item-content .amount {
    flex: 0 0 auto;
    margin-right: 1rem;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .overview-item .item-content .action-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .item-content {
        flex-wrap: nowrap;
    }

    .item-content .amount,
    .item-content .status {
        flex: 0 0 auto;
        margin-right: 0.5rem;
    }

    .overview-item h4 {
        font-size: 1rem;
    }

    .amount {
        font-size: 1.3rem;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: absolute;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #00d4aa;
    text-decoration: none;
}

@media (min-width: 769px) {
    .hamburger-btn {
        display: none;
    }
}

/* Real-time KES Conversion Display */
.kes-conversion-display {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #2a2a2a;
    border-radius: 4px;
    border-left: 3px solid #00d4aa;
}

#kes-conversion-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.exchange-rate-info {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Hero Section - Benefit Badges */
.hero {
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #121212 0%, #1a1a2e 50%, #0f0f23 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #00d4aa;
    line-height: 1.2;
}

.benefit-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.benefit-badge {
    background: linear-gradient(135deg, #00d4aa20, #00d4aa10);
    border: 1px solid #00d4aa;
    color: #00d4aa;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-footnote {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.primary-cta {
    background: linear-gradient(135deg, #00d4aa, #00a080);
    color: #121212;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.primary-cta:hover {
    background: linear-gradient(135deg, #00e5bb, #00b894);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

.secondary-cta {
    background: transparent;
    border: 2px solid #00d4aa;
    color: #00d4aa;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.secondary-cta:hover {
    background: rgba(0, 212, 170, 0.1);
    transform: translateY(-2px);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 20px;
    background-color: #121212;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #00d4aa;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #aaa;
    line-height: 1.7;
    font-size: 0.95rem;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    width: 200px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: #00d4aa;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.15);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4aa, #00a080);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #121212;
}

.step-content h3 {
    color: #00d4aa;
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.step-connector {
    display: flex;
    align-items: center;
    color: #00d4aa;
    font-size: 1.5rem;
    margin-top: 30px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: #00d4aa;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    display: block;
    font-weight: bold;
    color: #e0e0e0;
}

.author-location {
    color: #888;
    font-size: 0.85rem;
}

.verified-badge {
    background-color: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.verified-badge i {
    margin-right: 0.25rem;
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-quote {
    color: #ccc;
    font-style: italic;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-carousel-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonial-carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-carousel-dots .dot.active {
    background-color: #00d4aa;
    width: 30px;
    border-radius: 5px;
}

/* Partners Section */
.partners {
    padding: 60px 20px;
    background-color: #121212;
    overflow: hidden;
}

.partners-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.partners-slider {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: 3rem;
    animation: slidePartners 30s linear infinite;
    width: max-content;
}

@keyframes slidePartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    flex-shrink: 0;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #1e1e1e;
    border-radius: 8px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
}

.partner-logo img:hover {
    filter: grayscale(0%) brightness(1);
}

/* Final CTA Section */
.final-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a0a15 0%, #151530 50%, #0a0a15 100%);
    text-align: center;
    border-top: 1px solid #333;
}

.cta-headline {
    font-size: 2rem;
    color: #00d4aa;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-subheadline {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.cta-urgency {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: pulseUrgency 2s ease-in-out infinite;
}

@keyframes pulseUrgency {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.large-cta {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        transform: rotate(90deg);
        margin: 0.25rem 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 15px 50px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .benefit-badges {
        gap: 0.5rem;
    }
    
    .benefit-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-cta, .secondary-cta {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-description {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .step {
        width: 100%;
        max-width: 300px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    
    .testimonial-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
    
    .testimonial-carousel-dots {
        display: flex;
    }
    
    .cta-headline {
        font-size: 1.4rem;
    }
    
    .cta-subheadline {
        font-size: 0.95rem;
    }
    
    .cta-urgency {
        font-size: 1rem;
    }
    
    .large-cta {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .benefit-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }
    
    .verified-badge {
        font-size: 0.65rem;
    }
}

/* App Restriction Popup Styles */
/* ========================================================================== */

/* Full viewport overlay */
.app-restriction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show overlay when active */
.app-restriction-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Centered modal box */
.app-restriction-modal {
    background: linear-gradient(145deg, #1e1e1e, #252525);
    border: 1px solid #00d4aa;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.2),
                0 0 40px rgba(0, 212, 170, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

/* Animate modal in */
.app-restriction-overlay.active .app-restriction-modal {
    transform: scale(1) translateY(0);
}

/* App icon in modal */
.app-restriction-icon {
    font-size: 64px;
    color: #00d4aa;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Modal title */
.app-restriction-title {
    font-size: 24px;
    color: #00d4aa;
    margin: 0 0 15px 0;
    font-weight: 700;
}

/* Modal message */
.app-restriction-message {
    font-size: 16px;
    color: #b0b0b0;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

/* Button container */
.app-restriction-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Primary button - Download App */
.app-btn-download {
    background: linear-gradient(145deg, #00d4aa, #00b894);
    color: #121212;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.app-btn-download:hover {
    background: linear-gradient(145deg, #00e6b8, #00d4aa);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

.app-btn-download:active {
    transform: translateY(0);
}

/* Secondary button - Open App */
.app-btn-open {
    background: transparent;
    color: #00d4aa;
    border: 2px solid #00d4aa;
    padding: 13px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.app-btn-open:hover {
    background: rgba(0, 212, 170, 0.1);
    transform: translateY(-2px);
}

.app-btn-open:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .app-restriction-modal {
        padding: 30px 20px;
        width: 85%;
    }
    
    .app-restriction-icon {
        font-size: 48px;
    }
    
    .app-restriction-title {
        font-size: 20px;
    }
    
    .app-restriction-message {
        font-size: 14px;
    }
    
    .app-btn-download,
    .app-btn-open {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Tablet responsive */
@media (min-width: 481px) and (max-width: 768px) {
    .app-restriction-modal {
        padding: 35px 25px;
    }
    
    .app-restriction-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .app-btn-download,
    .app-btn-open {
        flex: 1;
        max-width: 180px;
    }
}

/* Blur background when overlay is active */
body.app-overlay-active > *:not(.app-restriction-overlay):not(.app-restriction-modal) {
    filter: blur(8px);
    pointer-events: none;
}
