* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-green: #21a038;
    --dark-green: #1a472a;
    --bg-dark: #1c1c1e;
    --card-dark: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.6);
    --safe-area-top: env(safe-area-inset-top, 20px);
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);
}

html {
    background-color: #4a9a70;
    min-height: 100%;
    min-height: calc(100% + env(safe-area-inset-top));
}

body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background-color: #4a9a70;
    color: var(--text-white);
    margin: 0;
    padding: 0;
}

body.main-active, html.main-active {
    background-color: #1c1c1e;
}

/* Screen Management */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: -webkit-fill-available;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1;
    overflow: hidden;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.screen-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 20px);
    padding-bottom: 90px;
}

/* Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(
        160deg,
        #2d5a4a 0%,
        #1a8b6e 15%,
        #3eb489 25%,
        #7ee8b8 35%,
        #a8f0d4 40%,
        #5fd4a9 50%,
        #2eb88a 60%,
        #1a9b6a 70%,
        #3da87a 80%,
        #5eb889 90%,
        #4aaa7a 100%
    );
    animation: gradientShift 15s ease infinite;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 80% 50% at 70% 20%,
        rgba(180, 255, 220, 0.6) 0%,
        transparent 50%
    );
    animation: auroraMove 8s ease-in-out infinite;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 60% 40% at 30% 60%,
        rgba(100, 200, 150, 0.4) 0%,
        transparent 50%
    );
    animation: auroraMove2 10s ease-in-out infinite reverse;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(10deg) brightness(1.05); }
}

@keyframes auroraMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(5%) translateY(3%); }
}

@keyframes auroraMove2 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-5%) translateY(-3%); }
}

/* Main Screen Dark Background */
.main-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(
        180deg,
        #1a4a3a 0%,
        #1c2e28 15%,
        #1c1c1e 30%,
        #1c1c1e 100%
    );
}

.main-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: radial-gradient(
        ellipse 100% 100% at 50% -20%,
        rgba(33, 160, 56, 0.3) 0%,
        transparent 70%
    );
}

/* Password Screen Header */
.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 50px;
    height: 50px;
}

.sber-logo-icon {
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.update-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
}

/* Greeting */
.greeting {
    padding: 0 20px;
    margin-bottom: 30px;
}

.greeting h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Password Section */
.password-section {
    padding: 0 20px;
    margin-bottom: auto;
}

.password-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.password-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.dot.filled {
    background: rgba(255, 255, 255, 0.4);
    animation: dotFill 0.3s ease;
}

.dot.filled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    animation: dotAppear 0.3s ease;
}

@keyframes dotFill {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes dotAppear {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.dot.error {
    animation: shake 0.5s ease;
    background: rgba(255, 100, 100, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 15px;
    min-height: 20px;
    transition: opacity 0.3s ease;
}

/* Numpad */
.numpad {
    padding: 20px;
    margin-top: auto;
}

.numpad-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.num-btn {
    flex: 1;
    aspect-ratio: 1.3;
    max-height: 70px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.num-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
}

.num-btn:active::before {
    transform: translate(-50%, -50%) scale(2);
}

.num-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
}

.num-btn .num {
    font-size: 28px;
    font-weight: 500;
    color: white;
}

.num-btn .letters {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    text-transform: uppercase;
}

.text-btn {
    background: transparent;
}

.text-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.help-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.3;
}

.backspace-btn svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Bottom Navigation (Password Screen) */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    position: relative;
}

.password-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(46, 120, 90, 0.5);
    backdrop-filter: blur(20px);
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
}

.password-nav .nav-item {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.password-nav .nav-item:active {
    transform: scale(0.9);
}

.password-nav .nav-item svg {
    width: 26px;
    height: 26px;
    color: rgba(255, 255, 255, 0.8);
}

.badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background: #ff6b35;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading Screen */
.loading-content {
    align-items: flex-start;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: rgba(255, 255, 255, 0.6);
    animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: rgba(255, 255, 255, 0.4);
    animation-delay: -0.15s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main Screen */
.main-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 100px;
}

.main-header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
}

