:root {
    --primary: #e3000f; /* mBank Red Accent */
    --primary-dark: #b3000b;
    --bg-dark: #f4f5f8; /* Light gray page background */
    --bg-darker: #ffffff; /* White section background */
    --text-main: #1a1a1a; /* Dark text */
    --text-secondary: #6b7280; /* Gray text */
    --box-bg: #ffffff; /* White card backgrounds */
    --box-border: #e5e7eb; /* Light gray borders */
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: .2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- TYPOGRAPHY & UTILITIES --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--text-secondary);
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

@media(min-width: 768px) {
    .hero-title {
        font-size: 56px;
    }
}

/* --- HEADER --- */
.header {
    background: rgba(255, 255, 255, 0.95); /* Light header */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--box-border);
}

.header-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
}

/* --- HERO SECTION WITH VIDEO BG --- */
.hero-section {
    position: relative;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(244, 245, 248, 0.5) 0%, var(--bg-dark) 100%);
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media(min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 420px;
    }
}

.badge-new {
    background: rgba(227, 0, 15, 0.1);
    color: var(--primary);
    border: 1px solid rgba(227, 0, 15, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

.features-list svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- CALCULATOR WIDGET --- */
.calc-card {
    background: #ffffff;
    border: 1px solid var(--box-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.calc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.calc-top {
    padding: 30px;
}

.calc-bottom {
    background: #f9fafb;
    padding: 20px 30px;
    border-top: 1px solid var(--box-border);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.calc-value-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.calc-main-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.calc-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.slider-container {
    position: relative;
    height: 50px;
    margin-bottom: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.slider-bg {
    position: absolute;
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
}

.slider-fill {
    position: absolute;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    width: 50%;
}

.slider-knob {
    position: absolute;
    left: 50%;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 4px solid var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.real-range {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    margin: 0;
}

.btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    padding: 18px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(227, 0, 15, 0.2);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.summary-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--box-border);
}

.td-label {
    color: var(--text-secondary);
}

.td-val {
    text-align: right;
    font-weight: 600;
    color: var(--text-main);
}

.tr-total td {
    border-top: 1px solid var(--box-border);
    padding-top: 15px;
    font-size: 16px;
    color: var(--primary);
}

/* --- SECTION BLOCKS --- */
.section-padding {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.card:hover {
    border-color: rgba(227, 0, 15, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

.icon-box.green {
    background: rgba(227, 0, 15, 0.08);
    color: var(--primary);
}

/* --- FORM VIEW --- */
.form-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 0 20px;
}

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

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 16px;
    transition: 0.2s;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 0, 15, 0.15);
}

.error-text {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* --- VERIFICATION ANIMATION (From inspiracja3) --- */
.h-screen {
    height: 100vh;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(227, 0, 15, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.z-10 {
    z-index: 10;
    position: relative;
}

.tiktok-loader {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

.tiktok-loader-ball {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: loader 1s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.tiktok-loader-ball.cyan {
    background: #00f2fe;
    left: 0;
    animation-delay: -0.5s;
    mix-blend-mode: screen;
}

.tiktok-loader-ball.red {
    background: var(--primary);
    right: 0;
    mix-blend-mode: screen;
}

@keyframes loader {

    0%,
    100% {
        transform: scale(1) translateX(0);
    }

    50% {
        transform: scale(1.2) translateX(20px);
        z-index: 10;
    }
}

.animate-up {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- PAYMENT SUMMARY --- */
.payment-summary {
    background: #f9fafb;
    border: 1px solid var(--box-border);
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--box-border);
    font-size: 14px;
}

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

.payment-row span:first-child {
    color: var(--text-secondary);
}

.payment-row span:last-child {
    color: var(--text-main);
    font-weight: 500;
}

.payment-row.total {
    padding-top: 20px;
    padding-bottom: 20px;
    align-items: center;
}

.payment-row.total span:first-child {
    font-weight: 700;
    color: var(--text-main);
}

.payment-row.total span:last-child {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.loader-spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

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

    100% {
        transform: rotate(360deg);
    }
}