:root {
    --brand-blue: #2563eb;
    --bg-main: #f4f7f9;
    --card-border: #e2e8f0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: #1e293b;
    -webkit-tap-highlight-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: #1e293b;
}

.input-field:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-multiplier {
    background-color: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.6rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: #64748b;
    transition: all 0.2s;
}

.btn-multiplier.active {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-calculate {
    background: var(--brand-blue);
    color: white;
    font-weight: 700;
    border-radius: 1rem;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    transition: all 0.3s ease;
}

.btn-calculate:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
    transform: translateY(-1px);
}

.btn-calculate:active {
    transform: translateY(0);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.hidden {
    display: none !important;
}

body.export-modal-open {
    overflow: hidden;
}

.btn-export-secondary {
    background: #ffffff;
    color: #1e40af;
    font-weight: 700;
    border-radius: 0.9rem;
    border: 1.5px solid #bfdbfe;
    transition: all 0.2s ease;
}

.btn-export-secondary:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.export-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.export-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
}

.export-modal-panel {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.export-modal-panel h3,
.export-modal-panel p {
    margin: 0;
}

.export-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #f8fafc;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 640px) {
    .export-modal {
        padding: 0.75rem;
    }

    .export-modal-panel {
        padding: 1.5rem 1rem 1rem;
    }
}

.export-capture-frame {
    position: fixed;
    left: -20000px;
    top: 0;
    width: 1080px;
    padding: 24px;
    z-index: -1;
}

.export-capture-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px;
    color: #0f172a;
}

.export-capture-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.export-capture-kicker {
    font-size: 11px;
    color: #64748b;
    letter-spacing: 0.2em;
    font-weight: 800;
    margin: 0 0 6px;
}

.export-capture-title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
    color: #0f172a;
}

.export-capture-date {
    font-size: 13px;
    color: #475569;
    margin: 0;
    font-weight: 600;
}

.export-capture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.export-metrics,
.export-image-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
}

.export-sale-card {
    background: linear-gradient(140deg, #071134 0%, #0a1a4b 56%, #08153f 100%);
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.export-metrics h3,
.export-image-block h3 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #334155;
}

.export-metric-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
    color: #0f172a;
}

.export-metric-row:last-child {
    border-bottom: 0;
}

.export-metric-total {
    color: #1d4ed8;
    font-weight: 800;
}

.export-sale-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: #60a5fa;
    font-size: 11px;
}

.export-sale-value {
    margin: 12px 0;
    font-size: 56px;
    line-height: 1;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.export-sale-profit {
    margin: 0;
    font-size: 16px;
    color: #94a3b8;
    font-weight: 700;
}

.export-sale-profit strong {
    color: #34d399;
}

.export-image-block img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}