* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

:root {
    --shell-frame-offset: 12px;
    --shell-header-height: 68px;
    --shell-footer-height: 56px;
    --shell-surface: rgba(18, 18, 18, 0.58);
    --shell-surface-strong: rgba(18, 18, 18, 0.9);
    --shell-border: rgba(255, 255, 255, 0.12);
    --shell-text: rgba(255, 255, 255, 0.88);
    --shell-text-muted: rgba(255, 255, 255, 0.68);
    --shell-accent: #ffdd6b;
    --shell-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    min-height: 100vh;
    background-color: #101010;
    overflow: hidden;
    position: relative;
}

/* Navbar Styles */
.navbar {
    background: var(--shell-surface);
    border: 1px solid var(--shell-border);
    box-shadow: var(--shell-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: fixed;
    top: var(--shell-frame-offset);
    left: var(--shell-frame-offset);
    right: var(--shell-frame-offset);
    z-index: 1250;
    padding: 0;
    width: auto;
    display: flex;
    border-radius: 18px;
}

.navbar .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 16px !important;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.site-brand {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none;
    margin-right: auto;
    padding: 0;
}

.site-brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 221, 107, 0.28) 0%, rgba(255, 221, 107, 0.08) 100%);
    border: 1px solid rgba(255, 221, 107, 0.32);
    color: var(--shell-accent);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-brand-copy {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
    white-space: nowrap;
}

.site-brand-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-brand-tag {
    font-size: 0.62rem;
    color: var(--shell-text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 6px 10px;
    border-radius: 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 221, 107, 0.2);
}

.navbar-collapse {
    margin-left: auto;
    justify-content: flex-end;
    min-width: 0;
}

.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.nav-link {
    color: var(--shell-text) !important;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-nav .nav-link.active {
    color: #fff3bf !important;
    font-weight: 600;
    background: rgba(255, 221, 107, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 221, 107, 0.24);
}

.nav-item-account .nav-link,
.nav-link-cta {
    background: rgba(255, 255, 255, 0.06);
}

.nav-link-cart {
    position: relative;
    padding: 10px 12px;
}

.nav-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    line-height: 1;
}

.nav-cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--shell-accent);
    color: #1a1404;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(12, 12, 12, 0.85);
}

.is-hidden {
    display: none !important;
}

.nav-form {
    margin: 0;
}

.nav-button {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.nav-text {
    margin-left: 0;
}

.account-dropdown {
    margin-top: 10px;
    padding: 8px;
    min-width: 220px;
    border-radius: 16px;
    border: 1px solid var(--shell-border);
    background: var(--shell-surface-strong);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
}

.account-dropdown .dropdown-item {
    color: #f4f4f4;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-dropdown .dropdown-item:hover,
.account-dropdown .dropdown-item:focus,
.account-dropdown .dropdown-item:active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.account-dropdown .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.account-logout-form {
    margin: 0;
}

.account-logout-form .dropdown-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}

/* Main Content */
main {
    padding: calc(var(--shell-header-height) + 28px) 0 calc(var(--shell-footer-height) + 28px);
    overflow: auto;
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.page-home main {
    padding-top: 0;
    padding-bottom: 0;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
}

body.page-drop-history main {
    overflow: hidden;
    min-height: 0;
}

body.page-orders-history main {
    overflow: hidden;
    min-height: 0;
}

body.page-home .navbar,
body.page-home footer {
    background: rgba(14, 14, 14, 0.44);
}

/* Footer Styles */
footer {
    background: var(--shell-surface);
    color: white;
    padding: 0;
    margin-top: 0;
    box-shadow: var(--shell-shadow);
    border: 1px solid var(--shell-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: fixed;
    left: var(--shell-frame-offset);
    right: var(--shell-frame-offset);
    bottom: var(--shell-frame-offset);
    z-index: 1150;
    border-radius: 16px;
}

.footer-shell {
    min-height: var(--shell-footer-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
}

.footer-signature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shell-text-muted);
}

.footer-brand {
    color: #ffffff;
    font-weight: 700;
}

.footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

footer ul {
    list-style: none;
    padding: 0;
}

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

footer a:hover {
    color: #ffffff;
}

footer .social-links {
    display: flex;
    gap: 10px;
    font-size: 1rem;
}

footer .social-links.footer-social {
    justify-content: center;
    margin-bottom: 0;
}

footer .social-links a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

footer .social-links a:hover {
    transform: none;
    background: rgba(255, 221, 107, 0.12);
    border-color: rgba(255, 221, 107, 0.28);
    color: var(--shell-accent);
}

.footer-bottom {
    text-align: right;
    padding-top: 0;
    border-top: none;
    font-size: 0.76rem;
    color: var(--shell-text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-meta-links {
    display: inline-flex;
    gap: 12px;
}

/* Container styles */
.container {
    max-width: 1200px;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 0;
        align-items: center;
    }
}

@media (max-width: 991.98px) {
    :root {
        --shell-header-height: 64px;
        --shell-footer-height: 88px;
    }

    .navbar .container-fluid {
        padding: 10px 12px !important;
    }

    .navbar-collapse {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-nav {
        align-items: stretch;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-link-cart {
        overflow: visible;
    }

    .site-brand-tag {
        display: none;
    }

    .footer-shell {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .footer-meta-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    main {
        padding-top: calc(var(--shell-header-height) + 24px);
        padding-bottom: 118px;
    }
}


.auth-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.08);
}

.auth-alert-danger {
    border-color: rgba(220, 53, 69, 0.85);
    background: rgba(220, 53, 69, 0.35);
    color: #ffffff;
}

.auth-secondary {
    border-color: rgba(255, 255, 255, 0.6);
    color: #f5f5f5;
    background: #3a3a3a;
}

.auth-secondary:hover {
    background: #2f2f2f;
    color: #ffffff;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
}

.password-guidance-title {
    font-size: 0.8rem;
    color: #000000;
    margin-bottom: 6px;
    margin-left: 12px;
    font-style: italic;
}

.password-criteria {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 4px;
    font-size: 0.78rem;
    margin-left: 12px;
    font-style: italic;
}

.password-criteria li {
    color: #f0f0f0;
}

.password-criteria li.is-valid {
    color: #28d17c;
}

.password-criteria li.is-invalid {
    color: #ff4d5a;
}

.outline-ui,
.gold-outline-ui {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.outline-ui--gold,
.gold-outline-ui {
    color: #ffdd6b;
    border: 2px solid #ffdd6b;
}

.outline-ui--danger {
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.outline-ui--interactive,
.gold-outline-ui--interactive {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.outline-ui--interactive:hover,
.gold-outline-ui--interactive:hover {
    background: rgba(255, 221, 107, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.outline-ui--interactive:active,
.gold-outline-ui--interactive:active {
    transform: translateY(0);
}

.outline-ui--interactive:disabled,
.gold-outline-ui--interactive:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}