.profile-btn {
    width: 44px;
    height: 44px;
    background: var(--card-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile-btn:active {
    transform: scale(0.9);
}

.profile-btn svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.8);
}

.search-bar {
    flex: 1;
    height: 44px;
    background: var(--card-dark);
    border-radius: 22px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-green);
}

.search-bar span {
    color: var(--text-gray);
    font-size: 15px;
}

.header-btn {
    width: 44px;
    height: 44px;
    background: var(--card-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-btn:active {
    transform: scale(0.9);
}

.header-btn svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* Balance Section */
.balance-section {
    padding: 20px 16px 10px;
    animation: slideUp 0.5s ease 0.2s both;
}

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

.balance-label {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.balance-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-amount {
    font-size: 34px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.currency {
    color: var(--primary-green);
}

.balance-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-gray);
}

.balance-actions {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.balance-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

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

.balance-action-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-gray);
}

/* Cards Section */
.cards-section {
    padding: 15px 0;
    animation: slideUp 0.5s ease 0.3s both;
}

.cards-scroll {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cards-scroll::-webkit-scrollbar {
    display: none;
}

.card-item {
    flex-shrink: 0;
    width: 80px;
    height: 90px;
    background: var(--card-dark);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.card-item:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.12);
}

.card-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: white;
}

.card-preview {
    width: 50px;
    height: 32px;
    border-radius: 6px;
    position: relative;
}

