:root {
    --ap-navy: #17206d;
    --ap-purple: #5b2aa8;
    --ap-purple-2: #7c3aed;
    --ap-pink: #ef168f;
    --ap-pink-dark: #d80f7c;
    --ap-soft: #f7f5ff;
    --ap-soft-2: #fff5fb;
    --ap-border: #ece8f6;
    --ap-line: #e5e9f3;
    --ap-text: #1d2350;
    --ap-muted: #6f7390;
    --ap-green: #20bf83;
    --ap-red: #e71f58;
    --ap-orange: #ffad1f;
    --ap-shadow: 0 14px 35px rgba(41, 31, 91, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ap-text);
    background: #f7f9fc;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
}

a,
button,
.btn {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(107, 47, 197, .18);
    outline-offset: 2px;
}

[data-href],
[data-toast] {
    cursor: pointer;
}

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

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

/* Header */
.navbar {
    min-height: 76px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #f0edf7;
    z-index: 1030;
}

.navbar-brand,
.brand {
    white-space: nowrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 1.85rem;
    color: var(--ap-navy) !important;
    letter-spacing: -1.2px;
    line-height: 1;
}

.navbar-brand .pro,
.brand span {
    color: var(--ap-pink) !important;
}

.navbar-brand .inline-index-1 {
    color: #6730c2;
    font-size: 24px;
    line-height: 1;
}

.brand-tagline {
    font-size: .57rem;
    letter-spacing: 1.6px;
    color: #777c9b;
    margin-top: 3px;
    font-weight: 800;
}

.nav-link {
    color: #282d66 !important;
    font-weight: 700;
    padding: .7rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ap-pink) !important;
}

/* Buttons */
.btn-ap {
    background: linear-gradient(90deg, var(--ap-pink-dark), var(--ap-pink));
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(239, 22, 143, .18);
}

.btn-ap:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-ap:disabled {
    opacity: .6;
    transform: none;
    box-shadow: none;
}

.btn-outline-ap,
.btn-outline-purple {
    color: var(--ap-purple);
    border: 1.5px solid #8d66d8;
    background: #fff;
    border-radius: 10px;
    font-weight: 800;
}

.btn-outline-ap:hover,
.btn-outline-purple:hover {
    background: var(--ap-purple);
    color: #fff;
}

/* Common layout */
.page-wrap,
.page {
    padding: 16px 0 50px;
}

.breadcrumb {
    font-size: .78rem;
    margin-bottom: 14px;
}

.breadcrumb a {
    color: #2f3b85;
}

.breadcrumb .active {
    color: #435080;
    font-weight: 600;
}

/* Common cards */
.ap-card,
.card {
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 11px;
    overflow: hidden;
}

.card-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ap-line);
}

.card-title {
    font-size: .98rem;
    font-weight: 900;
    margin: 0;
}

.card-body {
    padding: 14px;
}

/* Footer */
footer,
#site-footer {
    background: linear-gradient(120deg, #17206d, #2d1973);
    color: #fff;
    padding: 46px 0 20px;
}

footer .brand-title,
#site-footer .brand-title {
    font-size: 1.65rem;
    font-weight: 900;
}

footer .brand-title span,
#site-footer .brand-title span {
    color: #ff2f9f;
}

footer p,
footer a,
#site-footer p,
#site-footer a {
    color: #d3d5e8;
    font-size: .82rem;
}

footer a:hover,
#site-footer a:hover {
    color: #fff;
}

footer h6,
#site-footer h6 {
    font-weight: 800;
    margin-bottom: 14px;
}

.social {
    display: flex;
    gap: 10px;
}

.social a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #26307a;
}

/* Toast */
.site-toast-wrap {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    max-width: 360px;
}

.site-toast {
    background: #17206d;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(22, 32, 109, .24);
    padding: 12px 15px;
    font-size: .84rem;
    opacity: 0;
    transform: translateY(8px);
    transition: .22s ease;
}

.site-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .site-toast-wrap {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
    }

    .navbar-brand {
        font-size: 1.45rem;
    }

    .brand-tagline {
        font-size: .48rem;
        letter-spacing: 1.2px;
    }
}