:root {
    --ink: #291844;
    --muted: #746b80;
    --purple: #7040cf;
    --purple-dark: #5530a6;
    --purple-soft: #f1eaff;
    --purple-line: #e9dff7;
    --line: #eee8f4;
}

a,
button,
summary,
label,
details {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar {
    height: 4px;
    width: 5px !important;
    border-radius: 100px;
}

::-webkit-scrollbar-track {
    background-color: rgb(255, 255, 255) !important;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(131, 124, 200);
    border-radius: 100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Outfit", sans-serif;
}

button {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 clamp(20px, 5vw, 64px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    color: var(--purple);
    font: 800 27px "Gabarito", sans-serif;
    text-decoration: none;
}

.brand span {
    margin-left: 5px;
    padding: 4px 8px;
    color: #7651c5;
    background: #e9dcfa;
    border-radius: 99px;
    font: 700 10px "Outfit", sans-serif;
    vertical-align: middle;
}

.all-components {
    padding: 10px 14px;
    color: var(--purple);
    background: var(--purple-soft);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.documentation {
    width: min(100%, 860px);
    padding: 48px clamp(20px, 6vw, 80px) 70px;
    margin: auto;
}

.breadcrumbs {
    display: flex;
    gap: 9px;
    margin-bottom: 39px;
    color: #a294ad;
    font-size: 12px;
}

.breadcrumbs a {
    color: #806d99;
    text-decoration: none;
}

.breadcrumbs strong {
    color: var(--purple);
}

.eyebrow {
    display: inline-block;
    padding: 7px 11px;
    color: var(--purple);
    background: var(--purple-soft);
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.9px;
}

.page-heading {
    max-width: 680px;
    margin-bottom: 52px;
}

.page-heading h1,
.docs-section h2 {
    font-family: "Gabarito", sans-serif;
}

.page-heading h1 {
    margin: 15px 0 12px;
    font-size: clamp(44px, 6vw, 60px);
    line-height: 1;
    letter-spacing: -2px;
}

.page-heading h1 em {
    color: #8150df;
    font-style: normal;
}

.page-heading p,
.docs-section>p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.docs-section {
    margin-bottom: 58px;
    scroll-margin-top: 95px;
}

.docs-section h2 {
    margin: 0 0 7px;
    font-size: 28px;
    letter-spacing: -0.6px;
}

.docs-section>p {
    margin: 0 0 18px;
    font-size: 13px;
}

.docs-section>p code,
.class-table code {
    padding: 3px 6px;
    color: #6942a8;
    background: var(--purple-soft);
    border-radius: 5px;
    font: 11px Consolas, monospace;
}

.class-table {
    overflow-x: auto;
    border: 1px solid var(--purple-line);
    border-radius: 50px;
    corner-shape: squircle;
}

table {
    width: 100%;
    min-width: 50px;
    border-collapse: collapse;
}

th {
    padding: 15px 15px;
    color: #877a95;
    background: #faf7ff;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
}

td {
    padding: 12px 15px;
    color: #6e6178;
    border-top: 1px solid #f0ebf5;
    font-size: 12px;
}

.example {
    overflow: hidden;
    border: 1px solid var(--purple-line);
    border-radius: 50px;
    corner-shape: squircle;
}

.preview {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    align-items: center;
    justify-content: center;
    min-height: 165px;
    padding: 30px;
    background: #fbf9fe;
}

.code-panel {
    position: relative;
    padding: 17px 18px;
    background: #211339;
}

pre {
    padding: 0;
    margin: 0;
    overflow-x: auto;
    color: #efe7ff;
    font: 11px/1.7 Consolas, monospace;
}

.copy-button {
    position: absolute;
    top: 11px;
    right: 11px;
    padding: 5px 8px;
    color: #e1d4fa;
    background: #382450;
    border: 1px solid #60457f;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
}

/* Button component */

.nx-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    color: #fff;
    background: var(--purple);
    border: 1px solid var(--purple);
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(112, 64, 207, 0.17);
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    transition: 0.2s ease;
}

.nx-btn:hover {
    background: var(--purple-dark);
    border-color: var(--purple-dark);
    transform: translateY(-2px);
}

.nx-btn:focus-visible {
    outline: 3px solid #cdb8f5;
    outline-offset: 3px;
}

.nx-btn--soft {
    color: var(--purple);
    background: var(--purple-soft);
    border-color: var(--purple-soft);
    box-shadow: none;
}

.nx-btn--outline {
    color: var(--purple);
    background: #fff;
    border-color: #bda4e6;
    box-shadow: none;
}

.nx-btn--ghost {
    color: var(--purple);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.nx-btn--sm {
    min-height: 33px;
    padding: 7px 11px;
    font-size: 11px;
}

.nx-btn--lg {
    min-height: 52px;
    padding: 13px 22px;
    font-size: 15px;
}

.nx-btn:disabled {
    pointer-events: none;
    opacity: 0.45;
}

.is-loading {
    pointer-events: none;
}

.spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 560px) {
    .topbar {
        height: 62px;
        padding: 0 18px;
    }

    .brand {
        font-size: 24px;
    }

    .brand span {
        display: none;
    }

    .documentation {
        padding: 34px 16px 50px;
    }

    .page-heading h1 {
        font-size: 41px;
    }

    .preview {
        min-height: 140px;
        padding: 25px 16px;
    }
}

/* Page Header */
.page-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-align: center;
}

.page-subtitle {
    font-size: 14px;
    color: rgba(235, 235, 245, 0.6);
    margin-bottom: 36px;
    text-align: center;
}

/* Responsive Code Boxes Layout */
.code-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

/* Single column on mobile devices */
@media (max-width: 480px) {
    body {
        padding: 24px 14px;
    }

    .code-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* iOS Code Card */
.ios-code-card {
    width: 90%;
    background: rgb(248, 248, 248);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border: 1px solid rgb(216, 216, 216);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: auto;
    color: black;
    margin-bottom: 50px;
}

@media (min-width: 600px) {
    .ios-code-card {
        width: 90%;
    }
}

/* iOS Code Card */
.ios-code-card-1 {
    background: #211339;
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border-top: 1px solid rgb(158, 158, 158);
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: auto;
    color: black;
}

.pre-1 {
    display: block;
    color: #ffffff;
    white-space: pre;
}

.ios-code-header-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgb(255, 255, 255);
}

/* Card Header */
.ios-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: black;
}

