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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 15px;
}

.header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #07C160 0%, #06AE56 100%);
    border-radius: 16px;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
}

.subtitle {
    opacity: 0.9;
    margin-top: 8px;
    font-size: 14px;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid #07C160;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.project-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.project-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.project-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #07C160;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #06AE56;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

.subscription-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscription-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.subscription-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-icon {
    font-size: 32px;
}

.subscription-details h4 {
    font-size: 16px;
    font-weight: 600;
}

.subscription-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-active {
    background: #e6f7ee;
    color: #07C160;
}

.status-pending {
    background: #fff3e0;
    color: #ff9800;
}

.status-cancelled {
    background: #ffebee;
    color: #f44336;
}

.subscription-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.subscription-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

.empty-tip {
    text-align: center;
    color: #999;
    padding: 40px;
}

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

.modal.active {
    display: flex;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #07C160;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #07C160;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.payment-body {
    text-align: center;
}

.payment-amount {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 10px;
}

.payment-desc {
    color: #666;
    margin-bottom: 20px;
}

.payment-qrcode {
    margin: 20px auto;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.payment-tip {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    transition: transform 0.3s;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}
