/* === Hero illustration fit and zoom === */
.fit-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform .25s ease, filter .25s ease;
    cursor: zoom-in;
}

.zoomable:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Lightbox overlay for zoom */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

#lightbox.open {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, .6);
}

:root {
    --bg: #0b1220;
    --panel: #0b1224;
    --panel-2: #0d1530;
    --card: rgba(13, 22, 44, .7);
    --muted: #94a3b8;
    --text: #e5e7eb;
    --brand: #7aa2ff;
    --accent: #22c55e;
    --danger: #ef4444;
    --border: #1f2a44;
    --shadow: 0 10px 40px rgba(0, 0, 0, .45);
    --radius: 14px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    /* Single global background that does not repeat or "restart" */
    background: 
        radial-gradient(1400px 800px at 5% 10%, rgba(122, 162, 255, .15) 0, transparent 50%),
        radial-gradient(1200px 600px at 95% 90%, rgba(34, 197, 94, .12) 0, transparent 50%),
        radial-gradient(1920px 1080px at 10% -10%, #142042 0, transparent 60%),
        linear-gradient(180deg, #0a1022 0%, #0b1220 100%);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: fixed, fixed, fixed, fixed;
    /* keep background stationary to avoid seams */
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    padding-top: 72px;
    /* offset for fixed header height */
}

a {
    color: inherit;
    text-decoration: none
}

.app-shell {
    min-height: calc(100vh - 64px)
}

/* below header */

/* Top header */
.app-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(130%) blur(8px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.app-header .brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    letter-spacing: .2px
}

.app-header .brand i {
    font-size: 1.1rem;
    color: var(--brand)
}

.app-header .hdr-right {
    display: flex;
    align-items: center;
    gap: .5rem
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03)
}

.user-chip.muted {
    opacity: .6
}

/* clickable login chip */
.user-chip[role=button] {
    cursor: pointer
}

.user-chip[role=button]:hover {
    border-color: #335493;
    background: rgba(255, 255, 255, .06)
}

/* decorative background */
.bg-decor:before,
.bg-decor:after {
    content: "";
    position: fixed;
    filter: blur(60px);
    opacity: .22;
    z-index: -1;
}

.bg-decor:before {
    width: 420px;
    height: 420px;
    left: -120px;
    top: -80px;
    background: radial-gradient(circle at 30% 30%, #7aa2ff 0, transparent 60%)
}

.bg-decor:after {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -140px;
    background: radial-gradient(circle at 70% 70%, #22c55e 0, transparent 60%)
}

/* ===================== Landing OnePager (public site) ===================== */
:root {
    --container: 1180px;
}

/* Generic layout helpers */
.section {
    padding: 72px 0;
}

.section .section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -.01em;
    background: linear-gradient(135deg, #ffffff 0%, #c8d6ff 50%, #7aa2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.section .section-sub {
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 1.6rem;
}

.container-narrow {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* Top public nav (reuses .app-header) */
.site-header {
    position: fixed;
    /* keep header always visible */
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    /* higher than any section overlays */
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 24px;
    backdrop-filter: saturate(150%) blur(12px);
    background: linear-gradient(180deg, rgba(9, 13, 26, .95), rgba(9, 13, 26, .85));
    border-bottom: 1px solid rgba(122, 162, 255, .15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav a {
    color: #cfe0ff;
    padding: .5rem .85rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    border-color: rgba(122, 162, 255, .3);
    background: rgba(122, 162, 255, .1);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    padding: 100px 0 80px 0;
    position: relative;
    background: transparent;
    overflow: hidden;
    /* use global page gradient only */
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* subtle top glow that fades to transparent, no hard seam */
    background: radial-gradient(1400px 700px at 10% -10%, rgba(20, 32, 66, .85) 0, rgba(20, 32, 66, 0) 60%);
}

.hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(122, 162, 255, .15) 0, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero .wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin: 0 0 1.2rem 0;
    color: #f0f6ff;
    background: linear-gradient(135deg, #ffffff 0%, #c8d6ff 50%, #7aa2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero p.lead {
    font-size: 1.2rem;
    color: #c8d6ff;
    line-height: 1.7;
    max-width: 90%;
}

.hero .cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero .cta .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero .cta .btn:first-child {
    background: linear-gradient(135deg, #7aa2ff 0%, #5b8fff 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(122, 162, 255, .4);
}

.hero .cta .btn:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(122, 162, 255, .5);
}

.hero .badge-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem .55rem;
    border: 1px solid rgba(122, 162, 255, .35);
    background: rgba(122, 162, 255, .12);
    color: #dbeafe;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.hero .illustration {
    border: 1px solid rgba(122, 162, 255, .2);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(122, 162, 255, .08) 0%, rgba(34, 197, 94, .05) 100%);
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(122, 162, 255, .1);
    position: relative;
    overflow: hidden;
}

.hero .illustration::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(122, 162, 255, .1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero .illus-box {
    height: 320px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    display: grid;
    place-items: center;
    color: #9fb2d1;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* System groups */
.system-groups {
    margin-top: 2rem;
}

.system-group {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.system-group-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(122, 162, 255, .2);
}

.system-group-header.collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    padding: 1rem;
    margin: -1rem -1rem 1rem -1rem;
    border-radius: 12px;
}

.system-group-header.collapse-header:hover {
    background: rgba(122, 162, 255, .08);
}

.system-group-header.collapse-header.active {
    background: rgba(122, 162, 255, .12);
}

.system-group-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #c8d6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    background: none;
    -webkit-text-fill-color: var(--muted);
}

.collapse-icon {
    font-size: 1.2rem;
    color: var(--brand);
    transition: transform 0.3s ease;
}

.system-group-header.collapse-header.active .collapse-icon {
    transform: rotate(180deg);
}

.collapse-content {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 2000px;
    opacity: 1;
}

.collapse-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 1.5rem;
}

.feature {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 22, 44, .8) 0%, rgba(15, 25, 50, .6) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(122, 162, 255, .3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.feature:hover::before {
    opacity: 1;
}

.feature-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid rgba(34, 197, 94, .5);
    background: linear-gradient(135deg, rgba(34, 197, 94, .25) 0%, rgba(34, 197, 94, .15) 100%);
    color: #86efac;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(34, 197, 94, .2);
}

.module-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    padding: .3rem .7rem;
    border-radius: 8px;
    font-size: .75rem;
    letter-spacing: .02em;
    border: 1px solid rgba(122, 162, 255, .4);
    background: linear-gradient(135deg, rgba(122, 162, 255, .2) 0%, rgba(122, 162, 255, .12) 100%);
    color: #a5c4ff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(122, 162, 255, .15);
    z-index: 1;
}

.feature h4 {
    margin: 0.5rem 0 0.75rem 0;
    color: #eaf2ff;
    font-size: 1.1rem;
    font-weight: 700;
}

.feature p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.feature i {
    color: var(--brand);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    background: linear-gradient(135deg, rgba(122, 162, 255, .2) 0%, rgba(122, 162, 255, .1) 100%);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 2rem;
}

.price-card {
    background: linear-gradient(135deg, rgba(13, 22, 44, .9) 0%, rgba(15, 25, 50, .7) 100%);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: rgba(122, 162, 255, .4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(122, 162, 255, .2);
}

.price-card:hover::before {
    opacity: 1;
}

.price-card:nth-child(2) {
    border-color: rgba(122, 162, 255, .3);
    background: linear-gradient(135deg, rgba(122, 162, 255, .12) 0%, rgba(13, 22, 44, .9) 100%);
    transform: scale(1.05);
}

.price-card:nth-child(2)::before {
    opacity: 1;
}

.price-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #eaf2ff;
    margin: 0 0 0.5rem 0;
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #7aa2ff 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

.price small {
    font-size: .85rem;
    color: var(--muted);
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
}

.price-card ul {
    margin: 1rem 0 0 0;
    padding: 0;
    list-style: none;
    color: #cfe0ff;
    flex: 1;
}

.price-card ul p {
    font-weight: 700;
    color: #eaf2ff;
    margin: 1rem 0 0.5rem 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-card ul p:first-child {
    margin-top: 0;
}

.price-card li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.price-card .btn {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Forms (Start using + Contact) */
.form-card {
    background: linear-gradient(135deg, rgba(13, 22, 44, .95) 0%, rgba(15, 25, 50, .85) 100%);
    border: 2px solid rgba(122, 162, 255, .2);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, .3), 0 0 0 1px rgba(122, 162, 255, .1);
    backdrop-filter: blur(10px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
}

.form-grid .full {
    grid-column: 1/-1;
}

.help {
    color: var(--muted);
    font-size: .9rem;
}

/* Availability pill */
.sub-availability {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .82rem;
    border: 1px solid var(--border);
}

.sub-availability.ok {
    background: rgba(34, 197, 94, .14);
    color: #86efac;
    border-color: rgba(34, 197, 94, .35);
}

.sub-availability.bad {
    background: rgba(239, 68, 68, .14);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, .35);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    padding: 26px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==== Autofill fix (Safari/Chrome) for dark inputs ==== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 22, 40, 0.85) inset !important;
    -webkit-text-fill-color: #e5e7eb !important;
    caret-color: #e5e7eb !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

/* ======================= Fancy Tables (Admin) ======================= */
.table {
    /* Bootstrap table variables (ensures no white cells) */
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, .02);
    --bs-table-hover-bg: rgba(255, 255, 255, .04);
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    color: var(--text);
}

.table>:not(caption)>*>* {
    background-color: transparent !important;
    color: inherit;
}

.table-responsive {
    background: rgba(13, 22, 44, .55);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
}

.table-beauty {
    border-collapse: separate;
    border-spacing: 0 10px;
    /* row gap to create card-like rows */
    width: 100%;
    background: transparent;
}

.table-beauty thead th {
    background: rgba(13, 22, 44, .95) !important;
    color: var(--text) !important;
    border: 0 !important;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .4rem .6rem;
}

.table-beauty tbody tr {
    background: rgba(13, 22, 44, .85);
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .30);
}

.table-beauty tbody tr:hover {
    transform: translateY(-1px);
    background: rgba(13, 22, 44, .95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .35);
}

.table-beauty tbody td,
.table-beauty tbody th {
    border: 0 !important;
    padding: .65rem .75rem !important;
    background: transparent !important;
    color: var(--text);
}

/* rounded corners per row */
.table-beauty tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table-beauty tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* compact variant */
.table-compact tbody td {
    padding: .5rem .65rem !important;
}

/* utilities */
.td-muted {
    color: var(--muted);
    font-size: .85rem;
}

.text-truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buttons inside tables */
.table-beauty .btn.btn-ghost {
    border-color: #2a3b66;
}

.table-beauty .btn.btn-ghost:hover {
    border-color: #3b5aa1;
}

/* Status colors for tenant requests */
.status-pill.st-new {
    background: rgba(59, 130, 246, .15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, .35);
}

.status-pill.st-in_progress {
    background: rgba(245, 158, 11, .14);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, .35);
}

.status-pill.st-done {
    background: rgba(34, 197, 94, .14);
    color: #86efac;
    border-color: rgba(34, 197, 94, .35);
}

.status-pill.st-rejected {
    background: rgba(239, 68, 68, .14);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, .35);
}

