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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
    min-height: 100vh;
    padding: 60px 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 146, 60, 0.3) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 2px;
}

h1 {
    color: #0f172a;
    font-size: 3.2em;
    margin-bottom: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #64748b;
    font-size: 1.25em;
    font-weight: 500;
}

h2 {
    color: #1e293b;
    margin-bottom: 28px;
    font-size: 1.75em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Form Section */
.form-section {
    margin-bottom: 40px;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    letter-spacing: 0.01em;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #1e293b;
}

input:hover,
select:hover {
    border-color: #cbd5e1;
}

input:focus,
select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
    transform: translateY(-1px);
}

small {
    color: #64748b;
    font-size: 13px;
    display: block;
    margin-top: 6px;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 18px 36px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Results Section */
.results-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid #f1f5f9;
}

.results-header {
    margin-bottom: 35px;
}

.purchase-summary {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    padding: 24px 28px;
    border-radius: 16px;
    margin-top: 18px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Bank Group */
.bank-group {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 32px;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.bank-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #f97316 0%, #fb923c 100%);
}

.bank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.bank-name {
    font-size: 1.9em;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.campaign-count {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Campaign Card */
.campaign-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.campaign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.campaign-card:hover {
    border-color: #f97316;
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.15);
    transform: translateY(-4px);
}

.campaign-card:hover::before {
    transform: scaleX(1);
}

.card-name {
    font-size: 1.35em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.benefit-amount {
    font-size: 2.2em;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.benefit-type {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.05em;
}

.campaign-name {
    font-size: 1.1em;
    color: #475569;
    margin-bottom: 18px;
    font-weight: 500;
    line-height: 1.6;
}

.campaign-details {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-radius: 12px;
    margin-top: 18px;
    border: 1px solid #e2e8f0;
}

.campaign-details h4 {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.campaign-details ul {
    list-style: none;
    padding: 0;
}

.campaign-details li {
    padding: 8px 0;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.campaign-details li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Progress Info */
.progress-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid #fbbf24;
}

.progress-info strong {
    color: #92400e;
    font-weight: 700;
}

.progress-bar-container {
    background: #e5e7eb;
    border-radius: 12px;
    height: 24px;
    margin-top: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar {
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

/* Usage Status */
.usage-status {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 13px;
    flex-wrap: wrap;
}

.usage-badge {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #93c5fd;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}

.no-results h3 {
    font-size: 2em;
    margin-bottom: 18px;
    color: #1e293b;
    font-weight: 700;
}

.no-results p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #64748b;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 60px 40px;
}

.spinner {
    border: 5px solid #e2e8f0;
    border-top: 5px solid #f97316;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #fca5a5;
    color: #991b1b;
    padding: 24px;
    border-radius: 16px;
    margin-top: 24px;
    border-left: 4px solid #ef4444;
}

.error-message strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.15em;
    font-weight: 700;
}

.error-message p {
    color: #991b1b;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bank-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .benefit-amount {
        font-size: 1.5em;
    }

    .usage-status {
        flex-direction: column;
        gap: 8px;
    }
}
