
:root {
    /* Colors */
    --bg: #241c1c;
    --fg: #f9f9f9;
    --green: #6ca93e;
    --blue: #0b9cb4;
    --danger: #9e0000;
    --success: #08bd17;
    --warning: #cbcb03;
	--bg-lighter: hsl(from var(--bg) h s calc(l + 2));
    --bg-green: rgba(from var(--green) r g b / 7.5%);
	--bg-blue: rgba(from var(--blue) r g b / 7.5%);

    /* Clamps */
    --clamp-28-64: clamp(1.75rem, calc(-0.036rem + 4.762vw), 4.25rem);
    --clamp-26-52: clamp(1.625rem, calc(0.464rem + 3.095vw), 3.25rem);
    --clamp-24-40: clamp(1.5rem, calc(0.786rem + 1.905vw), 2.5rem);
    --clamp-22-28: clamp(1.375rem, calc(1.107rem + 0.714vw), 1.75rem);
    --clamp-18-24: clamp(1.125rem, calc(0.857rem + 0.714vw), 1.5rem);
    --clamp-16-20: clamp(1rem, calc(0.821rem + 0.476vw), 1.25rem);
    --clamp-14-18: clamp(0.875rem, calc(0.696rem + 0.476vw), 1.125rem);
    --clamp-12-16: clamp(0.75rem, calc(0.571rem + 0.476vw), 1rem);

    /* Theme defaults */
    --font-family: "Open Sans";
    --border-radius: 12px;
    --border-size: 4px;
    --header-height: 80px;
    --footer-height: 100px;
    --sidebar-width: 225px;
    --padding-inline: 1rem;
    --content-max-width: 900px;
    --breakout-max-width: 1200px;
    --breakout-size: calc((var(--breakout-max-width) - var(--content-max-width)) / 2);
}

.light {
    --fg: #241c1c;
    --bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: auto; /* auto | thin | none */
    scrollbar-color: var(--fg) var(--bg); /* thumb color track color */
}

html {
    font-size: 1rem;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-family, system-ui, -apple-system, sans-serif);
    font-size: 1rem;
    line-height: 1.15;

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

    h1, h2, h3, h4, h5, h6 {
        font-size: 1rem;
        line-height: 1.44;
    }
}

ul, li {
    list-style: none;
}

h1, h2 {
    font-weight: 600;
}

h3, h4, h5, h6 {
    font-weight: 500;
}

[class^="text-"] {
    line-height: 1.8;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: var(--clamp-12-16);
}

.text-md {
    font-size: var(--clamp-14-18);
}

.text-lg {
    font-size: var(--clamp-16-20);
}

.text-xl {
    font-size: var(--clamp-18-24); 
}

.text-2xl {
    font-size: var(--clamp-22-28);
}

.text-3xl {
    font-size: var(--clamp-24-40);
}

.text-4xl {
    font-size: var(--clamp-26-52);
}

.text-5xl {
    font-size: var(--clamp-28-64);
}

.clr-blue {
    color: var(--blue);
}

.clr-green {
    color: var(--green);
}

.clr-danger {
    color: var(--danger);
}

.clr-bg {
    color: var(--bg);
}

.clr-fg {
    color: var(--fg);
}

.bg-blue {
    background-color: var(--blue);
}

.bg-green {
    background-color: var(--green);
}

.bg-blue-thick {
    background-color: rgba(from var(--blue) r g b / 65%);
}

.bg-blue-light {
    background-color: rgba(from var(--blue) r g b / 20%);
}

.bg-blue-lighter {
    background-color: rgba(from var(--blue) r g b / 7.5%);
}

.bg-green-lighter {
    background-color: rgba(from var(--green) r g b / 7.5%);
}

.fill-green {
    fill: var(--green);
}

.fill-blue {
    fill: var(--blue);
}

.space-xl {
    margin-block: 4rem;
}

.space-lg {
    margin-block: 3rem;
}

.space-md {
    margin-block: 2rem;
}

.space-sm {
    margin-block: 1rem;
}

.lh-regular {
    line-height: 1.15;
}

.lh-md {
    line-height: 1.2;
}

nav svg {
    width: 24px;
    height: 24px;
    fill: var(--fg);
}

