:root {
    --kiwi-primary: #ff0066;
    --kiwi-secondary: #9900ff;
    --kiwi-nav-bg: rgba(10, 0, 20, 0.95);
    --kiwi-footer-bg: rgba(5, 0, 10, 0.95);
    --kiwi-border: rgba(255, 0, 170, 0.25);
    --kiwi-text-muted: rgba(255, 255, 255, 0.82);
}

.kiwi-navbar.site-header {
    background: var(--kiwi-nav-bg);
    border-bottom: 1px solid var(--kiwi-border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.kiwi-navbar .container {
    min-height: 68px;
}

.kiwi-brand.logo,
.kiwi-navbar .logo {
    font-weight: 800;
    font-size: 1.35rem;
    background: linear-gradient(90deg, var(--kiwi-primary), var(--kiwi-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.kiwi-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

/* Shared mobile sidebar (same behavior across public pages) */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 290px;
    height: 100%;
    background: rgba(10, 0, 20, 0.98);
    backdrop-filter: blur(16px);
    z-index: 9999;
    transition: right 0.28s ease;
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.42);
    border-left: 1px solid rgba(255, 0, 170, 0.32);
    overflow-y: auto;
    padding: 20px 16px 18px;
}

.mobile-sidebar.open {
    right: 0;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.66);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 0, 170, 0.28);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, var(--kiwi-primary), var(--kiwi-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-sidebar {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-sidebar:hover {
    background: rgba(255, 0, 170, 0.28);
    transform: rotate(90deg);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin-bottom: 8px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    color: #fff;
    background: linear-gradient(45deg, var(--kiwi-primary), var(--kiwi-secondary));
    border-color: transparent;
    transform: translateX(4px);
}

.sidebar-nav-link i {
    width: 19px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-user-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--kiwi-primary), var(--kiwi-secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.sidebar-user-email {
    font-size: 0.76rem;
    opacity: 0.85;
}

.kiwi-navbar .nav-link {
    color: #ffffff !important;
    border-radius: 999px;
    padding: 0.45rem 0.95rem !important;
    margin: 0 0.1rem;
    transition: all 0.2s ease;
    border: 0;
}

.kiwi-navbar .nav-link:hover,
.kiwi-navbar .nav-link.active {
    background: linear-gradient(45deg, var(--kiwi-primary), var(--kiwi-secondary));
    transform: translateY(-1px);
}

.kiwi-navbar .kiwi-auth-btn {
    background: transparent;
}

.kiwi-navbar .user-dropdown {
    position: relative;
    z-index: 1003;
}

.kiwi-navbar .user-menu-btn {
    background: linear-gradient(45deg, var(--kiwi-primary), var(--kiwi-secondary));
    border: 0;
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 1004;
}

.kiwi-navbar .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.kiwi-navbar .user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 185px;
    padding: 0.5rem 0;
    background: rgba(10, 0, 20, 0.98);
    border: 1px solid var(--kiwi-border);
    border-radius: 10px;
    z-index: 1002;
}

.kiwi-navbar .user-dropdown-menu.show {
    display: block;
}

.kiwi-navbar .user-dropdown-item {
    display: block;
    padding: 0.45rem 0.9rem;
    color: #fff;
    text-decoration: none;
}

.kiwi-navbar .user-dropdown-item:hover {
    background: rgba(255, 0, 170, 0.2);
    color: #fff;
}

.kiwi-auth-modal .modal-dialog {
    max-width: 520px;
}

.kiwi-auth-modal .modal-content {
    background: linear-gradient(180deg, rgba(18, 0, 38, 0.98), rgba(7, 0, 19, 0.98));
    border: 2px solid rgba(255, 0, 170, 0.95);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.58);
    overflow: hidden;
}

.kiwi-auth-modal .modal-header {
    padding: 1rem 1.25rem 0.9rem;
    border-bottom: 1px solid rgba(255, 0, 170, 0.32);
}

.kiwi-auth-modal .modal-title {
    font-weight: 800;
    font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem);
    color: #ff0aa6;
}

.kiwi-auth-modal .btn-close {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-size: 0.95rem;
    opacity: 0.7;
    box-shadow: none;
}

.kiwi-auth-modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.05);
}

.kiwi-auth-modal .modal-body {
    padding: 1rem 1.25rem 1.2rem;
}

.kiwi-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 1rem;
    border-bottom: 1px solid rgba(255, 0, 170, 0.42);
}

.kiwi-auth-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    padding: 0.85rem 0.65rem;
    font-weight: 800;
    font-size: 1.06rem;
    transition: all 0.2s ease;
}

.kiwi-auth-tab:hover {
    color: #ff4dbf;
    background: rgba(255, 0, 170, 0.08);
}

.kiwi-auth-tab.is-active {
    background: rgba(255, 0, 170, 0.12);
    color: #ff0aa6;
    border-bottom-color: #ff0aa6;
    box-shadow: none;
}

