/* Root Variables */
:root {
    --primary-color: #f42425;
    --secondary-color: #198754;
    --accent-color: #FF6B9D;
    --dark-bg: #2D2550;
    --light-bg: #F5F7FA;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --card-shadow: 0 8px 24px rgba(244, 36, 37, 0.15);
    --card-hover-shadow: 0 12px 32px rgba(244, 36, 37, 0.25);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f42425 0%, #198754 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* App Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--light-bg);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Header */
.app-header {
    background: #fff;
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.btn-back, .btn-menu {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover, .btn-menu:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Logo */
.app-logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-logo {
   width: auto;
    max-width: 250px;
    object-fit: contain;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
}

/* Banner */
.app-banner {
    width: 100%;
    overflow: hidden;
    background: white;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

/* Main Content */
.app-content {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1rem;
    color: #6c757d;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    gap: 1.5rem;
    padding: 0 1rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}
.feature-cardx {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}
.feature-cardx::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.feature-cardx:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.feature-cardx.app-header::before {
    opacity: 0.15;
}

.feature-cardx:active {
    transform: translateY(-2px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.feature-card:hover::before {
    opacity: 0.15;
}

.feature-card:active {
    transform: translateY(-2px);
}

/* Card Gradients */
.card-gradient-1::before {
    background: linear-gradient(135deg, #f42425, #ff6b6b);
}

.card-gradient-2::before {
    background: linear-gradient(135deg, #198754, #28a745);
}

.card-gradient-3::before {
    background: linear-gradient(135deg, #f42425, #198754);
}

.card-gradient-4::before {
    background: linear-gradient(135deg, #198754, #20c997);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.card-gradient-1 .card-icon {
    background: linear-gradient(135deg, #f42425, #ff6b6b);
}

.card-gradient-2 .card-icon {
    background: linear-gradient(135deg, #198754, #28a745);
}

.card-gradient-3 .card-icon {
    background: linear-gradient(135deg, #f42425, #198754);
}

.card-gradient-4 .card-icon {
    background: linear-gradient(135deg, #198754, #20c997);
}

.card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.card-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.card-arrow {
    font-size: 1.5rem;
    color: #6c757d;
    position: relative;
    z-index: 1;
}

/* View Management */
.view {
    display: none;
    animation: slideInRight 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--light-bg);
    z-index: 2000;
    overflow-y: auto;
    padding: 1rem;
}

.view.active {
    display: block;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Close Button */
.btn-close-view {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    color: var(--text-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-close-view:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(244, 36, 37, 0.3);
}

.btn-close-view:active {
    transform: rotate(90deg) scale(0.95);
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 4rem 0 1rem 0;
    box-shadow: var(--card-shadow);
}

.content-header {
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.content-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.content-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.content-body {
    color: var(--text-dark);
}

.content-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-body ul {
    list-style: none;
    padding: 0;
}

.content-body ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-body ul li i {
    color: #28a745;
}

.info-box {
    background: linear-gradient(135deg, rgba(244, 36, 37, 0.1), rgba(25, 135, 84, 0.1));
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.info-box h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(244, 36, 37, 0.1);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(244, 36, 37, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Practice Cards */
.practice-card {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.practice-card-1 {
    background: linear-gradient(135deg, #f42425, #ff6b6b);
}

.practice-card-2 {
    background: linear-gradient(135deg, #198754, #28a745);
}

.practice-card-3 {
    background: linear-gradient(135deg, #f42425, #198754);
}

.practice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.practice-card-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.practice-card-header i {
    font-size: 1.5rem;
}

.practice-card-number {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.practice-card-balance {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.balance-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
}

.practice-card-logo {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.9;
}

.btn-add-card {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 36, 37, 0.2);
}

/* Footer */
.app-footer {
    background: white;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 2rem;
}

.app-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner.active {
    display: flex;
}

/* Toast Notification */
.toast {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px 10px 0 0;
}

/* Links */
.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.link-primary:hover {
    text-decoration: underline;
}

.link-secondary {
    color: #6c757d;
    text-decoration: none;
}

.link-secondary:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 576px) {
    .app-content {
        padding: 1.5rem 0;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .content-card {
        padding: 1.5rem;
        margin: 3rem 0 1rem 0;
    }

    .content-header h2 {
        font-size: 1.5rem;
    }

    .practice-card {
        padding: 1.25rem;
    }

    .balance-amount {
        font-size: 1.75rem;
    }
    
    .btn-close-view {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* PWA Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 1rem;
    max-width: 90%;
    z-index: 1000;
}

.install-prompt.active {
    display: flex;
}

.install-prompt button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

/* Payment Method Selection */
.payment-method-card {
    cursor: pointer;
    margin: 0;
    display: block;
}

.payment-method-card input[type="radio"] {
    display: none;
}

.payment-card-content {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-method-card input[type="radio"]:checked + .payment-card-content {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(244, 36, 37, 0.2);
}

.payment-card-content i {
    font-size: 32px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.payment-method-card input[type="radio"]:checked + .payment-card-content i {
    color: var(--primary-color);
}

.payment-card-content span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.payment-card-content:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Country Selection Cards */
.country-option-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.country-option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(244, 36, 37, 0.2);
}

.country-flag {
    font-size: 64px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.country-option-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 22px;
}

.country-option-card .text-muted {
    font-size: 14px;
    margin-bottom: 20px;
}

.country-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.country-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.country-features i {
    margin-right: 8px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


s {
    color: #ff1314;
    font-weight: 700;
}