@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #c41e1a;
    --primary-dark: #9f1613;
    --primary-soft: rgba(196, 30, 26, .1);
    --accent: #f59e0b;
    --dark: #0d1117;
    --dark-2: #161b22;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --card: #ffffff;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, .10);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, .14);
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(196, 30, 26, .08), transparent 34rem),
        linear-gradient(180deg, #fff 0%, var(--bg) 38rem);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.lp-app {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 100vh;
    padding: 1rem;
}

.lp-shell {
    max-width: 1500px;
}

.lp-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
    height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(13, 17, 23, .98), rgba(22, 27, 34, .96)),
        radial-gradient(circle at 20% 10%, rgba(196, 30, 26, .2), transparent 18rem);
    box-shadow: var(--shadow-lg);
}

.lp-sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .45rem 1rem;
    color: #fff;
}

.lp-sidebar-brand:hover {
    color: #fff;
}

.lp-sidebar-brand small {
    display: block;
    color: rgba(255, 255, 255, .48);
    font-size: .74rem;
    font-weight: 700;
    margin-top: .12rem;
}

.lp-side-nav {
    display: grid;
    gap: .35rem;
}

.lp-side-nav a,
.lp-sidebar-account,
.lp-sidebar-logout {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    padding: .72rem .85rem;
    border-radius: 13px;
    color: rgba(255, 255, 255, .68);
    font-weight: 750;
}

.lp-side-nav a i,
.lp-sidebar-account i,
.lp-sidebar-logout i {
    width: 20px;
    text-align: center;
}

.lp-menu-count {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 .4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    line-height: 1;
}

.lp-side-nav a:hover,
.lp-side-nav a.is-active,
.lp-sidebar-account:hover,
.lp-sidebar-account.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.lp-side-nav a.is-active,
.lp-sidebar-account.is-active {
    box-shadow: inset 3px 0 0 var(--primary);
}

.lp-sidebar-account {
    margin-top: auto;
    background: rgba(255, 255, 255, .045);
}

.lp-sidebar-logout {
    background: rgba(255, 255, 255, .06);
}

.lp-sidebar-logout:hover {
    color: #fff;
    background: rgba(196, 30, 26, .22);
}

.lp-logo-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(196, 30, 26, .32);
}

.lp-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(circle at 12% 10%, rgba(196, 30, 26, .28), transparent 25rem),
        radial-gradient(circle at 92% 85%, rgba(59, 130, 246, .16), transparent 24rem),
        #0d1117;
}