/* sticky header look for long lists */
.table-wrap {
    position: relative;
}

.table-wrap .table-head-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(13, 22, 44, .95) !important;
    border-bottom: 1px solid var(--border) !important;
}

/* === Landing forms: full-row inputs + polish === */
.form-card .form-control,
.form-card .form-select,
.form-card textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Desktop: 2 kolumny, ale kolumny kurczą się poprawnie */
@media (min-width: 900px) {
    .form-grid.split-2 {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px 20px;
    }
}

/* Input-group na pełną szerokość */
/* Input group alignment (subdomain) */
.form-card .input-group {
    display: flex;
    align-items: stretch;
}

.form-card .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-card .input-group .input-group-text {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 0 .8rem;
    height: 44px;
    border: 1px solid #2a3b66;
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    background: linear-gradient(180deg, rgba(17, 24, 48, .92), rgba(12, 19, 40, .92));
    color: #cfe0ff;
}

/* === Subdomain input visual width enhancement === */
.form-card .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 800px;
}

.form-card .input-group .form-control {
    flex: 1 1 auto;
    min-width: 300px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-card .input-group .input-group-text {
    flex: 0 0 auto;
    max-width: 140px;
    text-align: center;
}

/* Spójny „glass” i placeholdery */
.form-card {
    backdrop-filter: blur(6px) saturate(120%);
}

.form-card .form-control,
.form-card .form-select {
    background: rgba(12, 19, 40, .86);
    border-color: #25345e;
}

.form-card .form-control::placeholder,
textarea::placeholder {
    color: #9fb3d6;
    opacity: .75;
}

.form-card .form-select:focus,
.form-card .form-control:focus {
    border-color: #3d63a7;
    box-shadow: 0 0 0 .25rem rgba(110, 168, 254, .12);
}

.form-card .btn.btn-ghost {
    border-color: #2a3b66;
    background: rgba(122, 162, 255, .08);
}

.form-card .btn.btn-ghost:hover {
    border-color: #3b5aa1;
    background: rgba(122, 162, 255, .14);
}

/* ================= Bootstrap‑like look & grid (dark) ================= */
/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.row.g-3 {
    margin-left: -12px;
    margin-right: -12px;
}

[class^="col-"],
[class*=" col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Form controls to feel like Bootstrap in dark */
.form-label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
    color: #dbeafe;
}

.form-control,
.form-select,
.input-group-text {
    width: 100%;
    background: rgba(16, 23, 44, .92);
    border: 1px solid #2a3b66;
    border-radius: .5rem;
    /* ~8px */
    color: #e5e7eb;
}

.form-control:focus,
.form-select:focus {
    outline: 0;
    border-color: #4a6ed9;
    box-shadow: 0 0 0 .25rem rgba(74, 110, 217, .2);
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .input-group-text {
    border-left: 0;
    background: rgba(16, 23, 44, .92);
    color: #cbd5e1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    border-radius: .5rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #7aa2ff 0%, #5b8fff 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(122, 162, 255, .4);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(122, 162, 255, .5);
    filter: brightness(1.05);
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .25);
    color: #e5e7eb;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .06);
}

/* =================== Enhanced form fields (dark, polished) =================== */
.form-card .form-label {
    display: block;
    margin-bottom: .45rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: #e8efff;
}

/* Base look */
.form-card .form-control,
.form-card .form-select {
    height: 44px;
    padding: .55rem .8rem;
    background: linear-gradient(180deg, rgba(17, 24, 48, .92), rgba(12, 19, 40, .92));
    border: 1px solid #2a3b66;
    border-radius: 12px;
    color: #e5e7eb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02), 0 1px 0 rgba(0, 0, 0, .18);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-card .form-control:hover,
.form-card .form-select:hover {
    border-color: #3b5aa1;
}

/* Focus ring */
.form-card .form-control:focus,
.form-card .form-select:focus {
    outline: 0;
    border-color: #6ea8fe;
    box-shadow: 0 0 0 .25rem rgba(110, 168, 254, .16), inset 0 1px 0 rgba(255, 255, 255, .02);
}

/* Placeholder */
.form-card .form-control::placeholder {
    color: #9fb3d6;
    opacity: .8;
}

/* Textarea to match look */
.form-card textarea.form-control {
    min-height: 120px;
    height: auto;
    line-height: 1.35;
    padding: .7rem .8rem;
    resize: vertical;
}

/* Input group alignment (subdomain) */
.form-card .input-group {
    display: flex;
    align-items: stretch;
}

.form-card .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Validation helpers (optional classes) */
.form-card .form-control.is-valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 .2rem rgba(34, 197, 94, .18);
}

.form-card .form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 .2rem rgba(239, 68, 68, .18);
}

