/* Design System for infakt-kod.pl - Premium InFakt Style */
:root {
    --primary: #012340;
    /* Navy Blue InFakt */
    --accent: #00a8e8;
    /* Light Cyan InFakt */
    --accent-dark: #0088bc;
    --text-main: #1a1a1a;
    --text-muted: #555;
    --bg-light: #f4f7fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(1, 35, 64, 0.08);
    /* Navy shadow */
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.verified-badge {
    display: inline-block;
    margin-top: 12px;
    background: #edf7f0;
    color: #1a7a3c;
    border: 1px solid #a3d9b6;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Promo Box */
.promo-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(1, 35, 64, 0.05);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.promo-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.promo-tag {
    display: inline-block;
    background: #eef6ff;
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-code {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    background: #f0f4f8;
    padding: 15px 30px;
    border-radius: var(--radius);
    display: inline-block;
    margin: 20px 0;
    border: 2px dashed #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: all;
    word-break: break-all;
}

.promo-code:hover {
    border-color: var(--accent);
    background: #f0faff;
}

.promo-details {
    margin: 20px 0 30px;
    color: var(--text-muted);
    font-size: 1rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.promo-details span {
    display: block;
    margin-bottom: 12px;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 10px 20px rgba(0, 168, 232, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
    box-shadow: 0 15px 30px rgba(0, 168, 232, 0.3);
}

/* Sections */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent);
    margin-right: 15px;
    border-radius: 2px;
}

ul,
ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 12px;
}

/* FAQ */
.faq-container {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.faq-item {
    border-bottom: 1px solid #edf2f7;
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.faq-item p {
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    border-top: 1px solid #dee2e6;
    padding-top: 40px;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--accent);
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .promo-code {
        font-size: 1.4rem;
        padding: 12px 20px;
    }

    .container {
        padding: 20px;
    }
}

/* Redirect Overlay & Toast */
.redirect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.redirect-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.redirect-box {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 90%;
    width: 400px;
    animation: scaleUp 0.3s ease;
}
.redirect-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 15px 0 5px;
}
.redirect-text strong {
    color: #012340;
}
.redirect-sub {
    font-size: 1rem;
    color: #555;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #012340;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes scaleUp {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.copy-helper {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted, #555);
    margin-top: 6px;
    font-weight: 500;
    text-align: center;
}