.lp-auth-panel {
    width: min(1080px, 100%);
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.lp-auth-aside {
    position: relative;
    min-height: 100%;
    background:
        linear-gradient(rgba(13, 17, 23, .92), rgba(13, 17, 23, .92)),
        linear-gradient(135deg, rgba(196, 30, 26, .32), rgba(245, 158, 11, .16));
    color: #fff;
    padding: 42px;
    overflow: hidden;
}

.lp-auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.lp-auth-aside > * {
    position: relative;
    z-index: 1;
}

.lp-auth-form {
    padding: 42px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.stat {
    position: relative;
}

.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.lp-status,
.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: .4rem;
    border-radius: 9px;
    padding: .32rem .5rem;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: #475569;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1;
    min-height: 24px;
    white-space: nowrap;
    box-shadow: none;
}

.lp-status::before,
.badge-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.lp-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.lp-card-heading > div:first-child {
    min-width: 0;
}

.lp-card-heading .lp-status {
    margin-top: .15rem;
}

.lp-status-success,
.badge-status.text-bg-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.lp-status-warning,
.badge-status.text-bg-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.lp-status-danger,
.badge-status.text-bg-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.lp-status-info,
.badge-status.text-bg-info {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.lp-status-primary,
.badge-status.text-bg-primary {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.lp-status-secondary,
.badge-status.text-bg-secondary {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.lp-segment {
    display: inline-flex;
    gap: .35rem;
    padding: .3rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
}

.lp-segment label {
    margin: 0;
}

.lp-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lp-segment span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: .45rem .9rem;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.lp-segment input:checked + span {
    color: #fff;
    background: var(--primary);
    box-shadow: var(--shadow-sm);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.table > :not(caption) > * > * {
    padding: .95rem .85rem;
}

.lp-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.lp-section-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 6px var(--primary-soft);
}

.lp-plan {
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.lp-plan:hover {
    border-color: rgba(196, 30, 26, .28);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.lp-plan .price {
    font-size: 1.75rem;
    font-weight: 900;
}

.form-label {
    color: var(--text);
    font-size: .84rem;
    font-weight: 700;
}

.form-control,
.form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: .75rem .9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .22rem rgba(196, 30, 26, .12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: 10px;
    font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 22px rgba(196, 30, 26, .2);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 12px 28px rgba(196, 30, 26, .3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: rgba(196, 30, 26, .45);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-success {
    background: #10b981;
    border-color: #10b981;
}

.alert {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.display-6 {
    font-weight: 900;
    letter-spacing: 0;
}

.lp-hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(13, 17, 23, .96), rgba(22, 27, 34, .94)),
        radial-gradient(circle at 18% 20%, rgba(196, 30, 26, .28), transparent 28rem);
    color: #fff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.lp-hero-panel h1 {
    margin: .7rem 0 .45rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
}

.lp-hero-panel p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .64);
}

.lp-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .85rem;
    border: 1px solid rgba(196, 30, 26, .35);
    border-radius: 999px;
    color: #fca5a5;
    background: rgba(196, 30, 26, .14);
    font-size: .78rem;
    font-weight: 800;
}

.lp-hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.lp-service-card {
    border-top: 3px solid var(--primary);
}

.lp-service-type {
    color: var(--primary);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .3rem;
}

.lp-progress .progress {
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
}

.lp-progress .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.lp-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.lp-meta-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-meta-grid > div {
    padding: .9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
}

.lp-meta-grid span,
.lp-copy-box span {
    display: block;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: .35rem;
}

.lp-meta-grid strong,
.lp-copy-box strong {
    color: var(--text);
    font-size: .92rem;
}

.lp-module-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 78px;
    padding: .9rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.lp-module-item.is-disabled {
    opacity: .58;
    background: #f8fafc;
}

.lp-module-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-soft);
}

.lp-copy-box {
    padding: 1rem;
    border: 1px dashed rgba(196, 30, 26, .34);
    border-radius: 14px;
    background: rgba(196, 30, 26, .04);
    word-break: break-word;
}

.lp-avatar {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(196, 30, 26, .22);
}

.lp-contact-list {
    display: grid;
    gap: .55rem;
}

.lp-contact-list div {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 42px;
    padding: .65rem .75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: #fbfdff;
    font-weight: 650;
}

.lp-contact-list i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--primary);
    background: var(--primary-soft);
}

.lp-plan.is-highlighted {
    border-color: rgba(196, 30, 26, .46);
    box-shadow: 0 24px 70px rgba(196, 30, 26, .18);
}

.lp-plan-modules {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.lp-plan-modules span {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--muted);
    font-size: .84rem;
}

.lp-plan-modules i {
    color: var(--primary);
    font-size: .72rem;
}

.lp-module-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    min-width: 280px;
}

.lp-module-chip-wrap span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--text);
    font-size: .78rem;
    font-weight: 700;
}

.lp-compare-table td:first-child {
    min-width: 260px;
}

.lp-category-card {
    color: var(--text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.lp-category-card:hover {
    color: var(--text);
    transform: translateY(-4px);
    border-color: rgba(196, 30, 26, .3);
    box-shadow: var(--shadow-lg);
}

.lp-category-card p {
    min-height: 72px;
    color: var(--muted);
    margin: 0;
}

.lp-category-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 15px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 1.25rem;
}

.lp-matrix-table {
    min-width: 880px;
    border: 1px solid var(--border);
}

.lp-matrix-table th {
    vertical-align: top;
    background: #fbfdff;
}

.lp-matrix-table th:first-child,
.lp-matrix-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 260px;
    background: #fff;
}