/* Sub-availability chip spacing */
#subdStatus {
    margin-top: .45rem;
}

/* Status: closed (releases subdomain) */
.status-pill.st-closed {
    background: rgba(148, 163, 184, .18);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, .35);
}

/* Slight row polish */
.table-beauty tbody tr {
    transition: transform .12s ease, background-color .12s ease;
}

/* === Ghost button (global) === */
.btn-ghost {
    border: 2px solid rgba(122, 162, 255, .35);
    background: rgba(122, 162, 255, .08);
    color: #dbeafe;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-ghost:hover {
    border-color: #7aa2ff;
    background: rgba(122, 162, 255, .18);
    box-shadow: 0 4px 20px rgba(122, 162, 255, .25);
    transform: translateY(-2px);
    color: #fff;
}

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

.btn-ghost.btn-sm {
    padding: .28rem .55rem;
    font-size: .875rem;
    border-radius: 10px;
}

/* ========== Admin dashboard tiles ========== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-tile {
    display: block;
    padding: 28px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(13, 22, 44, .9) 0%, rgba(15, 25, 50, .7) 100%);
    border: 2px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-tile:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(122, 162, 255, .12) 0%, rgba(13, 22, 44, .95) 100%);
    border-color: rgba(122, 162, 255, .4);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .35), 0 0 0 1px rgba(122, 162, 255, .2);
}

.admin-tile:hover::before {
    opacity: 1;
}

.admin-tile-title {
    margin: 0 0 .5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #eaf2ff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tile-title::before {
    content: "→";
    color: var(--brand);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.admin-tile:hover .admin-tile-title::before {
    transform: translateX(4px);
}

.admin-tile-desc {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
}

/* Upewnij się, że przyciski w wierszach są klikalne */
.table-beauty tbody tr {
    position: relative;
}

