/* ==============================
   Procuris.pl Design System v2
   Dark premium aesthetic — inspired by awsmd.com
   ============================== */

/* ---- Design Tokens ---- */
:root {
    /* Dark palette */
    --bg-900: #050505;
    --bg-800: #0a0a0a;
    --bg-700: #111111;
    --bg-600: #161616;
    --bg-500: #1a1a1a;
    --bg-400: #222222;
    --bg-300: #2a2a2a;
    --bg-200: #333333;

    /* Accent */
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.35);
    --accent-subtle: rgba(108, 92, 231, 0.08);
    --green: #00d4aa;
    --green-glow: rgba(0, 212, 170, 0.25);
    --orange: #ff6b35;
    --orange-glow: rgba(255, 107, 53, 0.25);
    --yellow: #ffd166;
    --pink: #ff6b9d;
    --cyan: #00d4ff;

    /* Text */
    --text: #f0f0f0;
    --text-secondary: #888888;
    --text-muted: #555555;
    --text-on-accent: #ffffff;

    /* Semantic */
    --primary: var(--accent);
    --primary-dark: #5a4bd4;
    --primary-light: rgba(108, 92, 231, 0.15);
    --success: #00d4aa;
    --success-bg: rgba(0, 212, 170, 0.1);
    --warning: #ffd166;
    --warning-bg: rgba(255, 209, 102, 0.1);
    --danger: #ff6b6b;
    --danger-bg: rgba(255, 107, 107, 0.1);
    --info: #00d4ff;
    --info-bg: rgba(0, 212, 255, 0.1);

    /* Surfaces */
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --surface-raised: rgba(255, 255, 255, 0.05);
    --surface-glass: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(108, 92, 231, 0.3);

    /* Radii */
    --radius-sm: 0.5rem;
    --radius: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-2xl: 2.5rem;
    --radius-pill: 15rem;

    /* Shadows & Glows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --glow-accent: 0 0 30px var(--accent-glow);
    --glow-green: 0 0 30px var(--green-glow);

    /* Transitions */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container: 73.5rem;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', sans-serif;
    --muted: var(--text-secondary);

    /* Compat aliases */
    --bg: var(--bg-800);
    --bg-white: var(--bg-700);
    --bg-soft: var(--bg-600);
    --text-light: var(--text-muted);
    --text-on-dark: #ffffff;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-900);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -0.03em;
    margin: 0;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }
small, .small { font-size: 0.875rem; }
code { background: var(--surface); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.875em; color: var(--orange); }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
strong { font-weight: 600; }