.lp-matrix-table thead th:first-child {
    z-index: 3;
    background: #fbfdff;
}

.lp-matrix-table th:not(:first-child),
.lp-matrix-table td:not(:first-child) {
    min-width: 220px;
    border-left: 1px solid var(--border);
}

.lp-matrix-table th.is-highlighted {
    box-shadow: inset 0 3px 0 var(--primary);
    background: rgba(196, 30, 26, .04);
}

.lp-check {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: #10b981;
    font-size: .85rem;
}

.lp-cross {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: .85rem;
}

.lp-feature-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 800;
    font-size: .84rem;
}

.lp-price-row td {
    background: #fff7ed;
    font-size: 1.05rem;
    font-weight: 900;
}

.lp-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.lp-check-grid label {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .65rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfdff;
    font-weight: 650;
}

.lp-feature-search {
    max-width: 260px;
}

.lp-feature-table-wrap {
    max-height: 620px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.lp-feature-edit-table {
    min-width: 1120px;
}

.lp-feature-edit-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fbfdff;
}

.lp-feature-edit-table td:first-child,
.lp-feature-edit-table th:first-child {
    width: 72px;
    text-align: center;
}

.lp-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: .45rem;
    border-radius: 8px;
    color: var(--muted);
    background: #f1f5f9;
    cursor: grab;
}

tr.is-dragging {
    opacity: .55;
}

.lp-cart-options {
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.lp-option-check {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .5rem 0;
    margin: 0;
    cursor: pointer;
}

.lp-option-check + .lp-option-check {
    border-top: 1px solid var(--border);
}

.lp-option-check strong,
.lp-option-check small {
    display: block;
    line-height: 1.25;
}

.lp-option-check small {
    color: var(--muted);
}

.lp-addon-list {
    display: grid;
    gap: .45rem;
    margin-top: .55rem;
}

.lp-addon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: .5rem;
    align-items: center;
    padding: .5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.lp-addon-row.is-unlimited {
    grid-template-columns: minmax(0, 1fr) auto;
}

.lp-addon-row.is-check {
    grid-template-columns: minmax(0, 1fr) auto;
}

.lp-addon-config {
    display: grid;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.lp-addon-config-item {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(2, minmax(88px, .6fr)) repeat(6, minmax(74px, .7fr));
    gap: .55rem;
    align-items: end;
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.lp-addon-config-item .form-label {
    margin-bottom: .2rem;
}

.lp-addon-row span,
.lp-addon-row strong,
.lp-addon-row small {
    display: block;
}

.lp-addon-row small {
    color: var(--muted);
}

.lp-addon-parent + .lp-addon-parent {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}

.lp-live-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .7rem .85rem;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
}

.lp-live-cart > div {
    display: grid;
    gap: .15rem;
    min-width: 120px;
}

.lp-live-cart span {
    font-size: .82rem;
    font-weight: 700;
    color: #1d4ed8;
}

.lp-live-cart strong {
    font-size: .98rem;
    color: #0f172a;
    white-space: nowrap;
}

.lp-price-note {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfdff;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 650;
}

.lp-price-note i {
    color: var(--primary);
    margin-top: .15rem;
}

.rounded {
    border-radius: 12px !important;
}

@media (max-width: 767px) {
    .lp-auth-aside,
    .lp-auth-form {
        padding: 26px;
    }

    .table {
        min-width: 680px;
    }

    .lp-hero-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.4rem;
    }

    .lp-meta-grid,
    .lp-meta-grid-wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .lp-app {
        grid-template-columns: 1fr;
    }

    .lp-sidebar {
        position: static;
        height: auto;
    }

    .lp-side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
