/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F9FAFB;
    color: #1F2937;
    line-height: 1.5;
    padding-bottom: 70px;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    color: white;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
}

.logo-text span {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Desktop */
.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #4B5563;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 14px;
}

.nav a:hover, .nav a.active {
    color: #4F46E5;
}

/* Bottom Navigation Bar (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #E5E7EB;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px 20px;
    z-index: 100;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #6B7280;
    font-size: 12px;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 12px;
}

.bottom-nav-item i {
    font-size: 22px;
}

.bottom-nav-item.active {
    color: #4F46E5;
    background: #EEF2FF;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #4F46E5;
    color: #4F46E5;
}

.btn-outline:hover {
    background: #EEF2FF;
}

.btn-danger {
    background: #EF4444;
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-success {
    background: #10B981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #F3F4F6;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
    background: #F9FAFB;
}

.form-control:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: white;
}

select.form-control {
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 56px;
    }
}

.hero .gradient-text {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.stat-card i {
    font-size: 32px;
    color: #4F46E5;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #1F2937;
}

.stat-label {
    color: #6B7280;
    margin-top: 8px;
    font-size: 14px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.service-card {
    text-align: center;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: #EEF2FF;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 32px;
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: #4F46E5;
    margin: 16px 0;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #6B7280;
    font-size: 22px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #4F46E5;
}

.copyright {
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-weight: 600;
    color: #1F2937;
    font-size: 14px;
}

.user-balance {
    background: #D1FAE5;
    color: #065F46;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* History Items */
.history-item {
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 0;
}

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

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-service {
    font-weight: 600;
    color: #1F2937;
}

.history-amount {
    font-weight: 700;
}

.history-amount.negative {
    color: #EF4444;
}

.history-amount.positive {
    color: #10B981;
}

.history-details {
    font-size: 12px;
    color: #6B7280;
}

.history-date {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 6px;
}

/* Bank Info */
.bank-info {
    background: #F3F4F6;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.bank-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.bank-info code {
    background: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    display: inline-block;
    margin-top: 4px;
}

/* QR Code */
.qr-code {
    text-align: center;
    margin-top: 20px;
}

.qr-code img {
    max-width: 200px;
    width: 100%;
    border-radius: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav {
        display: none;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .card {
        padding: 20px;
    }
    
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}