/* ============================================
   NextGen Bazaar — Components
   ============================================ */

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
    z-index: var(--z-nav);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 800;
    color: #111827;
    text-decoration: none;
}

.navbar__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--hero-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    color: white;
}

.navbar__logo span {
    color: #111827;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.navbar__link {
    position: relative;
    color: #4b5563;
    font-weight: 500;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.navbar__link:hover,
.navbar__link.active {
    color: #059669;
}

.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar__action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    color: #4b5563;
    font-size: var(--fs-lg);
    transition: all var(--transition-fast);
}

.navbar__action-btn:hover {
    background: #ecfdf5;
    color: #059669;
    border-color: #059669;
}

.navbar__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar__user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.navbar__user-avatar:hover {
    border-color: var(--accent);
}

/* Mobile Menu Toggle */
.navbar__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: var(--space-sm);
}

.navbar__menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.navbar__menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .navbar__menu-toggle {
        display: flex;
    }

    .navbar__links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: var(--z-nav);
    }

    .navbar__links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn--primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(5, 150, 105, 0.5);
}

.btn--accent {
    background: var(--accent-gradient);
    color: var(--text-inverse);
    box-shadow: 0 4px 15px rgba(0, 210, 211, 0.3);
}

.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 210, 211, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--primary-light);
    border-color: var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn--ghost {
    background: var(--bg-input);
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.btn--ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary);
}

.btn--danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn--danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

