/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

.screen {
    display: none;
    min-height: 100vh;
    position: relative;
}

.screen.active {
    display: block;
}

/* Login Screen */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
}

#login-form {
    width: 100%;
    max-width: 300px;
}

#login-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 12px;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
}

#login-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 24px;
    margin-right: 15px;
    cursor: pointer;
}

.profile-btn {
    position: absolute;
    right: 20px;
    cursor: pointer;
}

.profile-btn img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

/* Main Screen */
.balance-card {
    margin: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 16px;
    color: #000;
}

.balance-amount {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-number {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.card-type {
    font-size: 14px;
    font-weight: 600;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.action-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #1a1a1a;
    padding: 10px 0;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-item.active {
    opacity: 1;
    color: #FFD700;
}

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

/* Cards Screen */
.cards-container {
    padding: 20px;
}

.bank-card {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    position: relative;
    min-height: 180px;
}

.sber-card {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.finovate-card {
    background: linear-gradient(135deg, #FFD700, #000);
    color: #fff;
}

.card-logo {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 40px;
}

.card-holder-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-bank {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.card-number {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-holder {
    font-size: 12px;
    margin-bottom: 10px;
}

.card-balance {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
    font-weight: bold;
}

.card-type-logo {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    font-weight: bold;
}

.transfer-btn, .issue-card-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #FFD700;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.issue-card-btn {
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #333;
}

/* Issue Card Screen */
.card-options {
    padding: 20px;
}

.card-option {
    padding: 20px;
    margin-bottom: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.card-option:active {
    transform: scale(0.95);
}

.card-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-top: 15px;
}

.finovate-preview {
    background: linear-gradient(135deg, #FFD700, #000);
}

.sber-preview {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

/* Transfer Forms */
.transfer-form {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
}

.transfer-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

/* Transfers Screen */
.balance-display {
    padding: 20px;
    text-align: center;
    background: #1a1a1a;
    margin: 20px;
    border-radius: 16px;
}

.transfer-methods {
    padding: 20px;
}

.method-btn {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.method-btn.active {
    background: #333;
    border-left: 4px solid #FFD700;
}

.method-icon {
    font-size: 20px;
    margin-right: 15px;
}

.recent-contacts {
    display: flex;
    gap: 15px;
    padding: 0 20px 20px;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.contact img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.checkbox {
    display: flex;
    align-items: center;
    margin: 15px 0;
    cursor: pointer;
}

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

/* Subscriptions Screen */
.subscriptions-header {
    padding: 20px;
    text-align: center;
}

.subscription-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin: 0 20px 20px;
    background: #1a1a1a;
    border-radius: 12px;
}

.sub-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.sub-icon.netflix {
    background: #e50914;
    color: #fff;
}

.sub-icon.okko {
    background: #ff6b35;
    color: #fff;
}

.sub-icon.disney {
    background: #113cce;
    color: #fff;
}

.sub-info {
    flex: 1;
}

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

.sub-description {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.4;
}

.sub-price {
    font-size: 16px;
    font-weight: 600;
    color: #FFD700;
}

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

.change-plan-btn,
.cancel-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

.change-plan-btn {
    background: #333;
    color: #fff;
}

.cancel-btn {
    background: #ff4444;
    color: #fff;
}

/* Tax Screen */
.tax-integration {
    padding: 20px;
    margin: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tax-status.connected {
    color: #4caf50;
    font-weight: 600;
}

.tax-notifications {
    padding: 0 20px;
}

.tax-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border-radius: 12px;
}

.tax-item.urgent {
    border-left: 4px solid #ff4444;
}

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

.tax-info h4 {
    margin-bottom: 5px;
    color: #fff;
}

.tax-info p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 5px;
}

.tax-date {
    color: #ff4444;
    font-weight: 600;
    font-size: 14px;
}

.fns-btn {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #2196f3;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Profile Screen */
.profile-info {
    padding: 20px;
}

.profile-photo {
    text-align: center;
    margin-bottom: 30px;
}

.profile-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.profile-photo button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.profile-details {
    space-y: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.detail-item label {
    color: #ccc;
    font-size: 14px;
}

.detail-item span {
    color: #fff;
    font-weight: 500;
}

/* Support Screen */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    display: flex;
    margin-bottom: 20px;
}

.message.support {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: #FFD700;
    color: #000;
    margin-left: 10px;
    margin-right: 0;
}

.message-content {
    max-width: 70%;
}

.message-text {
    background: #333;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 5px;
}

.message.user .message-text {
    background: #FFD700;
    color: #000;
}

.message-time {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.chat-input {
    display: flex;
    padding: 20px;
    background: #1a1a1a;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 20px;
    background: #333;
    color: #fff;
    margin-right: 10px;
}

.chat-input button {
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    background: #FFD700;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .subscription-item {
        flex-direction: column;
    }
    
    .sub-actions {
        flex-direction: row;
        margin-top: 15px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Additional responsive improvements */
@media (max-width: 768px) {
    .cards-container {
        padding: 15px;
    }
    
    .bank-card {
        min-height: 160px;
    }
    
    .balance-amount {
        font-size: 28px;
    }
}
