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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header */
.header {
    background: #00BCD4;
    padding: 16px 20px;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-top: 2px;
}

/* Content */
.content {
    padding: 20px;
}

/* Form Section */
.form-section {
    background: white;
    margin-bottom: 16px;
}

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

label {
    display: block;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

select,
input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: #fafafa;
    color: #1a1a1a;
}

select:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #00BCD4;
    background: white;
}

small {
    display: block;
    color: #9e9e9e;
    font-size: 12px;
    margin-top: 6px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #00BCD4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #00ACC1;
}

.btn-submit:active {
    background: #0097A7;
}

.btn-submit:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

/* Result Section */
.result {
    margin-top: 20px;
    animation: slideIn 0.3s ease;
}

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

.result.error {
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 8px;
    padding: 16px;
    color: #c62828;
    font-size: 14px;
}

.result h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

/* Info Card */
.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

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

.info-label {
    color: #757575;
    font-size: 13px;
    font-weight: 500;
}

.info-value {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.summary-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.summary-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #00BCD4;
}

.summary-label {
    color: #757575;
    font-size: 12px;
    margin-bottom: 4px;
}

.summary-value {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
}

.summary-total {
    color: #9e9e9e;
    font-size: 11px;
    margin-top: 2px;
}

/* Package List */
.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 24px 0 12px 0;
}

.package-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.package-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    flex: 1;
    line-height: 1.4;
}

.package-badge {
    background: #e0f7fa;
    color: #00838F;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

.package-expired {
    color: #9e9e9e;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.package-expired i {
    font-size: 11px;
}

/* Quota Items */
.quota-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quota-item {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px;
}

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

.quota-name {
    font-size: 13px;
    color: #757575;
    font-weight: 500;
}

.quota-values {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.quota-remaining {
    font-size: 16px;
    font-weight: 700;
    color: #00BCD4;
}

.quota-total {
    font-size: 12px;
    color: #9e9e9e;
}

.quota-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    background: #00BCD4;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.quota-bar-fill.low {
    background: #f44336;
}

.quota-bar-fill.medium {
    background: #ff9800;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9e9e9e;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
    color: #bdbdbd;
}

.empty-state-icon i {
    font-size: 48px;
}

.empty-state-text {
    font-size: 14px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}