header {
    padding: 10px 1rem;
    grid-area: header;
    width: 100%;

    nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        ul {
            display: none;
        }

        button.mobile-toggler {
            width: 40px;
            height: 40px;
            color: var(--fg);
            background-color: transparent;
            border: none;
        }

    }

}

.main-grid {
    display: grid;
    grid-template-rows: var(--header-height) 1fr var(--footer-height);
    grid-template-areas:
        "header"
        "content"
        "footer";
}

.content-grid {
    display: grid;
    grid-template-columns:
        [full-width-start] minmax(var(--padding-inline), 1fr)
        [breakout-start] minmax(0, var(--breakout-size))
        [content-start] min(
                100% - (var(--padding-inline) * 2),
                var(--content-max-width)
            )
        [content-end]
        minmax(0, var(--breakout-size)) [breakout-end]
        minmax(var(--padding-inline), 1fr) [full-width-end];
}

.content-grid > :not(.breakout, .full-width),
.full-width > :not(.breakout, .full-width) {
    grid-column: content;
}

.content-grid > .breakout {
    grid-column: breakout;
}

.content-grid > .full-width {
    grid-column: full-width;
    display: grid;
    grid-template-columns: inherit;
}

svg {
    width: 100%;
    height: 100%;
}

.site-sidebar {
    display: none;
    grid-area: sidebar;
}

main {
    grid-area: content;
    min-height: calc(100dvh - var(--header-height) - var(--footer-height));
}

footer {
    grid-area: footer;
    display: flex;
    align-items: center;
    justify-content: center;

    .footer-bottom {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
		height: 100%;
    }
}

.logo,
.logo img {
    height: 60px;
}

fieldset {
    display: grid;
    align-items: center;
    gap: 1rem;
    border: none;

    label {
        display: none;
    }

    > div {
        display: flex;
        justify-content: space-between;
    }
}

button[type="submit"] {
    background-color: var(--green);
    color: var(--bg);
    padding: 0.5rem 0.725rem;
    border-radius: var(--border-radius);
    border: none;
    width: 100%;
    font-size: 1.25rem;
}

input:not([type="submit"]),
select,
textarea {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    outline: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    background-color: var(--fg);
    color: var(--bg);
}

input:not([type="submit"]):focus,
input:not([type="submit"]):focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
    outline: none;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.form-field.span-2 {
    grid-column: 1 / -1;
}

.avatar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.db-avatar {
    display: inline-block;
    border-radius: 50%;
    flex-shrink: 0;
}

.mobile-menu {
    display: none;
}

a.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--fg);

    svg {
        flex-shrink: 0;
    }

    &.active,
    &[aria-current="page"] {
        background-color: rgba(from var(--green) r g b / 16%);
        color: var(--green);
        font-weight: 600;
        border-radius: var(--border-radius);

        svg {
            fill: var(--green);
        }
    }
}

.breadcrumb {
    display: flex;
    flex-direction: row;
    margin-bottom: 2rem;
    margin-left: 1rem;
}