.table-beauty .btn {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* Sortowalne nagłówki */
.table-head-sticky thead th.sortable {
    cursor: pointer;
    user-select: none;
}

.table-head-sticky thead th.sortable::after {
    content: "\\25B4\\25BE";
    font-size: .7rem;
    opacity: .45;
    margin-left: .35rem;
}

.table-head-sticky thead th.sort-asc::after {
    content: "\\25B4";
    opacity: .9;
}

.table-head-sticky thead th.sort-desc::after {
    content: "\\25BE";
    opacity: .9;
}

.stats-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, .9);
    border: 1px solid rgba(148, 163, 184, .45);
}

.stats-progress .progress-bar {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
}

.stats-progress .progress-bar.progress-success {
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.stats-progress .progress-bar.progress-warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.stats-progress .progress-bar.progress-danger {
    background: linear-gradient(90deg, var(--danger), #f87171);
}

/* =================== Monitoring styles =================== */
.card-surface {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.card-surface h3,
.card-surface h5 {
    color: var(--text);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-surface h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-surface h5 {
    font-size: 1.1rem;
    color: var(--text);
}

.card-surface code {
    background: rgba(122, 162, 255, .15);
    color: var(--brand);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.85em;
    border: 1px solid rgba(122, 162, 255, .2);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(34, 197, 94, .15);
    border-color: rgba(34, 197, 94, .4);
    color: var(--accent);
}

.alert-danger {
    background: rgba(239, 68, 68, .15);
    border-color: rgba(239, 68, 68, .4);
    color: var(--danger);
}

.text-muted {
    color: var(--muted) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.bg-dark-subtle {
    background: var(--panel-2) !important;
    border-top: 1px solid var(--border) !important;
}

.bg-dark {
    background: var(--card) !important;
}

.border-secondary {
    border-color: var(--border) !important;
}

/* Monitoring table improvements */
.table-beauty tbody tr {
    transition: all 0.2s ease;
}

.card-surface .table-beauty tbody tr {
    background: rgba(13, 22, 44, .85) !important;
}

.card-surface .table-beauty tbody tr:hover {
    background: rgba(13, 22, 44, .95) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .35);
}

/* Stats progress improvements */
.stats-progress {
    position: relative;
    overflow: hidden;
}

.stats-progress .progress-bar {
    position: relative;
}

.stats-progress .progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Form controls in monitoring */
.card-surface .form-control,
.card-surface .form-control-sm {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.2s ease;
}

.card-surface .form-control:focus,
.card-surface .form-control-sm:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .25rem rgba(122, 162, 255, .16);
    outline: 0;
    background: var(--panel-2);
}

.card-surface .input-group-text {
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-left: 0;
}

.card-surface .form-label {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Module checkboxes in monitoring */
.card-surface label.d-flex {
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-surface label.d-flex:hover {
    background: rgba(122, 162, 255, .1) !important;
    border-color: var(--brand) !important;
    transform: translateX(4px);
}

.card-surface .form-check-input {
    cursor: pointer;
    background-color: var(--panel-2);
    border: 2px solid var(--border);
}

.card-surface .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.card-surface .form-check-input:focus {
    box-shadow: 0 0 0 .25rem rgba(122, 162, 255, .25);
}

/* Links in monitoring */
.card-surface a {
    color: var(--brand);
    text-decoration: none;
    transition: all 0.2s ease;
}

.card-surface a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Monitoring instance row styling */
.table-beauty tbody tr td {
    vertical-align: middle;
}

.table-beauty tbody tr td strong {
    color: #eaf2ff;
    font-weight: 700;
}

/* Button improvements for monitoring */
.card-surface .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: 10px;
}

.card-surface .btn-ghost {
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    transition: all 0.2s ease;
}

.card-surface .btn-ghost:hover {
    border-color: var(--brand);
    background: rgba(122, 162, 255, .1);
    color: var(--brand);
    transform: translateY(-1px);
}

.card-surface .btn-ghost.text-danger {
    border-color: rgba(239, 68, 68, .4);
    background: rgba(239, 68, 68, .1);
    color: var(--danger);
}

.card-surface .btn-ghost.text-danger:hover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, .2);
    color: #fff;
}

/* =================== Konfigurator usług =================== */
.configurator-wrapper {
    margin-bottom: 3rem;
}

.config-module {
    margin-bottom: 2.5rem;
}

.config-module-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #eaf2ff;
    margin-bottom: 1.2rem;
}

/* Infrastruktura - grid 4 kolumny */
.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 1.5rem;
}

