:root {
    --bg-main: #0b0b0f;
    --bg-secondary: #14141b;
    --card-bg: rgba(22, 22, 30, 0.90);
    --card-bg-2: rgba(28, 28, 38, 0.88);
    --border-soft: rgba(255, 196, 87, 0.16);
    --text-main: #f5f2ea;
    --text-muted: #b8b2a7;
    --accent: #ff9f1c;
    --accent-gold: #ffd166;
    --accent-deep: #ff7b00;
    --success-glow: rgba(40, 167, 69, 0.22);
    --warning-glow: rgba(255, 193, 7, 0.22);
    --danger-glow: rgba(220, 53, 69, 0.22);
    --shadow-gold: rgba(255, 180, 60, 0.16);
    --shadow-dark: rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 159, 28, 0.15), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 209, 102, 0.08), transparent 24%),
        linear-gradient(135deg, #08080c 0%, #101018 45%, #0b0b10 100%);
    color: var(--text-main);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(7, 7, 10, 0.72), rgba(7, 7, 10, 0.82)),
        url("assets/images/background.png") center/cover no-repeat;
    opacity: 0.34;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 160, 28, 0.10), transparent 20%),
        radial-gradient(circle at 80% 25%, rgba(255, 209, 102, 0.06), transparent 18%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6,
.fw-semibold,
strong,
label,
th,
td,
.btn,
.badge,
.form-control,
.form-label,
.alert,
a,
p,
span,
div,
small,
li {
    color: inherit;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page-shell {
    padding-top: 96px;
    padding-bottom: 48px;
}

.page-title {
    font-weight: 800;
    letter-spacing: 0.4px;
    background: linear-gradient(90deg, #fff4d6 0%, var(--accent-gold) 45%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted) !important;
}

.accent-line {
    width: 82px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-deep));
    margin-bottom: 1rem;
    box-shadow: 0 0 14px rgba(255, 185, 70, 0.45);
}

.panel-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.4),
        0 0 28px var(--shadow-gold);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.panel-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 209, 102, 0.24);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.46),
        0 0 34px rgba(255, 180, 60, 0.20);
}

.panel-card .card-body {
    padding: 1.4rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.header-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 185, 70, 0.35));
    flex-shrink: 0;
    animation: floatLogo 4s ease-in-out infinite;
}

.brand-mini-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 185, 70, 0.26));
}

.navbar-nd {
    background: rgba(10, 10, 14, 0.74);
    border-bottom: 1px solid rgba(255, 209, 102, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.navbar-nd .navbar-brand {
    color: var(--text-main);
    font-weight: 700;
}

.navbar-nd .nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    position: relative;
    transition: color 0.25s ease;
}

.navbar-nd .nav-link:hover,
.navbar-nd .nav-link.active {
    color: #fff1d2 !important;
}

.navbar-nd .nav-link::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar-nd .nav-link:hover::after,
.navbar-nd .nav-link.active::after {
    transform: scaleX(1);
}

.hero-card {
    overflow: hidden;
}

.hero-content {
    padding: 2rem;
}

.hero-banner {
    min-height: 360px;
    height: 100%;
    background:
        linear-gradient(rgba(10, 10, 14, 0.14), rgba(10, 10, 14, 0.32)),
        url("assets/images/banner.png") center/cover no-repeat;
    border-left: 1px solid rgba(255, 209, 102, 0.10);
    position: relative;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 24%, rgba(6, 6, 8, 0.34) 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.18);
    color: #ffe6aa;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 0 16px rgba(255, 180, 60, 0.08);
}

.hero-actions,
.quick-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent));
    color: #1a1208;
    box-shadow: 0 10px 24px rgba(255, 159, 28, 0.22);
}

.btn-primary:hover {
    color: #120d06;
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(255, 159, 28, 0.28);
}

.btn-success {
    background: linear-gradient(135deg, #38d996, #1ca36b);
    color: white;
    box-shadow: 0 10px 24px rgba(28, 163, 107, 0.2);
}

.btn-success:hover {
    box-shadow: 0 14px 30px rgba(28, 163, 107, 0.28);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 209, 102, 0.18);
    color: var(--text-main);
}

.btn-outline-primary:hover {
    background: rgba(255, 159, 28, 0.14);
    border-color: rgba(255, 159, 28, 0.35);
    color: #fff1d2;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: white;
}

.btn-outline-danger {
    border-color: rgba(255, 107, 107, 0.3);
    color: #ffbdbd;
}

.btn-outline-danger:hover {
    background: rgba(255, 80, 80, 0.14);
    border-color: rgba(255, 120, 120, 0.4);
    color: #ffd3d3;
}