.green-card {
    background: linear-gradient(135deg, #21a038 0%, #1a8b32 100%);
}

.blue-card {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.card-chip {
    position: absolute;
    top: 8px;
    left: 6px;
    width: 12px;
    height: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border-radius: 2px;
}

.card-number {
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 8px;
}

.sber-logo {
    width: 45px;
    height: 45px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

/* Accounts Section */
.accounts-section {
    padding: 10px 0;
    animation: slideUp 0.5s ease 0.4s both;
}

.accounts-scroll {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.accounts-scroll::-webkit-scrollbar {
    display: none;
}

.account-item {
    flex-shrink: 0;
    min-width: 140px;
    height: 80px;
    background: var(--card-dark);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.account-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

.account-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-balance {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.account-name {
    font-size: 13px;
    color: var(--text-gray);
}

/* Promo Banner */
.promo-banner {
    margin: 15px 16px;
    padding: 16px;
    background: var(--card-dark);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.5s ease 0.5s both;
}

.promo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-gray);
}

.promo-text {
    flex: 1;
    font-size: 15px;
    color: white;
}

.promo-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.promo-close:active {
    transform: scale(0.9);
}

.promo-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-gray);
}

/* History Section */
.history-section {
    padding: 15px 16px;
    animation: slideUp 0.5s ease 0.55s both;
}

/* Transaction List */
.transactions-list {
    margin-top: 15px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

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

.transaction-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.transaction-icon.grocery {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.transaction-icon.transfer-in {
    background: linear-gradient(135deg, #21a038, #1a8b32);
}

.transaction-icon.restaurant {
    background: linear-gradient(135deg, #ff9f43, #ee8c2c);
}

.transaction-icon.transport {
    background: linear-gradient(135deg, #5f6caf, #4a5899);
}

.transaction-icon.salary {
    background: linear-gradient(135deg, #21a038, #1a8b32);
}

.transaction-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.transaction-name {
    font-size: 15px;
    font-weight: 500;
    color: white;
}

.transaction-category {
    font-size: 13px;
    color: var(--text-gray);
}

.transaction-amount {
    font-size: 15px;
    font-weight: 600;
}

.transaction-amount.negative {
    color: white;
}

.transaction-amount.positive {
    color: #21a038;
}

/* Tab Content Styles */
.tab-content {
    display: none;
    padding: 0 16px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.tab-header-section {
    padding: 20px 0;
}

.tab-header-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tab-subtitle {
    color: var(--text-gray);
    font-size: 14px;
}

/* Savings Tab */
.savings-total-card {
    background: linear-gradient(135deg, #21a038, #1a8b32);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.savings-label {
    font-size: 14px;
    opacity: 0.8;
}

.savings-amount {
    font-size: 32px;
    font-weight: 700;
}

.savings-growth {
    font-size: 14px;
    color: #a8f0c4;
}

.goals-section, .deposits-section {
    margin-top: 25px;
}

.goals-section h3, .deposits-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.goal-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--card-dark);
    border-radius: 16px;
    margin-bottom: 12px;
}

.goal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.goal-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.goal-icon.vacation { background: linear-gradient(135deg, #ff9f43, #ee8c2c); }
.goal-icon.car { background: linear-gradient(135deg, #5f6caf, #4a5899); }

.goal-info {
    flex: 1;
}

.goal-name {
    font-size: 15px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.goal-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.goal-progress {
    height: 100%;
    background: var(--primary-green);
    border-radius: 3px;
}

.goal-stats {
    font-size: 12px;
    color: var(--text-gray);
}

.deposit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--card-dark);
    border-radius: 16px;
}

.deposit-name {
    font-size: 15px;
    font-weight: 500;
    display: block;
}

.deposit-rate {
    font-size: 13px;
    color: var(--primary-green);
}

.deposit-amount {
    font-size: 16px;
    font-weight: 600;
}

.open-deposit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-green);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
}

/* For Life Tab */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    background: var(--card-dark);
    border-radius: 16px;
    cursor: pointer;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.service-icon.insurance { background: linear-gradient(135deg, #21a038, #1a8b32); }
.service-icon.health { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); }
.service-icon.travel { background: linear-gradient(135deg, #00a0e3, #0077c8); }
.service-icon.education { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.service-icon.shopping { background: linear-gradient(135deg, #ff9f43, #ee8c2c); }
.service-icon.entertainment { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.service-item span {
    font-size: 12px;
    text-align: center;
    color: var(--text-gray);
}

.subscriptions-section {
    margin-top: 25px;
}

.subscriptions-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.subscription-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--card-dark);
    border-radius: 16px;
    margin-bottom: 10px;
}

.subscription-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.subscription-icon.music {
    background: linear-gradient(135deg, #1db954, #1aa34a);
}

.subscription-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.subscription-info {
    flex: 1;
}

.subscription-name {
    font-size: 15px;
    font-weight: 500;
    display: block;
}

.subscription-status {
    font-size: 12px;
    color: var(--text-gray);
}

.subscription-status.active {
    color: var(--primary-green);
}

.subscription-price {
    font-size: 14px;
    color: var(--text-gray);
}

/* Payments Tab */
.payment-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.payment-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--card-dark);
    border-radius: 16px;
    cursor: pointer;
}

.payment-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-cat-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.payment-cat-icon.mobile { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); }
.payment-cat-icon.internet { background: linear-gradient(135deg, #00a0e3, #0077c8); }
.payment-cat-icon.utilities { background: linear-gradient(135deg, #ff9f43, #ee8c2c); }
.payment-cat-icon.government { background: linear-gradient(135deg, #5f6caf, #4a5899); }

.payment-category span {
    font-size: 13px;
    text-align: center;
}

.recent-payments, .autopayments-section {
    margin-top: 25px;
}

.recent-payments h3, .autopayments-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.recent-payment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.recent-payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--card-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-payment-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-gray);
}

.recent-payment-info {
    flex: 1;
}

.recent-payment-name {
    font-size: 14px;
    display: block;
}

.recent-payment-date {
    font-size: 12px;
    color: var(--text-gray);
}

.recent-payment-amount {
    font-size: 14px;
    font-weight: 500;
}

.autopayment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--card-dark);
    border-radius: 14px;
}

.autopayment-name {
    font-size: 14px;
}

.autopayment-status {
    font-size: 12px;
    color: var(--text-gray);
}

.autopayment-status.active {
    color: var(--primary-green);
}

.add-autopayment-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 14px;
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 12px;
    cursor: pointer;
}

/* Credits Tab */
.credit-offer-card {
    background: linear-gradient(135deg, #21a038, #1a8b32);
    border-radius: 20px;
    padding: 24px;
}

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

.credit-offer-title {
    font-size: 16px;
    font-weight: 500;
}

.credit-offer-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.credit-offer-amount {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.credit-offer-rate {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.credit-offer-btn {
    width: 100%;
    padding: 14px;
    background: white;
    border: none;
    border-radius: 12px;
    color: var(--primary-green);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.active-credits, .credit-history, .installments-section {
    margin-top: 25px;
}

.active-credits h3, .credit-history h3, .installments-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.active-credit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--card-dark);
    border-radius: 16px;
}

.credit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.credit-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.credit-info {
    flex: 1;
}

.credit-name {
    font-size: 15px;
    font-weight: 500;
    display: block;
}

.credit-details {
    font-size: 13px;
    color: var(--text-gray);
}

.credit-payment {
    text-align: right;
}

.credit-next {
    font-size: 11px;
    color: var(--text-gray);
    display: block;
}

.credit-amount {
    font-size: 15px;
    font-weight: 600;
}

.credit-score {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card-dark);
    border-radius: 16px;
}

.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-size: 22px;
    font-weight: 700;
}

.score-label {
    font-size: 14px;
    color: var(--text-gray);
    display: block;
}

.score-status {
    font-size: 16px;
    font-weight: 600;
}

.score-status.good {
    color: var(--primary-green);
}

.installment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--card-dark);
    border-radius: 16px;
}

.installment-store {
    font-size: 15px;
    font-weight: 500;
}

.installment-details {
    text-align: right;
}

.installment-remaining {
    font-size: 13px;
    display: block;
}

.installment-total {
    font-size: 12px;
    color: var(--text-gray);
}

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

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.section-header h3 svg {
    width: 18px;
    height: 18px;
    color: var(--text-gray);
}

.see-all {
    color: var(--primary-green);
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
}

/* Transfers Section */
.transfers-section {
    padding: 15px 16px;
    background: var(--card-dark);
    border-radius: 24px 24px 0 0;
    margin-top: 10px;
    animation: slideUp 0.5s ease 0.6s both;
}

.transfers-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.transfer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.transfer-main span {
    font-size: 15px;
    color: white;
}

.transfer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sbp-icon {
    width: 24px;
    height: 24px;
    color: var(--text-gray);
}

.transfer-btn {
    width: 44px;
    height: 44px;
    background: var(--primary-green);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.transfer-btn:active {
    transform: scale(0.9);
}

.transfer-btn svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 70px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.quick-action-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.quick-action-icon.avatar {
    background: #5c6bc0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.quick-action span {
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.3;
}

/* Main Bottom Navigation */
.main-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1c1c1e;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 10px;
    padding-bottom: 10px;
    padding-bottom: calc(10px + constant(safe-area-inset-bottom));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
}

.main-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.main-nav .nav-item:active {
    transform: scale(0.9);
}

.main-nav .nav-item svg {
    width: 24px;
    height: 24px;
    color: var(--text-gray);
}

.main-nav .nav-item span {
    font-size: 10px;
    color: var(--text-gray);
}

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

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

/* Success Animation */
.success-check {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
}

.success-check.show {
    animation: successPop 0.6s ease forwards;
}

@keyframes successPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.success-check svg {
    width: 40px;
    height: 40px;
    color: white;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
}

.success-check.show svg {
    animation: drawCheck 0.4s ease 0.3s forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Screen Transitions */
.screen.slide-out {
    animation: slideOut 0.4s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.screen.slide-in {
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Count up animation for balance */
.balance-amount.counting {
    animation: pulse 0.1s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Touch feedback for all interactive elements */
button, .card-item, .account-item, .quick-action {
    -webkit-user-select: none;
    user-select: none;
}

/* Prevent text selection */
* {
    -webkit-user-select: none;
    user-select: none;
}