.infra-card {
    position: relative;
    cursor: pointer;
}

.infra-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.infra-card-content {
    background: linear-gradient(135deg, rgba(13, 22, 44, .9) 0%, rgba(15, 25, 50, .7) 100%);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.infra-card-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.infra-card:hover .infra-card-content {
    border-color: rgba(122, 162, 255, .4);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .35);
}

.infra-card:hover .infra-card-content::before {
    opacity: 0.5;
}

.infra-card input[type="radio"]:checked + .infra-card-content {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(122, 162, 255, .18) 0%, rgba(122, 162, 255, .08) 100%);
    box-shadow: 0 0 0 3px rgba(122, 162, 255, .25), 0 16px 50px rgba(122, 162, 255, .2);
}

.infra-card input[type="radio"]:checked + .infra-card-content::before {
    opacity: 1;
}

.infra-card-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #eaf2ff;
}

.infra-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 1rem;
}

.infra-price small {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.infra-card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.infra-card-content li {
    padding: 0.4rem 0;
    color: #cfe0ff;
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.infra-card-content li:last-child {
    border-bottom: none;
}

.infra-card-content li strong {
    color: #eaf2ff;
}

/* Moduły - grid 3 kolumny */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.module-card {
    position: relative;
    cursor: pointer;
}

.module-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.module-card-content {
    background: linear-gradient(135deg, rgba(13, 22, 44, .9) 0%, rgba(15, 25, 50, .7) 100%);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.module-card-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--brand));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover .module-card-content {
    border-color: rgba(34, 197, 94, .4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.module-card:hover .module-card-content::before {
    opacity: 0.5;
}

.module-card input[type="checkbox"]:checked + .module-card-content {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(34, 197, 94, .2) 0%, rgba(34, 197, 94, .1) 100%);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .25), 0 12px 40px rgba(34, 197, 94, .15);
}

.module-card input[type="checkbox"]:checked + .module-card-content::before {
    opacity: 1;
}

.module-card-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #eaf2ff;
}

