:root {
    --bg-deep: #061630;
    --text-main: #eff5ff;
    --text-muted: rgba(239, 245, 255, 0.72);
    --border-soft: rgba(255, 255, 255, 0.12);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(76, 144, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(91, 164, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #0f356d 0%, #071832 58%, #041121 100%);
    color: var(--text-main);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, .navbar-brand, .btn {
    font-family: "Segoe UI Semibold", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    position: relative;
    z-index: 1080;
    background: rgba(4, 17, 33, 0.35);
    backdrop-filter: blur(18px);
}

.navbar .dropdown-menu {
    position: absolute;
    z-index: 1090;
}

.cookie-notice {
    padding: 0.75rem 0 0;
}

.cookie-notice-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(22, 58, 116, 0.9), rgba(8, 23, 46, 0.92));
    border: 1px solid rgba(143, 208, 255, 0.28);
    box-shadow: 0 12px 28px rgba(1, 10, 24, 0.24);
    text-align: center;
}

.cookie-notice-card strong {
    color: #ffffff;
    letter-spacing: 0.01em;
}

.brand-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffd08a;
    background: linear-gradient(135deg, #163a74, #071833);
    border: 1px solid rgba(255, 208, 138, 0.4);
}

.brand-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-logo {
    display: block;
    height: 3rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 4rem;
}

.hero-glow {
    position: absolute;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.hero-glow-left {
    top: -8rem;
    left: -10rem;
    background: rgba(37, 129, 255, 0.28);
}

.hero-glow-right {
    right: -8rem;
    top: 6rem;
    background: rgba(40, 96, 191, 0.22);
}

.py-lg-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #8cc4ff;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(180deg, #2f9dff, #1564d6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 40px rgba(16, 89, 189, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, #55b0ff, #1a72ef);
}

.feature-card,
.glass-card,
.auth-card,
.panel-card {
    background: linear-gradient(180deg, rgba(17, 42, 83, 0.92), rgba(7, 21, 44, 0.88));
    border: 1px solid var(--border-soft);
    border-radius: 1.25rem;
    box-shadow: 0 18px 55px rgba(1, 10, 24, 0.42);
}

.feature-card,
.glass-card,
.panel-card {
    padding: 1.5rem;
}

.feature-card p,
.glass-card p,
.panel-card p,
.panel-card li {
    color: var(--text-muted);
}

.home-plan-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-plan-card:hover {
    transform: translateY(-2px);
}

.home-plan-card--tip {
    border: 2px solid rgba(91, 200, 255, 0.92);
    background:
        linear-gradient(180deg, rgba(39, 86, 135, 0.28), rgba(7, 21, 44, 0.88) 18%),
        linear-gradient(180deg, rgba(17, 42, 83, 0.92), rgba(7, 21, 44, 0.88));
    box-shadow:
        0 18px 55px rgba(1, 10, 24, 0.42),
        0 0 0 2px rgba(91, 200, 255, 0.18),
        0 0 36px rgba(69, 184, 255, 0.3);
}

.home-plan-card--popular {
    border: 2px solid rgba(255, 196, 92, 0.94);
    background:
        linear-gradient(180deg, rgba(138, 90, 28, 0.28), rgba(7, 21, 44, 0.88) 18%),
        linear-gradient(180deg, rgba(17, 42, 83, 0.92), rgba(7, 21, 44, 0.88));
    box-shadow:
        0 18px 55px rgba(1, 10, 24, 0.42),
        0 0 0 2px rgba(255, 196, 92, 0.2),
        0 0 36px rgba(255, 183, 58, 0.32);
}

.plan-compare-col--tip {
    background: rgba(69, 184, 255, 0.1) !important;
    border-left: 2px solid rgba(91, 200, 255, 0.92) !important;
    border-right: 2px solid rgba(91, 200, 255, 0.92) !important;
}

.plan-compare-col--popular {
    background: rgba(255, 183, 58, 0.1) !important;
    border-left: 2px solid rgba(255, 196, 92, 0.94) !important;
    border-right: 2px solid rgba(255, 196, 92, 0.94) !important;
}

thead .plan-compare-col--tip {
    border-top: 2px solid rgba(91, 200, 255, 0.92) !important;
}

thead .plan-compare-col--popular {
    border-top: 2px solid rgba(255, 196, 92, 0.94) !important;
}

tbody tr:last-child .plan-compare-col--tip {
    border-bottom: 2px solid rgba(91, 200, 255, 0.92) !important;
}

tbody tr:last-child .plan-compare-col--popular {
    border-bottom: 2px solid rgba(255, 196, 92, 0.94) !important;
}

.plan-compare-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.plan-compare-table th,
.plan-compare-table td {
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.plan-compare-table th:first-child,
.plan-compare-table td:first-child {
    width: 16rem;
}

.plan-compare-list {
    padding-left: 1.1rem;
}

.plan-compare-list li + li {
    margin-top: 0.25rem;
}

.plan-compare-header-badges .badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.home-plan-interval-badge {
    background: rgba(133, 180, 255, 0.14);
    color: #dce9ff;
    border: 1px solid rgba(133, 180, 255, 0.28);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}


.dashboard-preview {
    position: relative;
    padding: 2rem;
}

.preview-window {
    background: linear-gradient(180deg, #284d8d, #16315d 10%, #eef4ff 10.1%, #d9e4f8 100%);
    border-radius: 1.5rem;
    padding: 0.85rem;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.preview-topbar {
    color: #eff5ff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0.4rem 0.8rem;
}

.dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.preview-body {
    background: linear-gradient(180deg, #f8fbff, #dde8fb);
    border-radius: 1rem;
    padding: 1rem;
    color: #18345f;
}

.job-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.68);
    border-radius: 0.8rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.chart-card {
    position: relative;
    margin-top: 1.25rem;
    height: 9rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #193b71, #102446);
    overflow: hidden;
}

.chart-line::after {
    content: '';
    position: absolute;
    inset: 20% 7% 18% 7%;
    clip-path: polygon(0 78%, 15% 62%, 33% 68%, 46% 36%, 64% 45%, 78% 25%, 100% 10%, 100% 100%, 0 100%);
    background: linear-gradient(180deg, rgba(84, 160, 255, 0.45), rgba(84, 160, 255, 0.05));
    border-bottom: 3px solid #8fd0ff;
}

.preview-pill {
    display: inline-flex;
    margin: 1rem 0.5rem 0 0;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(7, 21, 44, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-panel,
.auth-page,
.dashboard-page {
    padding-bottom: 4rem;
}

.auth-card {
    padding: 2rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(14, 36, 71, 0.45);
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}


.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.65rem;
}

.stat-card-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card-value {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 700;
    color: var(--text-main);
}

.stat-card-value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9fd6ff;
    line-height: 1;
    font-size: inherit;
}

.stat-card-value-icon svg {
    width: 2.35rem;
    height: 2.35rem;
}

.cronlord-list .list-group-item {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.home-section-item {
    cursor: grab;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-section-item:hover {
    border-color: rgba(143, 208, 255, 0.45) !important;
}

.home-section-item.is-dragging {
    opacity: 0.72;
    cursor: grabbing;
    transform: scale(0.99);
    box-shadow: 0 20px 40px rgba(3, 12, 28, 0.35);
}

.home-section-drag-handle {
    cursor: grab;
    min-width: 2.25rem;
}

.home-section-item.is-dragging .home-section-drag-handle {
    cursor: grabbing;
}

.trend-bars {
    display: flex;
    align-items: end;
    gap: 0.45rem;
    min-height: 10rem;
}

.trend-bar {
    flex: 1 1 0;
    min-width: 0;
}

.trend-bar-track {
    display: flex;
    align-items: end;
    height: 7.5rem;
    padding: 0.35rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.trend-bar-fill {
    width: 100%;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, rgba(90, 185, 255, 0.95), rgba(19, 100, 214, 0.95));
    min-height: 0.35rem;
}

.trend-bar-fill.is-warning {
    background: linear-gradient(180deg, rgba(255, 207, 92, 0.95), rgba(214, 140, 19, 0.95));
}

.trend-bar-fill.is-danger {
    background: linear-gradient(180deg, rgba(255, 126, 126, 0.95), rgba(196, 49, 49, 0.95));
}

.trend-bar-label {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.74rem;
    text-align: center;
}

.trend-bar-value {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 600;
}

.health-meter {
    height: 0.65rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.health-meter-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f9dff, #17c964);
}

.server-gauge {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 40px rgba(0, 0, 0, 0.22);
}

.server-gauge::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: rgba(9, 16, 28, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.server-gauge-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
}

.server-gauge-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.server-gauge-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

.server-gauge-sm {
    width: 92px;
    height: 92px;
}

.server-gauge-sm::after {
    inset: 8px;
}

.server-gauge-sm .server-gauge-value {
    font-size: 0.92rem;
}

.server-core-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.run-dots {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.run-dot {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.run-dot.is-success {
    background: #20c997;
}

.run-dot.is-failed {
    background: #dc3545;
}

.run-dot.is-timeout {
    background: #fd7e14;
}

.run-dot.is-running,
.run-dot.is-queued {
    background: #6ea8fe;
}

.job-health-card {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sparkline-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tool-card {
    padding: 1.15rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(18, 47, 92, 0.46), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(143, 208, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-tool-card h3 {
    margin-bottom: 0.35rem;
}

.admin-tool-card p {
    color: var(--text-muted);
}

.contact-admin-ticket-row {
    background: rgba(255, 255, 255, 0.03);
}

.contact-admin-ticket-meta {
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
}

.contact-admin-ticket-actions {
    min-width: 10rem;
}

.contact-admin-soft-badge {
    color: #dff2ff;
    background: linear-gradient(135deg, rgba(35, 94, 168, 0.78), rgba(22, 53, 102, 0.92));
    border: 1px solid rgba(126, 192, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0.45rem 1rem rgba(5, 14, 32, 0.28);
}

.contact-admin-note-badge {
    color: #f5e7ff;
    background: linear-gradient(135deg, rgba(109, 53, 164, 0.82), rgba(63, 29, 105, 0.94));
    border: 1px solid rgba(212, 170, 255, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0.45rem 1rem rgba(19, 9, 32, 0.26);
}

.contact-settings-soft-badge {
    color: #dff3ff;
    background: linear-gradient(135deg, rgba(41, 103, 180, 0.78), rgba(18, 52, 102, 0.94));
    border: 1px solid rgba(137, 202, 255, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0.45rem 1rem rgba(5, 14, 32, 0.28);
}

.contact-settings-card-editor {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-settings-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.contact-settings-notification-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-settings-preview {
    display: grid;
    gap: 1rem;
}

.contact-settings-preview-hero {
    padding: 1.25rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(19, 40, 74, 0.94), rgba(11, 22, 43, 0.96));
}

.contact-settings-preview-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.contact-settings-preview-card.is-disabled {
    opacity: 0.55;
    filter: saturate(0.65);
}

.contact-settings-hint {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-settings-hint-warning {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.28);
}

.contact-settings-hint-danger {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.28);
}

.contact-settings-hint-info {
    background: rgba(13, 202, 240, 0.12);
    border-color: rgba(13, 202, 240, 0.28);
}

.contact-settings-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-soft-badge {
    color: #dff3ff;
    background: linear-gradient(135deg, rgba(41, 103, 180, 0.78), rgba(18, 52, 102, 0.94));
    border: 1px solid rgba(137, 202, 255, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0.45rem 1rem rgba(5, 14, 32, 0.28);
}

.settings-hub-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-hint {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-hint-warning {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.28);
}

.settings-hint-danger {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.28);
}

.settings-hint-info {
    background: rgba(13, 202, 240, 0.12);
    border-color: rgba(13, 202, 240, 0.28);
}

.settings-change-row {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-preview-surface {
    padding: 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at top right, rgba(77, 180, 255, 0.14), transparent 38%),
        rgba(255, 255, 255, 0.04);
}

.settings-preview-surface p:last-child,
.settings-preview-surface ul:last-child,
.settings-preview-surface ol:last-child {
    margin-bottom: 0;
}

.home-section-builder-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-section-builder-card.is-dragging {
    opacity: 0.65;
    transform: scale(0.99);
    border-color: rgba(137, 202, 255, 0.42);
    box-shadow: 0 1rem 2rem rgba(5, 14, 32, 0.25);
}

.home-settings-preview-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.home-settings-preview-card.is-disabled {
    opacity: 0.55;
    filter: saturate(0.65);
}

.footer-builder-column {
    background: rgba(255, 255, 255, 0.03);
}

.footer-settings-preview {
    display: grid;
    gap: 1rem;
}

.footer-settings-preview-cookie {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-settings-preview-column {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-settings-preview-column.is-disabled,
.footer-settings-preview-cookie.is-disabled {
    opacity: 0.55;
    filter: saturate(0.7);
}

.sparkline-svg {
    width: 100%;
    height: 7rem;
    display: block;
}

code {
    color: #8cc4ff;
}

@media (max-width: 991.98px) {
    .display-3 {
        font-size: 2.8rem;
    }

    .dashboard-preview {
        padding: 0;
    }
}

@media (min-width: 992px) {
    .plan-compare-wrapper {
        overflow-x: visible;
    }

    .plan-compare-table {
        table-layout: fixed;
    }

    .plan-compare-table th:first-child,
    .plan-compare-table td:first-child {
        width: 18%;
    }

    .plan-compare-table th:not(:first-child),
    .plan-compare-table td:not(:first-child) {
        width: calc(82% / var(--plan-count));
    }

    .plan-compare-table th,
    .plan-compare-table td {
        font-size: 0.95rem;
    }

    .plan-compare-list {
        padding-left: 0.95rem;
    }
}