.kiwi-auth-panel {
    display: none;
}

.kiwi-auth-panel.is-active {
    display: block;
    animation: kiwiAuthFade 0.22s ease;
}

@keyframes kiwiAuthFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kiwi-auth-modal .form-control {
    min-height: 50px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 0, 170, 0.3);
    color: #ffffff;
    border-radius: 12px;
    padding: 0.7rem 0.95rem;
    font-weight: 500;
}

.kiwi-auth-modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.kiwi-auth-modal .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ff4dbf;
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 170, 0.16);
    color: #ffffff;
}

.kiwi-auth-modal .form-control:-webkit-autofill,
.kiwi-auth-modal .form-control:-webkit-autofill:hover,
.kiwi-auth-modal .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 0 0 1000px rgba(38, 10, 58, 0.96) inset;
    transition: background-color 9999s ease-in-out 0s;
}

.kiwi-auth-modal .form-check-input {
    margin-right: 0.45rem;
    background-color: #f1f4fa;
    border-color: rgba(255, 255, 255, 0.55);
}

.kiwi-auth-modal .form-check-input:checked {
    background-color: #ff1493;
    border-color: #ff1493;
}

.kiwi-auth-modal .form-check-label {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.kiwi-auth-submit {
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
    background: linear-gradient(120deg, #ff007a, #9b00ff);
    min-height: 50px;
    padding: 0.7rem 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.kiwi-auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(185, 20, 255, 0.34);
}

.kiwi-auth-submit:active {
    transform: translateY(0);
}

.kiwi-auth-link {
    display: block;
    margin: 0.95rem auto 0;
    border: 0;
    background: transparent;
    color: #ff1493;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.02rem;
    cursor: pointer;
}

.kiwi-auth-link:hover {
    color: #ff4dbf;
    text-decoration: underline;
}

.kiwi-auth-note {
    color: rgba(255, 255, 255, 0.83);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.kiwi-auth-alert {
    border-radius: 11px;
    padding: 11px 12px;
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.kiwi-auth-alert.is-success {
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.42);
    color: #a8f3c3;
}

.kiwi-auth-alert.is-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.42);
    color: #ffb9bf;
}

@media (max-width: 575px) {
    .kiwi-auth-modal .modal-content {
        border-radius: 15px;
    }

    .kiwi-auth-modal .modal-header {
        padding: 0.9rem 0.95rem 0.35rem;
    }

    .kiwi-auth-modal .modal-body {
        padding: 0.3rem 0.95rem 1rem;
    }

    .kiwi-auth-tab {
        font-size: 0.98rem;
        padding: 0.75rem 0.35rem;
    }
}

.kiwi-footer.site-footer {
    background: var(--kiwi-footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 2.2rem;
    margin-top: 3rem;
}

.kiwi-footer .kiwi-footer-title {
    color: #ff4da6;
    font-weight: 700;
}

.kiwi-footer .kiwi-footer-text {
    color: var(--kiwi-text-muted);
}

.kiwi-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.kiwi-footer .footer-links a,
.kiwi-footer .copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.kiwi-footer .footer-links a:hover,
.kiwi-footer .copyright a:hover {
    color: #ff4da6;
}

.kiwi-footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.2rem;
    padding: 1rem 0 1.25rem;
    color: rgba(255, 255, 255, 0.75);
}

.kiwi-breadcrumb-wrap {
    background:
        linear-gradient(120deg, rgba(255, 0, 102, 0.09), rgba(153, 0, 255, 0.08)),
        rgba(12, 0, 24, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 0, 170, 0.2);
    backdrop-filter: blur(10px);
}

.kiwi-breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0.8rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: center;
}

.kiwi-breadcrumb-item {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.25;
}

.kiwi-breadcrumb-item + .kiwi-breadcrumb-item::before {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.55);
    border-right: 1.5px solid rgba(255, 255, 255, 0.55);
    transform: rotate(45deg);
}

.kiwi-breadcrumb-item a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    transition: color 0.2s ease;
}

.kiwi-breadcrumb-item a:hover {
    color: #ff66b2;
}

.kiwi-breadcrumb-item.is-current {
    color: #ff4da6;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .kiwi-navbar.has-mobile-sidebar .navbar-collapse {
        display: none !important;
    }

    .kiwi-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .kiwi-navbar .nav-link {
        margin: 0.15rem 0;
    }

    .kiwi-navbar .user-nav-item {
        margin-top: 0.35rem;
    }

    .kiwi-footer.site-footer {
        margin-top: 2rem;
    }

    .kiwi-breadcrumb {
        padding: 0.65rem 0;
        gap: 0.25rem 0.5rem;
    }

    .kiwi-breadcrumb-item {
        font-size: 0.82rem;
        gap: 0.5rem;
    }
}

@media (min-width: 992px) {
    .mobile-sidebar,
    .sidebar-backdrop {
        display: none !important;
    }
}