/* Header Left: Dots & Badge */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: black;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(26, 30, 95, 0.727);
}

.lang-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.65);
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* iOS Copy Button */
.ios-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    background: rgba(10, 132, 255, 0.12);
    border: 1px solid rgba(10, 132, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.ios-copy-btn:hover {
    background: rgba(10, 132, 255, 0.2);
    border-color: rgba(10, 132, 255, 0.4);
}

.ios-copy-btn:active {
    transform: scale(0.92);
}

/* Copied state for the button */
.ios-copy-btn.copied {
    color: #30d158;
    background: rgba(48, 209, 88, 0.12);
    border-color: rgba(48, 209, 88, 0.3);
}

.ios-copy-btn svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.2;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

/* Code Body */
.ios-code-body {
    padding: 16px 20px;
    overflow-x: auto;
    flex-grow: 1;
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.65;
}

.pre {
    display: block;
    color: #000000;
    white-space: pre;
}

/* Syntax Highlighting */
.tok-kw {
    color: #ff375f;
    font-weight: 500;
}

/* Keywords */
.tok-fn {
    color: #0a84ff;
}

/* Functions */
.tok-str {
    color: #30d158;
}

/* Strings */
.tok-num {
    color: #ffd60a;
}

/* Numbers */
.tok-tag {
    color: #bf5af2;
}

/* Tags */
.tok-prop {
    color: #64d2ff;
}

/* Properties */
.tok-cmt {
    color: #000000;
    font-style: italic;
}

/* Comments */

/* iOS Dynamic Island / HUD Toast */
.ios-toast {
position: fixed;
    top: 55px;
    left: 50%;
    transform: translateX(-50%) translateY(-40px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #f1eaff9c;
    backdrop-filter: blur(3.5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #8150DF;
    font-size: 13px;
    font-weight: 600;
    box-shadow:
        0 1px 1px #412672,
        0 0 0 1px #412672;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}
@media (max-width:600px){
.ios-toast{
    width: 55%;
    top:70px;
}
}

.ios-toast.show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #8150DF;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 11px;
    height: 11px;
    stroke: white;
    stroke-width: 2.8;
    fill: none;
}

/*Grid css*/
.grids {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-gap: -5rem;
}

.grid {
    padding: 1px;
}

@media (min-width: 900px) {
    .grids {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Screen larger than 900px? 3 columns */
@media (min-width: 600px) {
    .grids {
        grid-template-columns: repeat(2, 1fr);
    }
}


/*Grid css*/
.grids-3 {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-gap: 1px;
}

.grid-3 {
    padding: 1px;
}

@media (min-width: 900px) {
    .grids-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Screen larger than 900px? 3 columns */
@media (min-width: 600px) {
    .grids-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}


.img1 {
    width: 80%;
    height: 80%;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .img1 {
        width: 100%;
        height: 80%;
        border-radius: 20px;
    }
}

.title1 {
    font-size: 25px;
    font-weight: 800;
    color: #5530a6;
}

.report-section {
    padding: 15px;
    margin: auto;
}

.title1 {
    font-size: 30px;
    font-weight: 800;
}

.btn-report {
    width: fit-content;
    padding: 12px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background: #5530a6;
    color: rgb(0, 0, 0);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-report:hover {
    transform: scale(0.95);
}

.btn-report a {
    color: white;
    text-decoration: none;
}

.card-1 {
    background-color: #f6f0ffa0;
    padding: 30px 15px;
    align-items: center;
    border-radius: 26px;
    text-align: left;
}

.dot-gr {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 100%;
}

.btn1:hover {
    transform: translateX(3px) !important;
}

.btn2:hover {
    transform: translateY(3px) !important;
}

.btn3:hover {
    transform: scale(1.05) !important;
}

em {
    font-style: normal;
    color: #5530a6;
}

.on-this-page {
    position: fixed;
    top: 95px;
    right: 10px;
    height: fit-content;
    padding: 20px 30px;
    transition: all 0.3s ease-in-out;
    background-color: #ebe1ff7a;
    border-radius: 50px;
    border: 2px solid #816bae;
    corner-shape: squircle;
    margin-bottom: 50px;
    backdrop-filter: blur(5px);
}

.on-this-page p {
    margin: 0 0 14px;
    color: #9a8ca6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

.on-this-page a {
    display: block;
    margin: 0 0 11px;
    color: #80738c;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.on-this-page a:hover,
.on-this-page .current {
    color: var(--purple);
    font-weight: 700;
}

@media (max-width: 600px) {
    .on-this-page {
        position: static;
    }
}

.navbar {
    box-sizing: border-box;
    position: fixed;
    top: 0px !important;
    left: 50%;
    corner-shape: squircle;
    transform: translateX(-50%);
    width: min(1400px, calc(97% - 6px));
    height: 72px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 36px;
    border: 1px solid rgba(229, 229, 229, 0.888);
    background: rgba(246, 246, 246, 0.7);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    box-shadow: 0 10px 40px rgba(130, 87, 229, 0.05);
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar.scrolled {
    top: 0;
    height: 64px;
    background: rgba(239, 239, 239, 0.85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(214, 214, 214, 0.8);
}

.logo {
    color: black;
    text-decoration: none;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 1.5px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo:hover {
    color: #5640ac;
    transform: scale(1.03);
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(130, 87, 229, 0.05);
    color: #8257e5;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(130, 87, 229, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu-btn:hover {
    background: rgba(130, 87, 229, 0.1);
    transform: scale(1.05);
}

/* Mobile Menu Drawer Overlay */
.mobile-modal {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 27, 75, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-modal.active {
    opacity: 1;
    visibility: visible;
}

.mobile-modal-content {
    box-sizing: border-box;
    width: min(390px, 100%);
    padding: 32px 24px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 30px 60px rgba(130, 87, 229, 0.1);
    transform: translateY(30px) scale(0.96);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-modal.active .mobile-modal-content {
    transform: translateY(0) scale(1);
    box-sizing: border-box;
}

.mobile-modal-top {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mobile-modal-title {
    color: var(--text-main);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.close-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(130, 87, 229, 0.05);
    color: #8257e5;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.close-btn:hover {
    background: rgba(130, 87, 229, 0.15);
    transform: scale(1.05);
}

.mobile-links {
    box-sizing: border-box;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: -50px;

}

.mobile-links a {
    box-sizing: border-box;
    width: 100%;
    height: 54px;
    padding: 0 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(130, 87, 229, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-links a:hover,
.mobile-links .active-link {
    background: #8257e5;
    color: white;
    box-shadow: 0 4px 15px rgba(130, 87, 229, 0.2);
    transform: translateX(5px);

}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
        padding: 0 20px;
    }

    .desktop-links {
        display: none;
    }

    .menu-btn {
        display: flex;
    }
}

.version {
    font-size: 15px;
    font-weight: 600;
    color: #8257e5;
    margin-left: 5px;
    background-color: rgba(130, 87, 229, 0.05);
    padding: 5px 10px;
    border-radius: 18px;
    border: 1px solid rgba(130, 87, 229, 0.05);
}

.name-title {
    color: #ffffff;
    background-color: #8257e5d9;
    padding: 1px 15px;
    border-radius: 50px;
    font-weight: 800;
    transform: rotate(-4deg);
    width: fit-content;
    font-size: 35px;
    margin-bottom: 10px;
    margin-top: 10px;

}

.btnx {
    text-decoration: none;
    color: black;
    margin-right: 10px;
    background-color: #F1EAFF;
    color: #8150DF;
    padding: 5px 15px;
    border-radius: 500px;
    transition: all 0.4s ease;
    border: none;
    width: fit-content;
    cursor: pointer;
    font-weight: 600;
}

.btnx:hover {
    transform: scale(0.95);
}