.module-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

/* Moduły w cenie */
.module-card.module-included {
    cursor: not-allowed;
    opacity: 0.8;
}

.module-card.module-included .module-card-content {
    border-color: rgba(122, 162, 255, .5);
    background: linear-gradient(135deg, rgba(122, 162, 255, .15) 0%, rgba(122, 162, 255, .1) 100%);
}

.module-card.module-included:hover .module-card-content {
    transform: none;
    border-color: rgba(122, 162, 255, .5);
}

.module-card.module-included input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.module-card.module-included .module-price {
    color: var(--brand);
}

/* Podsumowanie */
.config-summary {
    margin-top: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, rgba(13, 22, 44, .95) 0%, rgba(15, 25, 50, .85) 100%);
    border: 2px solid rgba(122, 162, 255, .3);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, .3), 0 0 0 1px rgba(122, 162, 255, .1);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.summary-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #eaf2ff;
}

.summary-content {
    margin-bottom: 1.5rem;
}

.summary-placeholder {
    color: var(--muted);
    font-style: italic;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    color: #cfe0ff;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-label {
    font-weight: 500;
}

.summary-item-price {
    color: var(--brand);
    font-weight: 600;
}

.summary-total {
    padding-top: 1.5rem;
    border-top: 2px solid rgba(122, 162, 255, .2);
    font-size: 1.4rem;
    color: #eaf2ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.summary-total strong {
    background: linear-gradient(135deg, #7aa2ff 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 900;
}

/* Responsive */
@media (max-width: 1200px) {
    .infrastructure-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .infrastructure-grid,
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* =================== Modal =================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(13, 22, 44, .98) 0%, rgba(15, 25, 50, .95) 100%);
    border: 2px solid rgba(122, 162, 255, .3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(122, 162, 255, .1);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid rgba(122, 162, 255, .2);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #c8d6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: #cfe0ff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(122, 162, 255, .1);
    color: #fff;
}

.modal-body {
    padding: 32px;
}

.modal-body .form-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        margin: 0;
    }

    .table-beauty tbody td,
    .table-beauty tbody th {
        padding: .5rem .5rem !important;
        font-size: 0.875rem;
    }

    main.container-narrow {
        width: 95% !important;
        padding: 0 12px !important;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}