.card {
    background-color: var(--bg-green);
    border-radius: var(--border-radius);

    > * {
        padding: 1rem;
    }

    .card-header {
        color: var(--blue);
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.25rem;

        button,
        a {
            color: var(--bg);
            background-color: var(--green);
            font-size: 1rem;
            padding: 0.25rem 0.5rem;
            border-radius: var(--border-radius);
            border: solid var(--border-size) var(--green);
        }
    }

    &.ghost-border {
        background-color: transparent;
        border: solid var(--border-size) var(--green);
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
}

button.btn,
a.btn {
    display: inline-block;
    color: var(--bg);
    background-color: var(--green);
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    border: solid var(--border-size) var(--green);
}

button.ghost,
a.ghost {
    background-color: transparent;
    color: var(--fg);
    border: none;
}

button.ghost-border,
a.ghost-border {
    background-color: transparent !important;
    color: var(--fg) !important;
    border: solid var(--border-size) var(--green);
}

table.orders {
    width: 100%;

    tr {
        td:nth-child(3) {
            width: 100px;
        }

        td:last-child {
            width: 1rem;
        }
    }
}

table.support {
    width: 100%;

}

table.services {
    width: 100%;
    border-collapse: collapse;

    th {
        text-align: left;
        padding: 0 0.5rem 0.5rem;
        border-bottom: 1px solid rgba(from var(--fg) r g b / 12%);
    }

    td {
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid rgba(from var(--fg) r g b / 6%);
    }

    td:last-child {
        text-align: right;
        width: 110px;
    }
}

table.invoices {
    width: 100%;
    border-collapse: collapse;

    th {
        text-align: left;
        padding: 0 0.5rem 0.5rem;
        border-bottom: 1px solid rgba(from var(--fg) r g b / 12%);
    }

    td {
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid rgba(from var(--fg) r g b / 6%);
    }

    td:last-child {
        text-align: right;
        width: 120px;
    }
}

table.transactions {
    width: 100%;
    border-collapse: collapse;

    th {
        text-align: left;
        padding: 0 0.5rem 0.5rem;
        border-bottom: 1px solid rgba(from var(--fg) r g b / 12%);
    }

    td {
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid rgba(from var(--fg) r g b / 6%);
    }

    td:last-child {
        text-align: right;
        width: 160px;
    }

    td:nth-child(2) {
        width: 160px;
    }

    tfoot td {
        border-bottom: none;
        padding-top: 1rem;
    }
}

.h-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background-color: var(--bg-blue);
    color: var(--fg);

    h2 {
        font-size: 1rem;
        font-weight: 600;
    }

    p {
        font-size: 0.875rem;
        opacity: 0.85;
    }

    &.success {
        background-color: rgba(from var(--success) r g b / 15%);
    }

    &.warning {
        background-color: rgba(from var(--warning) r g b / 15%);
    }

    &.error,
    &.danger {
        background-color: rgba(from var(--danger) r g b / 15%);
    }
}

nav[aria-label] .pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-block: 1.5rem;

    .page-item {
        display: flex;

        .page-link {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 2.25rem;
            height: 2.25rem;
            padding: 0 0.5rem;
            border-radius: var(--border-radius);
            background-color: var(--bg-green);
            color: var(--fg);
            font-size: 0.875rem;

            svg {
                width: 18px;
                height: 18px;
                fill: var(--fg);
            }
        }

        &.active .page-link {
            background-color: var(--green);
            color: var(--bg);
            font-weight: 600;
        }

        &.disabled .page-link {
            opacity: 0.35;
            pointer-events: none;
        }
    }
}

.badge {
    padding: 0.5rem;
    width: 0;
    border-radius: 50%;

    span {
        display: none;
    }

    &.success {
        background-color: var(--success);
    }

    &.warning {
        background-color: var(--warning);
    }

    &.danger {
        background-color: var(--danger);
    }

    &.secondary {
        background-color: rgba(from var(--fg) r g b / 30%);
    }

    &.labeled {
        width: auto;
        padding: 0.25rem 0.75rem;
        border-radius: var(--border-radius);
        display: inline-block;

        span {
            display: inline;
            font-size: 0.875rem;
            font-weight: 600;
        }
    }
}

.rounded {
	border-radius: 50%;
}

#top {
    z-index: 15;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--green);
    color: var(--bg);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: none;
    font-size: 0.75rem;
    display: grid;
    gap: 0.15rem;

    svg {
        height: 20px;
        width: 20px;
    }
}

.grid-2 {
    display: grid;
}

/* Home Page Sections (Mobile First) */

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;

    .hero-image {
        width: 100%;

            /* Animations */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-15px); }
        }

        @keyframes orbit {
            from { transform: rotate(0deg) translateX(210px) rotate(0deg); }
            to { transform: rotate(360deg) translateX(210px) rotate(-360deg); }
        }

        @keyframes dash {
            to { stroke-dashoffset: 0; }
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 1; }
        }

        .floating-panel {
            animation: float 6s ease-in-out infinite;
        }

        .packet-group {
            animation: orbit 18s linear infinite;
            transform-origin: center;
        }

        .line-draw {
            stroke-dasharray: 600;
            stroke-dashoffset: 600;
            animation: dash 3s ease-out forwards;
        }

        .status-blink {
            animation: pulse 2s infinite;
        }
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

    a {
        width: -moz-fit-content;
        width: fit-content;
    }
}