.display-heading {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}
.display-heading span {
    background: linear-gradient(135deg, var(--accent-light), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-family: var(--font);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 3.25rem;
}

.row { display: flex; flex-wrap: wrap; margin: 0 -0.5rem; }
.row > * { padding: 0 0.5rem; width: 100%; }
.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.33333%; }
.col-2 { flex: 0 0 auto; width: 16.66667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.33333%; }
.col-5 { flex: 0 0 auto; width: 41.66667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.33333%; }
.col-8 { flex: 0 0 auto; width: 66.66667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333%; }
.col-11 { flex: 0 0 auto; width: 91.66667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.33333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.66667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-8 { flex: 0 0 auto; width: 66.66667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
}
@media (min-width: 992px) {
    .col-lg-2 { flex: 0 0 auto; width: 16.66667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.33333%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.66667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.33333%; }
}

/* ---- Flexbox Utilities ---- */
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.d-none { display: none; }
.d-grid { display: grid; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex-grow: 1; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* ---- Spacing ---- */
.m-0 { margin: 0; } .m-1 { margin: 0.25rem; } .m-2 { margin: 0.5rem; } .m-3 { margin: 1rem; } .m-4 { margin: 1.5rem; } .m-5 { margin: 3rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; }
.ms-1 { margin-left: 0.25rem; } .ms-2 { margin-left: 0.5rem; } .ms-3 { margin-left: 1rem; } .ms-auto { margin-left: auto; }
.me-1 { margin-right: 0.25rem; } .me-2 { margin-right: 0.5rem; } .me-3 { margin-right: 1rem; } .me-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-0 { padding: 0; } .p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .p-5 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-3 { padding-left: 1rem; padding-right: 1rem; } .px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-3 { padding-top: 1rem; padding-bottom: 1rem; } .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* ---- Text Utilities ---- */
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-start { text-align: left; }
.text-muted { color: var(--text-secondary); }
.text-light { color: var(--text-muted); }
.text-dark { color: var(--text) !important; }
.text-primary { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-white { color: #fff !important; }
.text-decoration-none { text-decoration: none; }
.text-decoration-none:hover { text-decoration: none; }
.text-nowrap { white-space: nowrap; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-bold { font-weight: 700; }
.fw-normal { font-weight: 400; }
.fs-6 { font-size: 1rem; }

/* ---- Display Sizes ---- */
.display-1 { font-size: 4rem; line-height: 1; }

/* ---- Borders ---- */
.border { border: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

/* ---- Overflow / Sizing ---- */
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.table-responsive { overflow-x: auto; }

/* ---- Background Utilities ---- */
.bg-white { background-color: var(--bg-700); }
.bg-light { background-color: var(--bg-600); }

/* ---- Misc ---- */
.g-2 > * { padding: 0 0.375rem; }
.g-2 { margin: 0 -0.375rem; }

/* ==============================
   COMPONENTS
   ============================== */

/* ---- Navigation (glass morphism) ---- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-bar-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}
.site-nav .nav-brand {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.site-nav .nav-brand:hover { opacity: 0.85; }
.nav-logo { height: 36px; width: auto; filter: brightness(0) invert(1) opacity(0.9); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--surface-hover);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links,
    .nav-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-700);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        z-index: 100;
        backdrop-filter: blur(20px);
    }
    .nav-links.open,
    .nav-actions.open { display: flex; }
    .nav-links a { padding: 0.75rem 0.5rem; }
    .site-nav .container { position: relative; }
    .nav-bar-inner { gap: 0.5rem; }
}

/* ---- Buttons (modern with glow) ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--text);
    color: var(--bg-900);
    border-color: var(--text);
}
.btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--bg-900);
    box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--bg-900);
    box-shadow: var(--glow-accent);
}

.btn-secondary {
    background: var(--bg-400);
    color: var(--text);
    border-color: var(--bg-400);
}
.btn-secondary:hover { background: var(--bg-300); border-color: var(--bg-300); color: var(--text); }

.btn-success { background: var(--success); color: var(--bg-900); border-color: var(--success); }
.btn-success:hover { box-shadow: var(--glow-green); }
.btn-danger { background: var(--danger); color: var(--text-on-accent); border-color: var(--danger); }

.btn-outline-primary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline-primary:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: rgba(255,255,255,0.2);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-outline-secondary:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: rgba(255,255,255,0.15);
}

.btn-outline-success { background: transparent; color: var(--success); border-color: var(--success); }
.btn-outline-success:hover { background: var(--success); color: var(--bg-900); }
.btn-outline-warning { background: transparent; color: var(--warning); border-color: var(--warning); }
.btn-outline-warning:hover { background: var(--warning); color: var(--bg-900); }
.btn-outline-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: var(--text-on-accent); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; min-height: 3.5rem; }

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.bg-primary { background-color: var(--accent) !important; color: #fff !important; }
.bg-secondary { background-color: var(--bg-300) !important; color: var(--text-secondary) !important; }
.bg-success { background-color: rgba(0, 212, 170, 0.15) !important; color: var(--success) !important; }
.bg-danger { background-color: rgba(255, 107, 107, 0.15) !important; color: var(--danger) !important; }
.bg-warning { background-color: rgba(255, 209, 102, 0.15) !important; color: var(--warning) !important; }
.bg-info { background-color: rgba(0, 212, 255, 0.15) !important; color: var(--info) !important; }

/* Source badges */
.badge-bzp { background: rgba(255, 107, 107, 0.12); color: #ff6b6b; border: 1px solid rgba(255, 107, 107, 0.2); }
.badge-ted { background: rgba(0, 212, 255, 0.12); color: #00d4ff; border: 1px solid rgba(0, 212, 255, 0.2); }
.badge-bk { background: rgba(0, 212, 170, 0.12); color: #00d4aa; border: 1px solid rgba(0, 212, 170, 0.2); }
.badge-bip { background: rgba(108, 92, 231, 0.12); color: #a29bfe; border: 1px solid rgba(108, 92, 231, 0.2); }

/* ---- Tag ---- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--accent-subtle);
    color: var(--accent-light);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-accent);
}

/* ---- Forms ---- */
.form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}
.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-600);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-500);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control-sm, .form-select-sm { padding: 0.4rem 0.65rem; font-size: 0.8125rem; }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

.form-check { display: flex; align-items: center; gap: 0.5rem; min-height: 1.5rem; }
.form-check-input { width: 1.1rem; height: 1.1rem; margin: 0; border: 1.5px solid var(--border); border-radius: 4px; cursor: pointer; accent-color: var(--accent); flex-shrink: 0; background: var(--bg-600); }
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-label { font-size: 0.9375rem; cursor: pointer; color: var(--text); }

/* Symfony form errors */
.form-error-list, ul.form-error-list { list-style: none; padding: 0; margin: 0.25rem 0 0; }
.form-error-list li, .form-error-message { color: var(--danger); font-size: 0.8125rem; margin-top: 0.25rem; }

/* ---- Alerts / Flash Messages ---- */
.alert {
    position: relative;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(0, 212, 170, 0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(255, 209, 102, 0.2); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(255, 107, 107, 0.2); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid rgba(0, 212, 255, 0.2); }
.alert-dismissible { padding-right: 3rem; }
.btn-close {
    position: absolute; top: 50%; right: 0.75rem; transform: translateY(-50%);
    background: none; border: none; font-size: 1.25rem; line-height: 1; opacity: 0.5; cursor: pointer; color: inherit; padding: 0.25rem;
}
.btn-close::after { content: '\00d7'; }
.btn-close:hover { opacity: 1; }

/* ---- Tables ---- */
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-weight: 600; color: var(--text-secondary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table-sm th, .table-sm td { padding: 0.5rem 0.75rem; }
.table-hover tbody tr:hover { background: var(--surface-hover); }
.table-striped tbody tr:nth-child(even) { background: var(--surface); }
.table-light, thead.table-light { background: var(--surface); }
thead.table-light th { background: var(--surface); }

/* ---- Cards (glass morphism) ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.notice-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
    position: relative;
}
.notice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(0, 212, 170, 0.05));
    pointer-events: none;
}
.notice-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.notice-card:hover::before { opacity: 1; }

.search-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}
.stat-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-1px); }
.stat-card .stat-number { font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }

/* ---- Pagination ---- */
.pagination { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.pagination li { display: inline-flex; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
    border-radius: var(--radius-pill); font-size: 0.875rem; font-weight: 500;
    color: var(--text-secondary); text-decoration: none; transition: all var(--transition);
    border: 1px solid var(--border); background: var(--surface);
}
.pagination a:hover { background: var(--accent-subtle); color: var(--accent-light); border-color: var(--border-accent); }
.pagination .active span, .pagination .current span { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .disabled span { opacity: 0.3; cursor: not-allowed; }

/* ---- Site Footer ---- */
.site-footer {
    margin-top: 0;
    padding: 3rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: var(--bg-900);
    border-top: 1px solid var(--border);
}
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text); }

/* ==============================
   LANDING PAGE
   ============================== */

/* -- Section label -- */
.section-label {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-pill);
    background: var(--accent-subtle);
    color: var(--accent-light);
    border: 1px solid var(--border-accent);
    margin-bottom: 1.25rem;
}
.section-label--red { background: var(--danger-bg); color: var(--danger); border-color: rgba(255, 107, 107, 0.2); }
.section-label--green { background: var(--success-bg); color: var(--success); border-color: rgba(0, 212, 170, 0.2); }

/* -- Hero -- */
.hero {
    padding: 7rem 0 5rem;
    text-align: left;
    background: linear-gradient(to right, rgba(5,5,5,0.92) 40%, rgba(5,5,5,0.55) 100%), url('/images/hero_procuris2.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}
/* Radial gradient glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: -100px;
    right: 10%;
    pointer-events: none;
    opacity: 0.4;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--green-glow), transparent 70%);
    bottom: -100px;
    left: 5%;
    pointer-events: none;
    opacity: 0.3;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    background: var(--accent-subtle);
    color: var(--accent-light);
    border: 1px solid var(--border-accent);
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 1.5rem;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--accent-light), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0;
}
.hero-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    backdrop-filter: blur(10px);
}
.hero-stat-card {
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.hero-stat-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }
.hero-stat-card:nth-child(1) { background: rgba(108, 92, 231, 0.1); }
.hero-stat-card:nth-child(2) { background: rgba(255, 209, 102, 0.08); }
.hero-stat-card:nth-child(3) { background: rgba(0, 212, 170, 0.08); }
.hero-stat-card:nth-child(4) { background: rgba(255, 107, 53, 0.08); }
.hero-stat-card .stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.hero-stat-card .stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* -- Problem / Solution -- */
.problem-section { padding: 6rem 0; background: var(--bg-900); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.problem-col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}
.problem-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 1.5rem; object-fit: cover; max-height: 240px; }
.problem-col h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.problem-list, .solution-list { list-style: none; padding: 0; margin: 0; }
.problem-list li, .solution-list li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem 0; font-size: 1rem; line-height: 1.5;
    font-family: var(--font);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.problem-list li:last-child, .solution-list li:last-child { border-bottom: none; }
.problem-list i { color: var(--danger); font-size: 1.25rem; margin-top: 0.15rem; flex-shrink: 0; }
.solution-list i { color: var(--success); font-size: 1.25rem; margin-top: 0.15rem; flex-shrink: 0; }

/* -- Steps -- */
.steps-section { padding: 6rem 0; background: url('/images/tlo_trzykroki.jpg') center/cover no-repeat; color: #1a1a2e; }
.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
}
.step-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
}
.step-card:hover { border-color: rgba(0,0,0,0.15); transform: translateY(-3px); }
.step-number {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--glow-accent);
}
.step-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; color: #1a1a2e; }
.step-card p { color: #444; font-size: 1rem; margin-bottom: 0; line-height: 1.6; font-family: var(--font); }
.step-arrow {
    display: flex; align-items: center; justify-content: center;
    padding-top: 4rem;
    color: #666;
    font-size: 1.5rem;
}
.steps-section .section-label { background: rgba(99,102,241,0.15); color: #4f46e5; border-color: rgba(99,102,241,0.3); }
.steps-section .display-heading { color: #1a1a2e; }
.steps-section .display-heading span { background: linear-gradient(135deg, #4f46e5, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* -- Features -- */
.features-section { padding: 6rem 0; background: var(--bg-900); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card {
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.feature-card:nth-child(1) { background: rgba(108, 92, 231, 0.06); }
.feature-card:nth-child(2) { background: rgba(255, 209, 102, 0.05); }
.feature-card:nth-child(3) { background: rgba(255, 107, 157, 0.05); }
.feature-card:nth-child(4) { background: rgba(255, 107, 53, 0.05); }
.feature-card:nth-child(5) { background: rgba(0, 212, 170, 0.05); }
.feature-card:nth-child(6) { background: rgba(0, 212, 255, 0.05); }
.feature-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-3px); }
.feature-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    background: rgba(255,255,255,0.06);
    color: var(--text);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 0; line-height: 1.6; font-family: var(--font); }

/* -- Sources -- */
.sources-section { padding: 6rem 0; background: var(--bg-900); }
.sources-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.25rem; max-width: 56rem; margin: 0 auto;
}
.source-card-v2 {
    display: flex; align-items: flex-start; gap: 1.25rem;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
}
.source-card-v2:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }
.source-card-v2 h5 { margin-bottom: 0.35rem; font-size: 1.125rem; }
.source-card-v2 p { font-family: var(--font); }
.source-icon-v2 {
    width: 48px; height: 48px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: #fff; flex-shrink: 0;
}
.source-icon-v2.bzp { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.source-icon-v2.ted { background: linear-gradient(135deg, #00d4ff, #0984e3); }
.source-icon-v2.bk { background: linear-gradient(135deg, #00d4aa, #00b894); }
.source-icon-v2.bip { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }

/* -- Industries -- */
.industries-section { padding: 6rem 0; background: var(--bg-900); }
.industries-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.industry-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.industry-chip:hover {
    background: var(--accent-subtle);
    border-color: var(--border-accent);
    color: var(--accent-light);
}
.industry-chip i { font-size: 1.1rem; }

/* -- For Whom -- */
.for-whom-section { padding: 6rem 0; background: var(--bg-900); }
.whom-card {
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    transition: all var(--transition);
    border: 1px solid var(--border);
}
.whom-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); }
.row > *:nth-child(1) .whom-card { background: rgba(108, 92, 231, 0.06); }
.row > *:nth-child(2) .whom-card { background: rgba(0, 212, 170, 0.06); }
.row > *:nth-child(3) .whom-card { background: rgba(255, 107, 53, 0.06); }
.whom-icon {
    width: 56px; height: 56px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.25rem;
    background: rgba(255,255,255,0.06); color: var(--text);
}
.whom-card h4 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.whom-card p { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 0; line-height: 1.6; font-family: var(--font); }

/* -- FAQ Landing -- */
.faq-landing-section { padding: 6rem 0; background: var(--bg-900); }

/* -- CTA -- */
.cta-section { padding: 5rem 0 6rem; background: var(--bg-900); }
.cta-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 5rem 3rem;
    text-align: center;
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.cta-inner::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.5;
}
.cta-section h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
    position: relative;
}
.cta-section p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    position: relative;
}
.cta-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0;
    position: relative;
}

/* ==============================
   APP-SPECIFIC
   ============================== */

/* Tom Select overrides */
.ts-wrapper { margin: 0; }
.ts-wrapper .ts-control {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.4rem 0.65rem; font-size: 0.875rem; background: var(--bg-600); color: var(--text); min-height: 38px;
}
.ts-wrapper .ts-control:focus-within, .ts-wrapper.focus .ts-control {
    border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.ts-wrapper .ts-dropdown {
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 4px;
    background: var(--bg-600); color: var(--text);
}
.ts-wrapper .ts-dropdown .option { padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--text); }
.ts-wrapper .ts-dropdown .option:hover { background: var(--surface-hover); }
.ts-wrapper .ts-dropdown .active { background: var(--accent-subtle); color: var(--accent-light); }
.ts-wrapper .ts-control .item {
    background: var(--accent-subtle); color: var(--accent-light); border: 1px solid var(--border-accent);
    border-radius: var(--radius-pill); padding: 0.15rem 0.5rem; font-size: 0.8125rem; font-weight: 500;
}
.ts-wrapper .ts-control .item .remove { border: none; color: var(--accent-light); }
.ts-wrapper.form-control-sm .ts-control { min-height: 0; padding: 0.15rem 0.5rem; font-size: 0.8125rem; }
.ts-wrapper .ts-control input { color: var(--text); }

/* Input group */
.input-group { display: flex; align-items: stretch; }
.input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: none; }

/* Table borderless */
.table-borderless th, .table-borderless td { border: none; }

/* Textarea */
textarea.form-control { resize: vertical; min-height: 80px; }

/* FAQ */
.faq-list { max-width: 800px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    background: var(--surface);
    transition: all 0.2s;
    overflow: hidden;
}
.faq-item[open] { border-color: var(--border-accent); }
.faq-question {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1.25rem 1.5rem; font-weight: 600; font-size: 1rem;
    cursor: pointer; list-style: none; color: var(--text);
    user-select: none; font-family: var(--font);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }
.faq-icon { font-size: 0.75rem; transition: transform 0.25s; color: var(--accent); flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(90deg); }
.faq-answer { padding: 0 1.5rem 1.5rem 3rem; color: var(--text-secondary); line-height: 1.7; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { margin-bottom: 0.75rem; padding-left: 1.25rem; }
.faq-answer li { margin-bottom: 0.25rem; }

/* Glossary */
.glossary-list { max-width: 800px; }
.glossary-letter {
    color: var(--accent-light);
    font-size: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}
.glossary-item {
    padding: 0.75rem 0 0.75rem 1rem;
    border-left: 3px solid var(--border);
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.glossary-item:hover { border-left-color: var(--accent); }
.glossary-term { font-weight: 700; color: var(--text); margin-bottom: 0.25rem; font-family: var(--font); font-size: 1rem; }
.glossary-item p { color: var(--text-secondary); margin-bottom: 0; line-height: 1.6; }

/* ==============================
   SCROLL ANIMATIONS
   ============================== */

/* Elements with data-animate are initially hidden */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered children */
[data-animate-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-animate-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-animate-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; }
[data-animate-stagger].is-visible > *:nth-child(7) { transition-delay: 0.48s; }
[data-animate-stagger].is-visible > *:nth-child(8) { transition-delay: 0.56s; }
[data-animate-stagger].is-visible > *:nth-child(9) { transition-delay: 0.64s; }
[data-animate-stagger].is-visible > *:nth-child(10) { transition-delay: 0.72s; }
[data-animate-stagger].is-visible > *:nth-child(11) { transition-delay: 0.80s; }
[data-animate-stagger].is-visible > *:nth-child(12) { transition-delay: 0.88s; }
[data-animate-stagger].is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glow pulse for accent elements */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow); }
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 480px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .problem-grid { grid-template-columns: 1fr; }
    .sources-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
    .step-arrow { display: none; }
    .container { padding: 0 2rem; }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 0 3rem; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-visual { grid-template-columns: 1fr 1fr; }
    .search-sidebar { padding: 1.5rem; }
    .stat-card .stat-number { font-size: 1.5rem; }
    .display-1 { font-size: 3rem; }
}

@media (max-width: 576px) {
    .container { padding: 0 1rem; }
    .hero { padding: 2.5rem 0; }
    .hero-visual { grid-template-columns: 1fr; }
    .problem-col { padding: 1.5rem; }
    .step-card { padding: 1.75rem 1.25rem; }
    .sources-grid { grid-template-columns: 1fr; }
    .features-section, .sources-section, .steps-section,
    .industries-section, .for-whom-section, .faq-landing-section,
    .problem-section, .cta-section, .stats-bar { padding: 3rem 0; }
    .cta-inner { padding: 3rem 1.5rem; }
}
