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

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --text-color: #2d3436;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-color);
}

.mobile-container {
    max-width: 414px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.app-header {
    background: var(--white);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.app-header h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.app-header .subtitle {
    color: #636e72;
    font-size: 14px;
    margin-top: 5px;
}

.content {
    padding: 20px;
    background: var(--light-bg);
    min-height: calc(100vh - 200px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dfe6e9;
    border-radius: var(--radius);
    font-size: 16px;
    transition: all 0.3s;
    background: var(--white);
}

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

.wallet-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.wallet-option {
    flex: 1;
    padding: 12px;
    border: 2px solid #dfe6e9;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
}

.wallet-option.active {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}

.wallet-option.waafi { border-color: #00b894; color: #00b894; }
.wallet-option.dmoney { border-color: #0984e3; color: #0984e3; }
.wallet-option.cacpay { border-color: #fdcb6e; color: #e17055; }

.summary-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f2f6;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.wallet-badge.waafi { background: #e3f9f0; color: #00b894; }
.wallet-badge.dmoney { background: #e3f2fd; color: #0984e3; }
.wallet-badge.cacpay { background: #fff8e1; color: #e17055; }

.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #5b4cdb;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 92, 231, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-group .btn {
    flex: 1;
}

.success-header {
    background: var(--success-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    width: 2px;
    height: calc(100% - 20px);
    background: #dfe6e9;
}

.timeline-item.completed::before {
    background: var(--success-color);
}

.timeline-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-item.completed .timeline-icon {
    background: var(--success-color);
    color: var(--white);
}

.timeline-item.pending .timeline-icon {
    background: #dfe6e9;
    color: #636e72;
}

.timeline-item.active .timeline-icon {
    background: var(--warning-color);
    color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.timeline-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.timeline-content p {
    font-size: 13px;
    color: #636e72;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}

.info-box i {
    color: var(--primary-color);
    margin-right: 8px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.payment-info {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    margin: 20px 0;
}

.payment-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.payment-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin: 15px 0;
    letter-spacing: 2px;
}

.alert {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #e3f9f0;
    color: #00b894;
    border: 1px solid #00b894;
}

.alert-error {
    background: #ffebee;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.alert-warning {
    background: #fff8e1;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.admin-panel {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    max-width: 800px;
    margin: 40px auto;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dfe6e9;
}

th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-verified { background: #d1ecf1; color: #0c5460; }
.status-progress { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }

@media (max-width: 480px) {
    body {
        padding: 0;
        background: var(--white);
    }
    
    .mobile-container {
        border-radius: 0;
        box-shadow: none;
    }
}