/* Domain Checker */

#domain-checker > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-block: 1.5rem;

    form {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

/* Feature Sections (Web Services / Domains / VPS / ShoutCast) */

.feature-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0%;
    width: 100%;

    a {
        width: -moz-fit-content;
        width: fit-content;
    }
}

.feature-icon {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 1 1 0%;
    width: 100%;

    img {
        width: 100%;
        max-width: 420px;
        height: auto;
    }
}

.feature-icon-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(from var(--blue) r g b / 15%), transparent 70%);
    border: var(--border-size) solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;

    svg {
        width: 88px;
        height: 88px;
        color: var(--blue);
        stroke-width: 1.25;
    }
}

/* Hosting Plans */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-title {
    color: var(--fg);
    font-size: var(--clamp-26-52);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--fg);
    font-size: var(--clamp-22-28);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background-color: transparent;
    border: var(--border-size) solid var(--green);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.pricing-card.popular {
    border-width: calc(var(--border-size) * 2);
    margin-top: 1.5rem;
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    background-color: var(--green);
    color: var(--bg);
    padding: 0.5rem;
    font-size: var(--clamp-16-20);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.plan-title {
    color: var(--blue);
    font-size: var(--clamp-24-40);
    margin-bottom: 1rem;
}

.plan-price {
    color: var(--fg);
    font-size: var(--clamp-22-28);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(from var(--fg) r g b / 12%);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.plan-features li {
    color: var(--fg);
    font-size: var(--clamp-16-20);
    margin-bottom: 0.75rem;
}

.btn-outline {
    border: var(--border-size) solid var(--green);
    color: var(--fg);
    font-size: var(--clamp-18-24);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    display: block;
}

/* CPanel Section */

.cpanel-section {
    position: relative;
    padding: 4rem 1rem;
    background-color: rgba(from var(--blue) r g b / 65%);
    margin-top: 2rem;
}

.cpanel-graphic {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.cpanel-graphic img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

.socials {
    display:flex;
    justify-content: space-evenly;
}

/* Desktop Enhancements */

@media screen and (width >= 1024px) {
    .hero-section {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        min-height: 80vh;
        padding: 4rem 0;
    }

    .hero-content {
        max-width: 750px;
        align-items: flex-start;
    }

    .feature-row {
        flex-direction: row;
        text-align: left;
    }

    .feature-content {
        align-items: flex-start;
    }

    .feature-icon {
        display: flex;
    }

    .feature-row.reverse {
        flex-direction: row-reverse;
    }

    .partners-bar {
        padding: 3rem 0;
        margin-bottom: 6rem;
    }

    .partners-grid {
        gap: 2rem;
        justify-content: space-between;
    }

    .partners-grid img {
        height: 46px;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        align-items: end;
        margin-bottom: 8rem;
        padding: 0;
    }

    .pricing-card { padding: 3rem 2rem; }

    .pricing-card.popular { 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
    }

    .cpanel-section {
        padding: 6rem 0;
        margin-top: 4rem;
    }
    .cpanel-graphic img { box-shadow: 0 20px 40px rgb(0 0 0 / 30%); }

    .mobile-toggler {
        display: none;
    }

    nav#side-nav {
        li:last-child {
            margin-left: 2rem;
            margin-top: 1.5rem;
        }

        a{
            display: inline-flex;
            align-items: center;
            padding: .5rem .75rem;
            width: calc(100% - 2rem);
            margin-inline: 1rem;

            &:hover {
                background-color: var(--green);
                color: var(--bg);
                font-weight: 500;
                border-radius: var(--border-radius);

                svg {
                    fill: var(--bg);
                }
            }
        }
    }

    nav#top-nav ul {
        display: flex !important;
        flex-direction: row;
		gap: 1.5rem;
		align-items: center;
    }

    .main-grid {
        display: grid;
        grid-template: "header header" var(--header-height) "sidebar content" 1fr "footer footer" var(--footer-height) / 255px 1fr;
    }

    .site-sidebar {
        display: block;
    }

    main {
        margin-inline-start: 0;
    }

    .grid-2.profile {
        grid-template-columns: 1fr 1fr;
        max-width: 800px;
        gap: 1rem 1.5rem;
        margin-inline: auto;
        margin-block-start: 1.5rem;

        > div {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        button {
            grid-column: 1/3;
        }
    }
}

/* Order Stepper Page Styles (Mobile First) */

.order-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-box {
    background-color: var(--bg-lighter, #2d2424);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color, rgb(255 255 255 / 10%));

    h2, h3, h4, h5, h6 {
        margin-bottom: 1rem;
    }
}

.content-box.no-padding { padding: 0; }

.content-box.bg-accent { background-color: var(--bg-blue); }

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    padding-bottom: 1rem;
}

/* Product Grid */

.category-group { margin-bottom: 3rem; }

.category-title { 
    border-bottom: 2px solid var(--blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-card {
    background-color: rgb(255 255 255 / 3%);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.product-card.selected {
    border-color: var(--blue);
    background-color: var(--bg-blue);
}

.product-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.875rem;
    color: rgb(255 255 255 / 60%);
    margin-bottom: 1.5rem;
}

/* Radio Grid (Billing Cycles) */

.radio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.radio-card {
    cursor: pointer;
}

.radio-card input { display: none; }

.radio-card-content {
    border: 2px solid var(--border-color, rgb(255 255 255 / 10%));
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.radio-card input:checked + .radio-card-content {
    border-color: var(--blue);
    background-color: var(--bg-blue);
}

.period-name { font-weight: 600; }

.period-price { color: var(--blue); }

/* Account Split */

.account-split {
    display: flex;
    flex-direction: column;
}

.login-pane, .register-pane {
    padding: 2rem;
}

.login-pane { background-color: rgb(255 255 255 / 2%); }

.subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-field input {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    opacity: 0.7;
}

.page-padding {
    padding: 2rem 1rem;
}

button.btn.block,
a.btn.block {
    display: block;
    width: 100%;
    text-align: center;
}

button.btn.danger,
a.btn.danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: var(--fg);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--bg-blue);
    color: var(--fg);

    &.success {
        background-color: rgba(from var(--success) r g b / 15%);
        color: var(--success);
    }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(from var(--bg) r g b / 85%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkout */

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-meta {
    opacity: 0.6;
}

.item-price-group {
    text-align: right;
}

.price {
    font-weight: 600;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.total-line {
    border-top: 1px solid rgb(255 255 255 / 10%);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgb(255 255 255 / 3%);
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-block: 1rem;

    input {
        width: auto;
    }
}

.email-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;

    &.active {
        background-color: var(--bg-blue);
    }
}

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;

    svg, i {
        width: 48px;
        height: 48px;
        color: var(--green);
    }
}

body.api-loading {
    cursor: progress;
}

/* Loader */

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--fg);
    border-bottom-color: var(--blue);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

dialog {
    background-color: var(--bg-lighter, #2d2424);
    color: var(--fg);
    border: none;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    width: min(600px, 90vw);

    &::backdrop {
        background-color: rgb(0 0 0 / 60%);
    }

    textarea {
        min-height: 8rem;
        resize: vertical;
    }
}

.loader-track {
    width: 100%;
    height: 10px;
    border-radius: var(--border-radius);
    background-color: rgba(from var(--fg) r g b / 12%);
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0;
    border-radius: var(--border-radius);
    background-color: var(--green);
    transition: width 60s linear;
}

/* Desktop Styles */

@media screen and (width >= 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .radio-grid { grid-template-columns: repeat(3, 1fr); }
    .account-split { flex-direction: row; }
    .login-pane, .register-pane { flex: 1; }
    .login-pane { border-right: 1px solid rgb(255 255 255 / 10%); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .checkout-grid { grid-template-columns: 1.5fr 1fr; }
}

#hero {
    .floating-panel {
        animation: hero-float 6s ease-in-out infinite;
    }

    .packet-group {
        animation: hero-orbit 18s linear infinite;
        transform-origin: center;
    }

    .line-draw {
        stroke-dasharray: 600;
        stroke-dashoffset: 600;
        animation: hero-dash 3s ease-out forwards;
    }

    .status-blink {
        animation: hero-pulse 2s infinite;
    }
}

@keyframes hero-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes hero-orbit {
    from {
        transform: rotate(0deg) translateX(210px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(210px) rotate(-360deg);
    }
}

@keyframes hero-dash {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes hero-pulse {
    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Everything should be loaded after common for proper order */

:root {
	--carousel-gap: 1rem;
	--carousel-visible-items:6;
	--carousel-snap: start;
	--carousel-padding: 1rem;
	--carousel-duration: 30s;
}

:root {
	--sheet-height: 100dvh;
	--sheet-z-index: 9000;
	--sheet-width: 300px;
	--sheet-background: var(--bg);
	--backdrop-background: var(--bg-green);
	--sheet-shadow-color: rgba( from var(--fg) r g b / 20%);
}

.close {
	position: absolute;
	top: .5rem;
	right: .5rem;
}

sheet-component {
	ul {
	margin-top: 2.5rem;

		li {
			padding: 0.25rem 0.75rem;
			width: 100%;

			a {
				display: inline-flex;
				align-items: center;
				justify-content: flex-start;
			}
		}

		li:hover {
			background-color: var(--green);

			a {
				color: var(--bg);
			}

			svg {
				fill: var(--bg);
			}
		}
	}
}

:root {
	--dropdown-bg: var(--bg-lighter);
	--dropdown-min-width: 220px;

	/* --dropdown-shadow: 0 0 10px rgba(from var(--blue) r g b / 0.3); */
	--dropdown-radius: var(--border-radius);
}

dropdown-content {
	div {
		padding: 1rem;
		border-bottom: solid 2px var(--blue);
	}
}

dropdown-item {
	&:focus-visible {
		outline: none;
	}

	&:last-child,
	&:last-child a:hover {
		border-radius: 0 0 var(--border-radius) var(--border-radius);
	}

	a {
		padding: 0.5rem 0.75rem;
		display: inline-block;
		width: 100%;

		&:hover {
			background-color: var(--green);
			color: var(--bg);
		}
	}
}

:root {
	--select-bg: var(--bg-lighter);
	--select-min-width: 220px;
	--select-margin: 0.25rem;
	--select-trigger-icon-size: 24px;
}

select-trigger {
	background-color: var(--bg-blue);
	padding: 0.5rem 0.75rem;
	border-radius: var(--border-radius);

	/* svg {
		width: var(--select-trigger-icon-size, 24px);
		height: var(--select-trigger-icon-size, 24px);
	} */
}

select-content {
	width: -moz-min-content;
	width: min-content;
}

select-item {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	width: anchor(width);

	&:focus-visible {
		outline: none;
	}

	&:hover {
		background-color: var(--green);
		color: var(--bg);
	}
}

:root {
	--switch-width: 3.25rem;
	--switch-height: 2rem;
	--switch-bg: rgba(from var(--blue) r g b / 20%);
	--switch-bg-checked: var(--green);
	--switch-thumb-size: 1.5rem;
	--switch-thumb-bg: var(--fg);
	--switch-thumb-spacing: 0.25rem;
	--switch-transition: all 0.2s ease-in-out;
	--switch-radius: 9999px;
	--switch-icon-size: 1rem;
}

switcher-component {
	svg {
		fill: var(--bg);
		stroke: var(--bg);
		height: var(--switch-icon-size);
		width: var(--switch-icon-size);
	}
}

:root {
	--tabs-list-gap: .5rem;
	--tabs-trigger-bg: var(--bg-blue);
	--tabs-trigger-padding: 0.5rem;
	--tabs-trigger-selected-bg: var(--green);
	--tabs-trigger-selected-fg: var(--bg);
	--tabs-trigger-border-radius: var(--border-radius) var(--border-radius) 0 0;
	--tabs-content-bg: var(--bg-green);
	--tabs-content-padding: 1rem;
}

:root {	
	--toaster-max-width: 400px;
	--toaster-z-index: 10000;
	--toast-padding: 1rem;
	--toast-border: transparent;
	--toast-color: var(--fg);
	--toast-bg: var(--bg-blue);
	--toast-success: var(--success);
	--toast-error: var(--danger);
	--toast-warning: var(--warning);
	--toast-info: var(--blue);
}