.info-tile {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 209, 102, 0.10);
    border-radius: 18px;
    padding: 1.2rem;
    height: 100%;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.info-tile:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 24px rgba(255, 180, 60, 0.12);
}

.info-kicker {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.18);
    color: #ffe5a4;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    margin-bottom: 0.85rem;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.small-muted {
    color: var(--text-muted);
}

.feature-box {
    height: 100%;
    padding: 1.35rem;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(255, 159, 28, 0.16));
    border: 1px solid rgba(255, 209, 102, 0.15);
    color: var(--accent-gold);
    font-size: 1.25rem;
    box-shadow: 0 0 18px rgba(255, 180, 60, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 0 24px rgba(255, 180, 60, 0.18);
}

.section-intro {
    margin-bottom: 1.4rem;
}

.addon-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 209, 102, 0.14);
    border-radius: 22px;
    padding: 1.4rem;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 180, 60, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.addon-card::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -40%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.10), transparent 70%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.addon-card:hover::before {
    opacity: 1;
}

.addon-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 209, 102, 0.24);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.48),
        0 0 34px rgba(255, 180, 60, 0.20);
}

.addon-icon-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    background: rgba(255, 209, 102, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 209, 102, 0.18);
    box-shadow: 0 0 18px rgba(255, 180, 60, 0.15);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.addon-card:hover .addon-icon-wrap {
    transform: scale(1.06) translateY(-2px);
    background: rgba(255, 209, 102, 0.12);
    box-shadow: 0 0 24px rgba(255, 180, 60, 0.24);
}

.addon-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.addon-title {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.addon-text {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin-bottom: 1.15rem;
    min-height: 72px;
}

.addon-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    margin-bottom: 0.9rem;
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.18);
    color: #ffe5a4;
    font-size: 0.8rem;
    font-weight: 700;
}

.config-card {
    height: 100%;
}

.config-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.config-list li + li {
    margin-top: 0.65rem;
}

.form-label {
    color: #f3e8cf;
    font-weight: 600;
}

.form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 209, 102, 0.16);
    color: var(--text-main);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    transition: all 0.25s ease;
}

.form-control::placeholder {
    color: #8f887f;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-gold);
    color: var(--text-main);
    box-shadow: 0 0 0 0.22rem rgba(255, 180, 60, 0.18);
}

.alert-success {
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(90, 220, 130, 0.22);
    color: #bff0cf;
    border-radius: 16px;
    box-shadow: 0 0 20px var(--success-glow);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 214, 102, 0.2);
    color: #ffe9ab;
    border-radius: 16px;
    box-shadow: 0 0 20px var(--warning-glow);
}

.table-responsive {
    border-radius: 18px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-hover-color: var(--text-main);
    --bs-table-hover-bg: rgba(255, 209, 102, 0.06);
    --bs-table-border-color: rgba(255, 209, 102, 0.08);
    vertical-align: middle;
}

.table thead th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-gold);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 209, 102, 0.12);
    padding: 1rem 0.9rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.95rem 0.9rem;
    border-top: 1px solid rgba(255, 209, 102, 0.06);
}

.table tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(255, 209, 102, 0.04);
}

.badge.text-bg-warning {
    background: linear-gradient(135deg, #ffcf66, #ff9f1c) !important;
    color: #2b1a05 !important;
    box-shadow: 0 0 14px rgba(255, 180, 60, 0.18);
    border-radius: 999px;
    padding: 0.5em 0.8em;
}

.badge.text-bg-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ddd6ca !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.5em 0.8em;
}

.footer-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 209, 102, 0.08);
    border-radius: 20px;
    padding: 1.1rem 1.2rem;
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s ease forwards;
}

.fade-up.delay-1 {
    animation-delay: 0.08s;
}

.fade-up.delay-2 {
    animation-delay: 0.16s;
}

.fade-up.delay-3 {
    animation-delay: 0.24s;
}

.fade-up.delay-4 {
    animation-delay: 0.32s;
}

.glow-hover {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.glow-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(255, 180, 60, 0.18);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 991.98px) {
    .page-shell {
        padding-top: 88px;
    }

    .hero-banner {
        min-height: 260px;
        border-left: none;
        border-top: 1px solid rgba(255, 209, 102, 0.10);
    }

    .hero-content {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-actions,
    .quick-links {
        flex-direction: column;
    }

    .hero-actions .btn,
    .quick-links .btn {
        width: 100%;
    }

    .page-title {
        font-size: 2rem;
    }

    .addon-text {
        min-height: auto;
    }
}