.btn--success {
    background: linear-gradient(135deg, #00b894, #00a382);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn--success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 184, 148, 0.5);
}

.btn--sm {
    padding: 8px 18px;
    font-size: var(--fs-xs);
}

.btn--lg {
    padding: 16px 36px;
    font-size: var(--fs-base);
}

.btn--full {
    width: 100%;
}

.btn--icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn:disabled,
.btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: rotate 0.6s linear infinite;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image img {
    transform: scale(1.08);
}

.card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 4px 12px;
    background: var(--danger);
    color: white;
    font-size: var(--fs-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.card__badge--new {
    background: var(--accent);
    color: var(--text-inverse);
}

.card__wishlist {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--fs-md);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.card__wishlist:hover,
.card__wishlist.active {
    background: var(--danger);
    transform: scale(1.1);
}

.card__actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    gap: var(--space-sm);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.card:hover .card__actions {
    transform: translateY(0);
}

.card__body {
    padding: var(--space-lg);
}

.card__category {
    font-size: var(--fs-xs);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.card__title {
    font-size: var(--fs-base);
    font-weight: 600;
    margin-top: var(--space-xs);
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__title a {
    color: inherit;
}

.card__title a:hover {
    color: var(--accent);
}

.card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.card__stars {
    color: #f1c40f;
    font-size: var(--fs-sm);
}

.card__rating-count {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.card__price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.card__price-current {
    font-size: var(--fs-lg);
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent);
}

.card__price-original {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}

.card__price-discount {
    font-size: var(--fs-xs);
    color: var(--danger);
    font-weight: 700;
    background: rgba(231, 76, 60, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* ============================================
   Form Inputs
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--fs-base);
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
    background: var(--bg-tertiary);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

.form-input--error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

.form-error {
    font-size: var(--fs-xs);
    color: var(--danger);
    margin-top: var(--space-xs);
}

.form-hint {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0c0' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12L8 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.toggle__slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle input:checked+.toggle__slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle input:checked+.toggle__slider::before {
    transform: translateX(22px);
    background: white;
}

/* ============================================
   Modal
   ============================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: var(--z-modal-backdrop);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    animation: fadeIn 0.2s ease;
}

.modal-backdrop.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.modal__title {
    font-size: var(--fs-lg);
    font-weight: 700;
}

.modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal__close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.modal__body {
    padding: var(--space-xl);
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-light);
}

/* ============================================
   Badges & Tags
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge--primary {
    background: rgba(5, 150, 105, 0.15);
    color: var(--primary-light);
}

.badge--accent {
    background: rgba(0, 210, 211, 0.15);
    color: var(--accent);
}

.badge--success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.badge--warning {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
}

.badge--danger {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

.badge--info {
    background: rgba(116, 185, 255, 0.15);
    color: var(--info);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + var(--space-md));
    right: var(--space-xl);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 320px;
    max-width: 420px;
    animation: fadeInRight 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
}

.toast--success {
    border-left: 4px solid var(--success);
}

.toast--error {
    border-left: 4px solid var(--danger);
}

.toast--warning {
    border-left: 4px solid var(--warning);
}

.toast--info {
    border-left: 4px solid var(--info);
}

.toast__icon {
    font-size: var(--fs-xl);
    flex-shrink: 0;
}

.toast__content {
    flex: 1;
}

.toast__title {
    font-weight: 600;
    font-size: var(--fs-sm);
}

.toast__message {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    margin-top: 2px;
}

.toast__close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    font-size: var(--fs-lg);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ============================================
   Loading Skeleton
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton--text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton--title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton--image {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
}

.skeleton--avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton--btn {
    height: 44px;
    width: 120px;
    border-radius: var(--radius-md);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl) 0;
}

.pagination__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.pagination__btn:hover,
.pagination__btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================
   Tabs
   ============================================ */
.tabs {
    display: flex;
    gap: var(--space-xs);
    border-bottom: 2px solid var(--border-light);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
}

.tab {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   Dropdown
   ============================================ */
.dropdown {
    position: relative;
}

.dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    padding: var(--space-sm);
}

.dropdown.open .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px var(--space-md);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown__item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown__divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-sm) 0;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.empty-state__text {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto var(--space-xl);
}

/* ============================================
   Data Table
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

.data-table tbody td {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

/* ============================================
   Search Bar
   ============================================ */
.search-bar {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-bar__icon {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--fs-lg);
    pointer-events: none;
}

.search-bar__input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--fs-base);
    transition: all var(--transition-fast);
}

.search-bar__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.search-bar__clear {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--fs-sm);
}

.search-bar__input:not(:placeholder-shown)~.search-bar__clear {
    display: flex;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer__brand-desc {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    margin-top: var(--space-md);
    line-height: 1.8;
}

.footer__heading {
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.footer__link {
    display: block;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--accent);
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer__bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.footer__payments {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.footer__payment-icon {
    padding: 4px 10px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   AI Chatbot Widget
   ============================================ */
.chatbot-toggle {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 60px;
    height: 60px;
    background: var(--hero-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    z-index: var(--z-modal);
    cursor: pointer;
    transition: all var(--transition-base);
    animation: float 3s ease-in-out infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(5, 150, 105, 0.6);
}

.chatbot-window {
    position: fixed;
    bottom: calc(var(--space-xl) + 70px);
    right: var(--space-xl);
    width: 380px;
    height: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.open {
    display: flex;
    animation: scaleIn 0.3s ease;
}

.chatbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: var(--primary-gradient);
    color: white;
}

.chatbot__header-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chatbot__avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
}

.chatbot__status {
    font-size: var(--fs-xs);
    opacity: 0.8;
}

.chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.chatbot__message {
    max-width: 85%;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.chatbot__message--bot {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chatbot__message--user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot__input-area {
    display: flex;
    padding: var(--space-md);
    border-top: 1px solid var(--border-light);
    gap: var(--space-sm);
}

.chatbot__input {
    flex: 1;
    padding: 10px var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--fs-sm);
}

.chatbot__send {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chatbot__send:hover {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .chatbot-window {
        right: var(--space-md);
        left: var(--space-md);
        width: auto;
        bottom: calc(var(--space-xl) + 70px);
    }
}

/* ============================================
   Stat Cards (Admin)
   ============================================ */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(30%, -30%);
}

.stat-card:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

.stat-card__icon--purple {
    background: rgba(5, 150, 105, 0.15);
    color: var(--primary-light);
}

.stat-card__icon--cyan {
    background: rgba(0, 210, 211, 0.15);
    color: var(--accent);
}

.stat-card__icon--green {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.stat-card__icon--orange {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
}

.stat-card__value {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.stat-card__label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.stat-card__change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-top: var(--space-sm);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-card__change--up {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.stat-card__change--down {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}