/* Heptagon Prime Safaris — Sci-Fi HUD Dashboard Theme */

/* Import theme system */
@import url('themes.css');

/* ===== THEME OVERRIDES FOR DASHBOARD ===== */
/* All colors now use theme variables from themes.css */

/* ===== ANIMATIONS ===== */
@keyframes gradientShift {
    0% { background-position: 0% 100%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 100%; }
}

/* Dark/Sci-Fi theme animated gradient background */
[data-theme="dark"] html,
[data-theme="dark"] body {
    background: var(--body-bg) !important;
    background-size: 300% 300% !important;
    animation: gradientShift 12s ease infinite;
}

/* Animated gradient for all other themes */
[data-theme="light"] html,
[data-theme="light"] body,
[data-theme="corporate-light"] html,
[data-theme="corporate-light"] body,
[data-theme="corporate-dark"] html,
[data-theme="corporate-dark"] body {
    background: var(--body-bg) !important;
    background-size: 300% 300% !important;
    animation: gradientShift 12s ease infinite;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100vh;
    background: var(--html-bg) !important;
    background-attachment: fixed;
    background-position: center;
}

body {
    font-family: var(--font-family);
    background: var(--body-bg) !important;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: visible;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-attachment: fixed;
}

/* Desktop-specific fixes */
@media (min-width: 769px) {
    html, body {
        overflow-x: visible;
        max-width: 100%;
    }
    
    .dashboard-layout {
        overflow-x: visible;
        width: 100%;
        max-width: 100vw;
    }
    
    .dashboard-main {
        max-width: 100%;
        overflow-x: visible;
    }
}

/* Scan-line overlay */
body::after {
    display: none;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-glow); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-glow-strong); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-family: inherit;
    transform-origin: center bottom;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent), var(--accent-secondary));
    background-size: 200% 100%;
    color: var(--text-on-accent);
    border: 2px solid var(--accent-secondary);
    box-shadow: 0 0 20px var(--accent-glow);
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow-strong);
    transform: translateY(-1px);
    animation: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-hover);
    color: var(--accent);
    border-color: var(--accent);
}

/* ===== AUTH PAGE ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 50%, var(--ambient-glow-1, rgba(255, 184, 0, 0.05)) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, var(--ambient-glow-2, rgba(255, 184, 0, 0.03)) 0%, transparent 40%);
    pointer-events: none;
}

.auth-container {
    display: flex;
    max-width: 900px;
    width: 100%;
    background: var(--surface-card);
    border: 1px solid var(--border-strong);
    border-radius: 0;
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow), 0 0 30px var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.auth-branding {
    flex: 1;
    background:
        linear-gradient(135deg, var(--auth-accent-dim, rgba(255, 184, 0, 0.15)), var(--overlay-color, rgba(0, 0, 0, 0.85))),
        url('../images/hero/kenya-safari.jpg') center/cover;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-white);
    position: relative;
}

.auth-branding::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--auth-accent-dim, rgba(255, 184, 0, 0.08)), transparent);
    pointer-events: none;
}

.auth-branding .logo-name {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--shadow-glow);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.auth-branding .logo-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

.auth-branding h2 {
    margin-top: 2rem;
    font-size: 1.6rem;
    text-shadow: 0 0 10px var(--shadow);
}

.auth-branding p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.auth-forms {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 15px var(--shadow-glow);
}

.auth-form .btn {
    width: 100%;
    padding: 14px;
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

.auth-error {
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.3);
    color: var(--danger);
    padding: 0.75rem 1rem;
    border-radius: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.auth-error.visible {
    display: block;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout {
    display: flex;
    flex-direction: row;
    height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: transparent;
}

/* Remove duplicate background layer - html handles it */
.dashboard-layout::before,
.dashboard-layout::after {
    display: none;
}

/* ===== SIDEBAR ===== */
.dashboard-sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    box-shadow: inset 0 1px 0 var(--accent-glow), 0 0 20px var(--shadow-glow);
    color: var(--text-primary);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    flex-shrink: 0;
    width: 240px;
    box-sizing: border-box;
}

.sidebar-brand {
    padding: 1rem;
    margin: 0.75rem;
    border-bottom: none;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 20px var(--accent-glow);
}

.sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 6px var(--accent-glow-strong));
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-name {
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow), 0 0 30px var(--shadow-glow);
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-brand-tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.3;
    margin-top: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

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

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    position: relative;
    font-size: 0.9rem;
    background: transparent;
}

.sidebar-nav .nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--border);
    transform: translateX(4px);
}

.sidebar-nav .nav-item.active {
    color: var(--accent);
    background: var(--bg-hover);
    border-color: var(--accent-glow);
    text-shadow: 0 0 10px var(--accent-glow);
    box-shadow: 0 0 15px var(--accent-glow), inset 0 0 20px rgba(255, 184, 0, 0.05);
}

.sidebar-nav .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--shadow-glow);
}

.sidebar-nav .nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

.sidebar-nav .nav-label {
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.3s ease;
    max-width: 160px;
    opacity: 1;
}

.sidebar-nav .badge {
    position: absolute;
    right: 0.75rem;
    background: var(--accent);
    color: var(--text-on-accent);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    box-shadow: 0 0 8px var(--accent-glow);
    font-family: 'Share Tech Mono', monospace;
}

.sidebar-footer {
    padding: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.sidebar-footer::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin-bottom: 1rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 0.9rem;
    background: transparent;
}

.logout-btn:hover {
    color: var(--danger);
    background: var(--danger-bg);
    border-color: var(--danger-glow, rgba(220, 38, 38, 0.3));
    transform: translateX(4px);
}

.logout-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===== ICON-ONLY SIDEBAR ===== */
.dashboard-sidebar.icon-only {
    width: var(--sidebar-collapsed);
}

.dashboard-sidebar.icon-only .nav-label {
    max-width: 0;
    opacity: 0;
    width: 0;
}

.dashboard-sidebar.icon-only .sidebar-nav .nav-item {
    justify-content: center;
    padding: 0.7rem;
}

.dashboard-sidebar.icon-only .sidebar-brand-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
}

.dashboard-sidebar.icon-only .sidebar-brand {
    display: flex;
    justify-content: center;
    padding: 0.75rem;
    margin: 0.5rem;
}

.dashboard-sidebar.icon-only .logout-btn {
    justify-content: center;
    padding: 0.7rem;
}

.dashboard-sidebar.icon-only .logout-btn .nav-label {
    max-width: 0;
    opacity: 0;
    width: 0;
}

.dashboard-sidebar.icon-only .sidebar-nav .badge {
    right: 0.4rem;
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
}

/* ===== MOBILE SIDEBAR TOGGLE ===== */
.mobile-sidebar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 150;
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 0;
}

.mobile-sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--accent);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

/* ===== MAIN CONTENT ===== */
.dashboard-main {
    padding: 2rem;
    color: var(--text-primary);
    overflow-y: auto;
    overflow-x: visible;
    height: 100vh;
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    flex: 1;
}

/* ===== TOP BAR ===== */
.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-topbar .search-bar {
    flex: 1;
    min-width: 180px;
    max-width: 400px;
    order: 2;
}

.dashboard-topbar .search-bar input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-glow);
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-topbar .search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--shadow-glow), 0 0 15px var(--shadow-glow);
    background: var(--bg-input);
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.75rem;
}

.dashboard-topbar .search-bar {
    flex: 1;
    min-width: 180px;
    max-width: 400px;
    order: 2;
}

.topbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 1;
}

.topbar-controls > div {
    display: inline-block;
}

.user-profile {
    order: 3;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-tier {
    font-size: 0.75rem;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 0 12px var(--shadow-glow);
    border: 3px solid var(--accent-glow);
}

/* ===== WELCOME SECTION ===== */
.dashboard-welcome {
    margin-bottom: 2rem;
}

.dashboard-welcome h1 {
    font-family: var(--font-family-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 300;
}

.dashboard-welcome h1 span {
    color: var(--accent);
    font-weight: 600;
    text-shadow: 0 0 15px var(--accent-glow);
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== SECTION ===== */
.dashboard-section {
    margin-bottom: 2rem;
    overflow: visible;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.view-all {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.view-all:hover {
    color: var(--accent-light);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ===== GLASS CARD BASE ===== */
.glass-card {
    background: transparent !important;
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    box-shadow: 0 0 20px var(--shadow-glow), inset 0 1px 0 var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.destination-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.destination-card {
    background: transparent !important;
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.destination-card .destination-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.destination-card .destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85) contrast(1.1);
}

.destination-card:hover .destination-image img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

.destination-card .favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.destination-card .favorite-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: fill 0.3s ease;
}

.destination-card .favorite-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.destination-card .favorite-btn.active {
    background: var(--accent-glow);
}

.destination-card .favorite-btn.active svg {
    fill: var(--accent);
}

.destination-card .destination-content {
    padding: 1rem;
}

.destination-card .destination-region {
    color: var(--accent);
    font-size: 0.7rem;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.destination-card .destination-name {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.destination-card .destination-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destination-card .destination-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.destination-card .dest-tag {
    background: var(--border);
    border: 1px solid var(--border-glow);
    color: var(--accent);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    font-family: 'Share Tech Mono', monospace;
}

.destination-card .destination-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.destination-card .dest-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gold);
}

.destination-card .dest-rating svg {
    width: 14px;
    height: 14px;
    fill: var(--gold);
}

.destination-card .dest-price {
    color: var(--accent);
    font-weight: 700;
}

.destination-card .dest-besttime {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.destination-card .btn {
    width: 100%;
    margin-top: 0.5rem;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 16px; height: 16px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

.destination-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 16px; height: 16px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

.destination-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--shadow-glow);
}

.destination-card:hover img {
    transform: scale(1.05);
}

.destination-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.85) contrast(1.1);
}

.destination-card .card-body {
    padding: 1rem;
}

.destination-card h4 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.destination-card .price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 0 8px var(--accent-glow);
}

/* ===== DESTINATION LIST (API-ready layout) ===== */
.destination-cards.list-layout {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.destination-cards.list-layout::-webkit-scrollbar {
    width: 4px;
}

.destination-cards.list-layout::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.destination-cards.list-layout::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.destination-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    overflow: hidden;
    position: relative;
    padding: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.destination-list-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

.destination-list-item::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

.destination-list-item:hover {
    border-color: var(--border-glow);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px var(--shadow-glow);
    transform: translateX(4px);
}

.destination-list-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

.destination-list-item img {
    width: 100px;
    height: 65px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85) contrast(1.1);
}

.destination-list-body {
    flex: 1;
    padding: 0.5rem 0;
    min-width: 0;
}

.destination-list-body h4 {
    margin: 0 0 0.15rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-family-heading);
}

.destination-list-body .dest-region {
    color: var(--accent);
    font-size: 0.7rem;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.destination-list-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    padding-right: 0.75rem;
}

.destination-list-meta .dest-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 8px var(--accent-glow);
    white-space: nowrap;
}

.destination-list-meta .dest-duration {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-family: 'Share Tech Mono', monospace;
    white-space: nowrap;
}

.destination-list-meta .dest-rating {
    color: var(--gold);
    font-size: 0.75rem;
    font-family: 'Share Tech Mono', monospace;
}

.destination-list-tags {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.destination-list-tags .dest-tag {
    background: var(--border);
    border: 1px solid var(--border-glow);
    color: var(--accent);
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .destination-cards.list-layout {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-flow: row;
        gap: 0.5rem;
        max-height: 230px;
        overflow-y: auto;
    }

    .destination-list-item img {
        width: 100%;
        height: 110px;
    }

    .destination-list-item {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .destination-list-body {
        padding: 0.4rem 0.5rem;
    }

    .destination-list-body h4 {
        font-size: 0.75rem;
    }

    .destination-list-body .dest-region {
        font-size: 0.6rem;
    }

    .destination-list-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        padding: 0 0.5rem 0.4rem;
    }

    .destination-list-meta .dest-price {
        font-size: 0.7rem;
    }

    .destination-list-meta .dest-duration,
    .destination-list-meta .dest-rating {
        font-size: 0.6rem;
    }

    .destination-list-tags {
        padding: 0 0.5rem 0.3rem;
    }

    .bookings-list.list-layout {
        max-height: 320px;
        overflow-y: auto;
    }

    .tab-content.active {
        max-height: none;
        overflow: visible;
    }
}

/* ===== CALENDAR ===== */
.dashboard-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calendar-nav button {
    background: var(--bg-input);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-nav button:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 8px var(--shadow-glow);
}

.calendar-nav span {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 150px;
    text-align: center;
    font-size: 0.9rem;
}

.dashboard-calendar {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 0;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-grid .day-header {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid .day {
    padding: 0.45rem;
    border-radius: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: default;
    transition: all 0.2s;
}

.calendar-grid .day.today {
    background: var(--bg-hover);
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 8px var(--accent-glow);
}

.calendar-grid .day.has-booking {
    background: var(--accent);
    color: var(--text-on-accent);
    font-weight: 600;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
}

.calendar-grid .day.other-month {
    color: rgba(255, 255, 255, 0.15);
}

/* ===== BOOKINGS LIST ===== */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bookings-list.list-layout {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.bookings-list.list-layout::-webkit-scrollbar {
    width: 4px;
}

.bookings-list.list-layout::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.bookings-list.list-layout::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.booking-list-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
    border-radius: 0;
    padding: 0.45rem 0.6rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.booking-list-item:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--shadow-glow);
}

.booking-list-status {
    font-size: 0.55rem;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.4rem;
    border: 1px solid;
    flex-shrink: 0;
    white-space: nowrap;
}

.booking-list-status.upcoming {
    color: var(--info);
    border-color: rgba(79, 195, 247, 0.3);
    background: rgba(79, 195, 247, 0.08);
}

.booking-list-status.completed {
    color: var(--success);
    border-color: rgba(102, 187, 106, 0.3);
    background: rgba(102, 187, 106, 0.08);
}

.booking-list-status.cancelled {
    color: var(--danger);
    border-color: rgba(239, 83, 80, 0.3);
    background: rgba(239, 83, 80, 0.08);
}

.booking-list-status.cancellation_pending {
    color: var(--warning);
    border-color: rgba(255, 152, 0, 0.3);
    background: rgba(255, 152, 0, 0.08);
}

.booking-list-body {
    flex: 1;
    min-width: 0;
}

.booking-list-body h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-family: var(--font-family-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-list-dates {
    color: var(--text-secondary);
    font-size: 0.6rem;
    font-family: 'Share Tech Mono', monospace;
}

.booking-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}

.booking-list-guests {
    color: var(--text-muted);
    font-size: 0.55rem;
    font-family: 'Share Tech Mono', monospace;
}

.booking-list-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.7rem;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 8px var(--accent-glow);
    white-space: nowrap;
}

.booking-row {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
    border-radius: 0;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.booking-row:hover {
    border-color: var(--border-glow);
}

/* Booking Detail Page */
.booking-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-glow);
    flex-wrap: wrap;
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

.booking-detail-title {
    flex: 1;
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
}

.booking-status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.booking-status-badge.upcoming {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
    border-color: #00c853;
}

.booking-status-badge.completed {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border-color: #2196f3;
}

.booking-status-badge.cancelled {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border-color: #f44336;
}

.booking-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.booking-info-section h2,
.booking-guests-section h2,
.booking-actions-section h2,
.booking-timeline-section h2 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-glow);
}

.booking-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    padding: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
}

.detail-value.price {
    color: var(--accent);
    font-weight: 700;
}

.booking-timeline {
    padding: 1rem 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: var(--border-glow);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timeline-label {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.booking-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.booking-row .booking-info h4 {
    margin: 0 0 0.2rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.booking-row .booking-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.booking-row .booking-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 8px var(--accent-glow);
}

/* ===== DASHBOARD TABS ===== */
.dashboard-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 0.7rem 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    font-size: 0.9rem;
}

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

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 370px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.tab-content.active::-webkit-scrollbar {
    width: 4px;
}

.tab-content.active::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.tab-content.active::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

/* Keep grid for legacy listing-card usage */
.tab-content.active:has(.listing-card) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-height: none;
    overflow-y: visible;
}

.tab-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.tab-list-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

.tab-list-item::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

.tab-list-item:hover {
    border-color: var(--border-glow);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px var(--shadow-glow);
    transform: translateX(4px);
}

.tab-list-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

.tab-list-item img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85) contrast(1.1);
}

.tab-list-body {
    flex: 1;
    padding: 0.5rem 0;
    min-width: 0;
}

.tab-list-body h4 {
    margin: 0 0 0.1rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: var(--font-family-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-list-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-list-badge {
    background: var(--border);
    border: 1px solid var(--border-glow);
    color: var(--accent);
    font-size: 0.55rem;
    padding: 0.1rem 0.4rem;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-list-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-right: 0.75rem;
}

.tab-list-meta .tab-list-duration {
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-family: 'Share Tech Mono', monospace;
    white-space: nowrap;
}

.tab-list-meta .tab-list-location {
    color: var(--accent);
    font-size: 0.65rem;
    font-family: 'Share Tech Mono', monospace;
    white-space: nowrap;
}

.tab-list-view-all {
    text-align: center;
    padding: 0.6rem 0 0.2rem;
    flex-shrink: 0;
}

.tab-list-view-all a {
    color: var(--accent);
    font-size: 0.75rem;
    font-family: 'Share Tech Mono', monospace;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: text-shadow 0.3s ease;
}

.tab-list-view-all a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ===== DISCOUNT BANNER ===== */
.discount-banner {
    clip-path: polygon(24px 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-secondary));
    border: 1px solid var(--border-glow);
    border-radius: 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    margin-top: 1rem;
    box-shadow: 0 4px 25px var(--shadow-glow);
}

.banner-content h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin: 0 0 0.25rem;
    text-shadow: 0 0 15px var(--accent-glow);
}

.banner-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.banner-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    color: var(--text-on-accent) !important;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.banner-cta:hover {
    box-shadow: 0 4px 25px var(--accent-glow-strong) !important;
}

.banner-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

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

/* ===== TRIPS PAGE ===== */
.trips-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.trips-filters .filter-btn {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.trips-filters .filter-btn.active,
.trips-filters .filter-btn:hover {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--shadow-glow);
}

.trips-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.trips-list::-webkit-scrollbar {
    width: 4px;
}

.trips-list::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.trips-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.trip-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
    border-radius: 0;
    padding: 0.6rem 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.trip-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px var(--shadow-glow);
    transform: translateX(4px);
}

.trip-status {
    font-size: 0.55rem;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border: 1px solid;
    flex-shrink: 0;
    white-space: nowrap;
}

.trip-status.upcoming {
    color: var(--info);
    border-color: rgba(79, 195, 247, 0.3);
    background: rgba(79, 195, 247, 0.08);
}

.trip-status.completed {
    color: var(--success);
    border-color: rgba(102, 187, 106, 0.3);
    background: rgba(102, 187, 106, 0.08);
}

.trip-status.cancelled {
    color: var(--danger);
    border-color: rgba(239, 83, 80, 0.3);
    background: rgba(239, 83, 80, 0.08);
}

.trip-status.cancellation_pending {
    color: var(--warning);
    border-color: rgba(255, 152, 0, 0.3);
    background: rgba(255, 152, 0, 0.08);
}

.trip-details {
    flex: 1;
    min-width: 0;
}

.trip-details h3 {
    margin: 0 0 0.15rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: var(--font-family-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trip-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-family: 'Share Tech Mono', monospace;
}

.trip-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.trip-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    font-family: 'Share Tech Mono', monospace;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--shadow-glow);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--danger);
}

.error-state .btn {
    margin-top: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state a {
    color: var(--accent);
}
    text-shadow: 0 0 8px var(--accent-glow);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .trips-list {
        max-height: 400px;
    }

    .trip-card {
        padding: 0.5rem 0.6rem;
        gap: 0.5rem;
    }

    .trip-details h3 {
        font-size: 0.75rem;
    }

    .trip-details p {
        font-size: 0.65rem;
    }

    .trip-status {
        font-size: 0.5rem;
        padding: 0.1rem 0.35rem;
    }

    .trip-price {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .trips-list {
        max-height: 350px;
    }

    .trip-meta {
        display: none;
    }

    .trip-details p {
        display: none;
    }
}

.trip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    border-radius: 0;
    position: relative;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    gap: 1rem;
    flex-wrap: wrap;
    transition: all 0.2s ease;
}

.trip-card:hover {
    border-color: var(--border-glow);
}

.trip-card .trip-details h3 {
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.trip-card .trip-details p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.trip-card .trip-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.trip-status {
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
    padding: 0.3rem 0.8rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.trip-status.upcoming {
    background: var(--bg-hover);
    color: var(--accent);
}

.trip-status.completed {
    background: var(--success-bg);
    color: var(--success);
}

.trip-status.cancelled {
    background: var(--danger-bg);
    color: var(--danger);
}

.trip-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
    text-shadow: 0 0 8px var(--accent-glow);
}

/* ===== FAVORITES PAGE ===== */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.favorite-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    clip-path: polygon(0 14px, 14px 0, 100% 0, 100% 100%, 0 100%);
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.favorite-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--shadow-glow);
}

.favorite-card img {
    filter: brightness(0.85) contrast(1.1);
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.favorite-card .fav-body {
    padding: 1rem;
}

.favorite-card .fav-body h4 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.favorite-card .fav-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.favorite-card .fav-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--shadow-glow);
    color: var(--danger);
    width: 30px;
    height: 30px;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.favorite-card .fav-remove:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
}

/* ===== MESSAGES PAGE ===== */
.messages-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.25rem;
    min-height: 400px;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 0;
    padding: 0.9rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.message-preview:hover {
    background: var(--bg-hover);
}

.message-preview.active {
    border-left-color: var(--accent);
    background: var(--bg-hover);
    box-shadow: 0 0 10px var(--shadow-glow);
}

.message-preview.unread {
    border-left-color: var(--accent);
}

.message-preview.unread h4 {
    color: var(--accent);
}

.message-preview h4 {
    margin: 0 0 0.2rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.message-preview p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-preview .msg-date {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 0.2rem;
    opacity: 0.7;
}

.message-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 0;
    padding: 1.75rem;
}

.message-detail .message-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 0;
}

.message-detail h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.message-detail .msg-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.message-detail .msg-body {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ===== TRANSACTIONS PAGE ===== */
.transactions-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    border-radius: 0;
    position: relative;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.summary-card:hover {
    border-color: var(--border-glow);
}

.summary-card h4 {
    margin: 0 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
    text-shadow: 0 0 10px var(--accent-glow);
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.transactions-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.9rem 1rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.transactions-table td {
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.transactions-table .amount {
    color: var(--accent);
    font-weight: 700;
}

.status-badge {
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(255, 170, 0, 0.12);
    color: var(--warning);
}

.status-badge.completed {
    background: rgba(0, 255, 136, 0.12);
    color: var(--success);
}

/* ===== PROFILE PAGE ===== */
.profile-form {
    max-width: 700px;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.profile-avatar-large {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    box-shadow: 0 0 20px var(--shadow-glow);
    border: 3px solid var(--accent-glow);
}

.avatar-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.avatar-tier {
    color: var(--accent);
    font-size: 0.85rem;
    text-shadow: 0 0 8px var(--accent-glow);
}

.profile-form h3 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.profile-form .form-group {
    margin-bottom: 1rem;
}

.profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 12px var(--shadow-glow);
}

.profile-form select {
    cursor: pointer;
}

.profile-form select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.profile-form textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-inline input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.profile-form .btn {
    margin-top: 1rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state a {
    color: var(--accent);
    font-weight: 600;
}

/* ===== LISTING PAGES ===== */
.listing-hero {
    margin-bottom: 2rem;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.listing-hero h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-family-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.listing-hero p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== ARTICLE VIEW PAGE ===== */
.article-hero-image {
    width: 100%;
    max-height: 500px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 1.5rem;
    display: block;
    background: linear-gradient(135deg, var(--border), var(--ambient-glow-1));
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Tablet */
@media (max-width: 1024px) {
    .article-hero-image {
        max-height: 400px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .article-hero-image {
        max-height: 250px;
        aspect-ratio: 4 / 3;
    }
    
    .article-content {
        max-width: 100%;
    }
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.article-share {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.article-share button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.article-share button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.article-share button svg {
    width: 18px;
    height: 18px;
}

.author-bio {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-bio-content {
    flex: 1;
}

.author-bio-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.author-bio-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-bio-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-likes-dislikes {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.post-likes-dislikes button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-likes-dislikes button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.post-likes-dislikes button.active {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.post-likes-dislikes button svg {
    width: 20px;
    height: 20px;
}

.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.listing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.listing-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: linear-gradient(135deg, var(--border), var(--ambient-glow-1));
}

.listing-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px var(--shadow-glow), inset 0 0 20px var(--ambient-glow-2);
}

.listing-card:hover img {
    transform: scale(1.05);
}

.listing-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: linear-gradient(135deg, var(--border), var(--ambient-glow-1));
}

.listing-card:hover img {
    transform: scale(1.05);
}

.listing-card img.loaded {
    filter: brightness(1) contrast(1.05);
}

.listing-card img.error {
    opacity: 0.5;
    filter: grayscale(1);
}

.listing-card:hover img {
    filter: brightness(1) contrast(1.05);
}

.listing-card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.listing-badge {
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
    display: inline-block;
    background: var(--border);
    color: var(--accent);
    padding: 0.2rem 0.7rem;
    border-radius: 0;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.65rem;
    width: fit-content;
    border: 1px solid var(--shadow-glow);
}

.listing-card-body h3 {
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.listing-card .favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.listing-card .favorite-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: fill 0.3s ease;
}

.listing-card .favorite-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.listing-card .favorite-btn.active {
    background: var(--accent-glow);
}

.listing-card .favorite-btn.active svg {
    fill: var(--accent);
}

.listing-card-body p {
    margin: 0 0 0.9rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.listing-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.listing-rating-link:hover {
    color: var(--accent);
}

.listing-rating-link:hover .listing-rating {
    text-decoration: underline;
}

.listing-rating {
    color: var(--accent);
    font-weight: 600;
}

.listing-reviews {
    color: var(--text-muted);
    font-size: 0.8rem;
}

#reviews-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-glow) var(--bg-primary);
}

#reviews-list::-webkit-scrollbar {
    width: 4px;
}

#reviews-list::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

#reviews-list::-webkit-scrollbar-thumb {
    background: var(--accent-glow);
    border-radius: 2px;
}

#rating-stars span {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

#rating-stars span:hover,
#rating-stars span:hover ~ span {
    color: var(--accent) !important;
}

.listing-price {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.destination-card .price {
    display: none;
}

.listing-card .btn {
    width: 100%;
    text-align: center;
}

.listing-view-all {
    text-align: center;
    margin-top: 1.5rem;
}

.listing-view-all a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}

.listing-view-all a:hover {
    color: var(--accent-light);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ===== HEPTAGON COLLECTIONS GRID ===== */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(380px, auto);
    gap: 1.5rem;
    padding: 0 0 2rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
    overflow: visible;
    align-items: start;
    justify-items: stretch;
}

/* ===== PAGINATION ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px var(--shadow-glow);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-on-accent);
    font-weight: bold;
}

.pagination-btn.prev,
.pagination-btn.next {
    font-size: 1.2rem;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 1rem;
}

/* ===== HEPTAGON COLLECTIONS STICKY HEADER ===== */
.collections-sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin: -2rem -2rem 1rem -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    will-change: transform;
}

/* Collapse header on scroll */
.dashboard-main.scrolled-down .collections-sticky-header {
    transform: translateY(-40px);
    padding-bottom: 0.25rem;
}

.dashboard-main.scrolled-down .compact-hero {
    padding: 0;
    margin-bottom: 0.25rem;
}

.dashboard-main.scrolled-down .compact-hero h1 {
    font-size: 1rem;
}

.compact-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    min-height: 50px;
}

.compact-search {
    flex: 1;
    max-width: 300px;
}

.compact-search input {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent) !important;
    position: relative;
    transition: all 0.3s;
}

.cart-link-btn:hover {
    background: var(--bg-hover) !important;
    color: var(--accent-dark) !important;
    box-shadow: 0 0 15px var(--shadow-glow);
}

.cart-link-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--accent) !important;
}

.cart-link-btn .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: var(--text-on-accent);
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.compact-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compact-user .user-info {
    display: none;
}

.compact-user .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.compact-hero {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.compact-hero h1 {
    font-size: 1.2rem;
    margin: 0;
}

.compact-hero p {
    display: none;
}

.sticky-toolbar {
    padding: 0.5rem 0;
    margin: 0;
    border: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    row-gap: 0.3rem;
}

.sticky-toolbar .filter-chips {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 200px;
}

.sticky-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.sticky-toolbar .price-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.sticky-toolbar .price-filter input {
    width: 70px;
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
}

.sticky-toolbar .sort-select {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    min-width: 110px;
}

@media (max-width: 768px) {
    .sticky-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .sticky-toolbar .filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.3rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .sticky-toolbar .filter-chips::-webkit-scrollbar {
        display: none;
    }
    
    .sticky-toolbar .toolbar-right {
        justify-content: space-between;
        width: 100%;
        margin-left: 0;
    }
    
    .sticky-toolbar .price-filter {
        flex: 1;
        justify-content: flex-start;
    }
    
    .sticky-toolbar .sort-select {
        flex: 1;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .sticky-toolbar .price-filter span {
        display: none;
    }
    
    .sticky-toolbar .price-filter {
        gap: 0.25rem;
    }
    
    .sticky-toolbar .price-filter input {
        width: 55px;
    }
}

.collections-grid + .loading-skeleton,
.collections-grid + .no-results {
    margin-top: 1rem;
}

.loading-skeleton {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.loading-skeleton.show {
    display: grid;
}

@media (max-width: 768px) {
    .loading-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skeleton-card {
        height: 320px;
    }
    
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(320px, auto);
        gap: 1rem;
    }
    
    .pagination-container {
        padding: 1.5rem 0.5rem;
    }
    
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0 0 0;
    }
    
    .collections-sticky-header {
        margin: -1.5rem -1rem 1rem -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .compact-search {
        max-width: 150px;
    }
    
    .listing-hero h1 {
        font-size: 1.5rem;
    }
    
    .filter-chips {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    
    .filter-chip {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .toolbar-right {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .price-filter input {
        width: 60px;
        font-size: 0.8rem;
    }
    
    .sort-select {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
}

@media (max-width: 480px) {
    .loading-skeleton {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .skeleton-card {
        height: 280px;
    }
    
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(280px, auto);
        gap: 0.75rem;
    }
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    height: 380px;
    animation: skeleton-pulse 1.5s infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.no-results {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-results.show {
    display: block;
}

.no-results p {
    margin-bottom: 1rem;
}

.collections-grid > .product-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
}

/* Product Cards - explicit sizing */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--shadow-glow);
    transform: translateY(-4px);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-input);
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.product-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-rating .stars {
    color: var(--accent);
    font-size: 0.75rem;
}

.product-rating .rating-value {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.product-rating .reviews {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.current-price {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
}

.original-price {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    box-shadow: 0 0 15px var(--shadow-glow);
}

.add-to-cart-btn svg {
    width: 14px;
    height: 14px;
}

.view-3d-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.view-3d-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.view-3d-btn svg {
    width: 18px;
    height: 18px;
}

/* Toolbar */
.collections-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-chip:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--shadow-glow);
}

.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-on-accent);
    font-weight: 600;
    box-shadow: 0 0 15px var(--shadow-glow);
}

/* Price Filter */
.price-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
}

.price-filter input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.4rem 0.6rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    width: 80px;
    transition: all 0.3s ease;
}

.price-filter input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px var(--shadow-glow);
}

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

/* Sort Select */
.sort-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23ffb800'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px var(--shadow-glow);
}

.sort-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ===== PAGE TITLE ===== */
.page-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-family: var(--font-family-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ===== SETTINGS PAGE ===== */
.settings-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.settings-content {
    overflow: visible;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 1rem;
}

.settings-nav-item {
    padding: 0.8rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.settings-nav-item:hover,
.settings-nav-item.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--ambient-glow-1);
    box-shadow: 0 0 15px var(--shadow-glow);
}

.settings-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.settings-section.active {
    display: block;
}

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

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: visible;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.settings-card h2 {
    font-family: var(--font-family-heading);
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

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

.settings-card .form-group {
    margin-bottom: 1rem;
    overflow: visible;
}

.settings-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.settings-card .form-group input,
.settings-card .form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.settings-card .form-group input:focus,
.settings-card .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 12px var(--shadow-glow);
}

textarea#review-text {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-glow) !important;
    color: var(--text-primary) !important;
}

select.payment-method-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-input) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: right 14px center !important;
    padding-right: 36px;
    padding-left: 14px;
    color: var(--text-primary) !important;
    cursor: pointer;
    border: 1px solid var(--border);
    min-height: 44px;
    width: 100%;
}

select.payment-method-select option {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    padding: 12px;
    font-size: 0.95rem;
    border: none;
}

select.payment-method-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

@media (max-width: 600px) {
    select.payment-method-select {
        font-size: 1rem;
        padding: 12px 40px 12px 14px;
    }
}

/* Custom Dropdown for Payment Methods */
.payment-select-wrapper {
    position: relative;
    width: 100%;
}

.payment-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.payment-select-trigger:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.payment-select-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.payment-select-wrapper.open .payment-select-arrow {
    transform: rotate(180deg);
}

.payment-select-dropdown {
    display: none;
    position: fixed;
    z-index: 10000;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

.payment-select-wrapper.open .payment-select-dropdown {
    display: block;
}

.payment-select-option {
    padding: 12px 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.payment-select-option:hover {
    background: var(--bg-input);
}

.payment-select-option.selected {
    background: var(--accent);
    color: var(--bg-primary);
}

@media (max-width: 600px) {
    .payment-select-trigger {
        font-size: 1rem;
        padding: 14px;
    }
}

.preference-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preference-info h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.preference-info p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 20px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px; width: 12px;
    left: 3px; bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
}

input:checked + .slider { 
    background-color: var(--shadow-glow); 
    border-color: var(--accent); 
}

input:checked + .slider:before { 
    transform: translateX(24px); 
    background-color: var(--accent); 
    box-shadow: 0 0 8px var(--accent-glow); 
}

.danger-zone {
    border-color: rgba(255, 68, 102, 0.3);
    background: rgba(255, 68, 102, 0.02);
}

.danger-zone h2 { 
    color: var(--danger); 
    border-color: rgba(255, 68, 102, 0.2); 
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    box-shadow: 0 0 20px var(--accent-glow);
}

.avatar-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
}

.avatar-tier {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .settings-layout { grid-template-columns: 1fr; }
    .settings-nav { flex-direction: row; overflow-x: auto; padding-bottom: 1rem; position: static; }
    .settings-nav-item { flex-shrink: 0; }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        overflow-x: hidden;
        width: 100%;
        height: auto;
        min-height: 100vh;
    }

    .dashboard-sidebar {
        background: linear-gradient(180deg, #09001a 0%, #1a0033 30%, #3a0050 60%, #1a0033 100%);
    }

    .dashboard-main {
        min-width: 0;
        width: 100%;
        overflow-x: hidden;
        padding: 1rem;
        padding-top: 3.5rem;
        padding-left: 3rem;
    }
    
    /* Mobile scroll progress positioning */
    .scroll-progress-bar {
        top: 45px;
        z-index: 140;
        height: 2px;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    /* Ensure sidebar toggle stays on top */
    .mobile-sidebar-toggle {
        z-index: 150;
    }

    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: var(--sidebar-width);
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 200;
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

/* Reviews Widget Styles */
.reviews-widget { padding: 1rem; }
.reviews-loading, .reviews-error, .reviews-empty { text-align: center; padding: 2rem; color: var(--text-muted); }
.reviews-summary { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-glow); }
.reviews-rating { display: flex; align-items: center; gap: 0.5rem; }
.rating-value { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.rating-stars { color: var(--accent); letter-spacing: 2px; }
.rating-count { color: var(--text-muted); font-size: 0.85rem; }
.reviews-list { margin-bottom: 1.5rem; }
.review-item { padding: 1rem; background: var(--bg-secondary); border: 1px solid var(--border-glow); margin-bottom: 0.75rem; }
.review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.review-user { font-weight: 600; color: var(--text-primary); }
.review-rating { color: var(--accent); }
.review-date { color: var(--text-muted); font-size: 0.75rem; margin-left: auto; }
.review-text { color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.5rem; }
.review-footer { display: flex; gap: 0.5rem; }
.helpful-btn { background: none; border: 1px solid var(--border-glow); padding: 0.25rem 0.5rem; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; transition: all 0.2s ease; }
.helpful-btn:hover { border-color: var(--accent); color: var(--accent); }
.review-form { margin-top: 1.5rem; padding: 1rem; background: var(--bg-secondary); border: 1px solid var(--border-glow); }
.review-form h4 { margin: 0 0 1rem 0; color: var(--text-primary); font-size: 1rem; }
.rating-selector, .review-text-container { margin-bottom: 1rem; }
.rating-selector label, .review-text-container label { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.25rem; }
.star-rating-input input { display: none; }
.star-rating-input label { font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: color 0.2s ease; }
.star-rating-input label:hover, .star-rating-input label:hover ~ label, .star-rating-input input:checked ~ label { color: var(--accent); }
.review-text-container textarea { width: 100%; padding: 0.75rem; background: var(--bg-input); border: 1px solid var(--border-glow); color: var(--text-primary); font-family: inherit; font-size: 0.9rem; resize: vertical; margin-bottom: 1rem; }
.review-text-container textarea:focus { outline: none; border-color: var(--accent); }

/* Booking Detail HUD Action Buttons */
.hud-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
    padding: 0.3rem 0;
    max-width: 360px;
}

.hud-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    background: transparent;
    border: 1px solid var(--border-glow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-action-btn:hover {
    background: var(--border);
    border-color: var(--accent);
}

.hud-action-btn svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px;
    max-height: 28px;
    fill: var(--accent);
    margin-bottom: 0.1rem;
}

.hud-action-btn span {
    font-size: 0.6rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1;
}

.hud-action-btn.hud-action-danger {
    border-color: var(--danger);
}

.hud-action-btn.hud-action-danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
}

.hud-action-btn.hud-action-danger svg {
    fill: var(--danger);
}

.hud-action-btn.hud-action-danger span {
    color: var(--danger);
}

.dashboard-sidebar .nav-label {
        max-width: 160px;
        opacity: 1;
    }

    .dashboard-sidebar .sidebar-brand-text {
        max-width: 160px;
        opacity: 1;
    }

    .dashboard-sidebar .nav-item {
        justify-content: flex-start;
        padding: 0.7rem 1.25rem;
    }

    .dashboard-sidebar .logout-btn {
        justify-content: flex-start;
        padding: 0.7rem 1.25rem;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 199;
    }

    .sidebar-overlay.visible {
        display: block;
    }

    .mobile-sidebar-toggle {
        display: flex;
    }

    .dashboard-grid-2col {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem;
        flex-wrap: wrap;
    }

    .dashboard-topbar .search-bar {
        flex: 1;
        min-width: 150px;
        order: 2;
    }

    .dashboard-topbar .search-bar input {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }

.topbar-controls {
        order: 1;
    }

    .topbar-controls > div {
        display: inline-block;
    }

    .messages-layout {
        grid-template-columns: 1fr;
    }

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

    .auth-container {
        flex-direction: column;
    }

    .auth-branding {
        padding: 2rem;
        min-height: 180px;
    }

    .auth-forms {
        padding: 2rem;
    }

    .trip-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .transactions-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 0.7rem;
    }

    .destination-cards {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .destination-list-item img {
        width: 90px;
        height: 60px;
    }

    .product-image-container {
        height: 200px;
    }

    .listing-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 320px;
        align-items: start;
    }

    .product-card {
        min-height: unset;
        max-height: unset;
    }

    .product-image-container {
        height: 140px;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 0.8rem;
    }

    .product-desc {
        font-size: 0.65rem;
        -webkit-line-clamp: 1;
    }

    .current-price {
        font-size: 0.95rem;
    }

    .add-to-cart-btn {
        padding: 0.5rem;
        font-size: 0.6rem;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
        gap: 0.75rem;
    }

    .product-card {
        min-height: unset;
        max-height: unset;
    }

    .product-image-container {
        height: 120px;
    }

    .product-name {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .product-desc {
        display: none;
    }

    .product-rating {
        margin-bottom: 0.25rem;
    }

    .current-price {
        font-size: 0.9rem;
    }

    .view-3d-btn {
        display: none;
    }

    .tab-content.active:has(.listing-card) {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .tab-content.active {
        max-height: 350px;
    }

    .tab-list-item img {
        width: 75px;
        height: 50px;
    }

    .favorites-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .dashboard-welcome h1 {
    font-family: var(--font-family-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
        font-size: 1.4rem;
    }

    .listing-hero h1 {
        font-size: 1.4rem;
    }

    .discount-banner {
    clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
        padding: 1.5rem;
    }

    .banner-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 3.5rem 0.75rem 0.75rem;
    }

    .dashboard-topbar {
        padding-left: 2.75rem;
    }

    .destination-cards.list-layout {
        max-height: 270px;
    }

    .destination-list-item img {
        width: 70px;
        height: 50px;
    }

    .destination-list-meta .dest-rating,
    .destination-list-tags {
        display: none;
    }

    .bookings-list.list-layout {
        max-height: 250px;
    }

    .booking-list-guests {
        display: none;
    }

    /* Heptagon Collections 480px */
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
        gap: 0.5rem;
    }

    .product-image-container {
        height: 100px;
    }

    .product-info {
        padding: 0.5rem;
    }

    .product-name {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }

    .product-desc {
        display: none;
    }

    .product-rating {
        font-size: 0.6rem;
        margin-bottom: 0.25rem;
    }

    .product-rating .stars {
        font-size: 0.6rem;
    }

    .current-price {
        font-size: 0.8rem;
    }

    .original-price {
        font-size: 0.65rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .add-to-cart-btn {
        padding: 0.35rem;
        font-size: 0.55rem;
    }

    .wishlist-btn {
        width: 24px;
        height: 24px;
    }

    .wishlist-btn svg {
        width: 14px;
        height: 14px;
    }

    .quick-view-btn {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }

    .sale-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.35rem;
    }

    .category-badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.35rem;
    }

    .pagination-container {
        padding: 1rem 0.25rem;
    }

    .pagination-btn {
        min-width: 28px;
        height: 28px;
        font-size: 0.7rem;
        padding: 0 0.4rem;
    }

    .pagination-btn.prev,
    .pagination-btn.next {
        font-size: 1rem;
    }

    .pagination-info {
        font-size: 0.65rem;
    }

    .collections-sticky-header {
        margin: -1.25rem -0.75rem 0.75rem -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .compact-topbar {
        gap: 0.5rem;
        padding: 0.35rem 0;
    }

    .compact-search {
        max-width: 100px;
    }

    .compact-search input {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .cart-link-btn {
        width: 28px;
        height: 28px;
    }

    .cart-link-btn svg {
        width: 14px;
        height: 14px;
    }

    .cart-link-btn .cart-count {
        min-width: 14px;
        height: 14px;
        font-size: 0.5rem;
    }

    .compact-user .user-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .listing-hero {
        padding: 0.35rem 0;
    }

    .listing-hero h1 {
        font-size: 1.2rem;
    }

    .collections-toolbar {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .filter-chips {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
        width: 100%;
    }
    
    .filter-chip {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .price-filter {
        font-size: 0.65rem;
        gap: 0.25rem;
    }
    
    .price-filter input {
        width: 50px;
        padding: 0.25rem;
        font-size: 0.7rem;
    }
    
    .sort-select {
        font-size: 0.7rem;
        padding: 0.25rem;
        padding-right: 1.5rem;
    }

    .booking-list-item {
        padding: 0.5rem 0.6rem;
        gap: 0.5rem;
    }

    .booking-list-body h4 {
        font-size: 0.7rem;
    }

    .booking-list-status {
        font-size: 0.55rem;
        padding: 0.1rem 0.35rem;
    }

    .destination-card img {
        height: 100px;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        align-items: start;
    }
    
    .product-image-container {
        min-height: 160px;
    }

    .listing-card img {
        height: 140px;
    }

    .tab-content.active:has(.listing-card) {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .tab-content.active {
        max-height: 340px;
    }

    .tab-list-item img {
        width: 65px;
        height: 45px;
    }

    .tab-list-meta {
        display: none;
    }

    .tab-list-badge {
        display: none;
    }

    .tab-list-body p {
        display: none;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .favorite-card img {
    filter: brightness(0.85) contrast(1.1);
        height: 120px;
    }

    .transactions-summary {
        grid-template-columns: 1fr;
    }

    .dashboard-tabs {
        gap: 0;
    }

    .tab-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* ===== BLOG STYLES ===== */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.category-tab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}

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

.category-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-on-accent);
}

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.blog-filters .category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.blog-filters .category-tab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-filters .category-tab:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--shadow-glow);
}

.blog-filters .category-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-on-accent);
    font-weight: 600;
    box-shadow: 0 0 15px var(--shadow-glow);
}

.search-container {
    display: flex;
    align-items: center;
}

.blog-search-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    width: 200px;
    transition: all 0.3s ease;
}

.blog-search-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px var(--shadow-glow);
    width: 250px;
}

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

/* FAB Buttons */
.create-blog-fab, .my-blogs-fab {
    position: fixed;
    bottom: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.create-blog-fab {
    background: var(--accent);
    border: 2px solid var(--accent);
    right: 2rem;
}

.my-blogs-fab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    right: 5rem;
    color: var(--accent);
}

.create-blog-fab svg, .my-blogs-fab svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-primary);
}

.my-blogs-fab svg {
    fill: var(--accent);
}

.create-blog-fab:hover, .my-blogs-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--shadow-glow);
}

.my-blogs-fab:hover {
    background: var(--accent);
    color: var(--text-on-accent);
}

.my-blogs-fab:hover svg {
    fill: var(--text-on-accent);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    margin-top: 3rem;
    text-align: center;
}

.newsletter-content h2 {
    color: var(--text-primary);
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.newsletter-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: rgba(10, 10, 26, 0.8);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-width: 200px;
}

.newsletter-form input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px var(--shadow-glow);
}

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

.newsletter-form .btn {
    padding: 0.75rem 1.5rem;
}

.newsletter-feedback {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent-dark);
}

/* Blog Card Styles */
.card-likes-dislikes {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
}

.card-likes, .card-dislikes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
}

.card-likes svg, .card-dislikes svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.post-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.bookmark-btn, .share-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bookmark-btn svg, .share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.bookmark-btn:hover, .share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.bookmark-btn.active {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--accent-dark);
}

/* ===== FLOATING ACTION BUTTONS ===== */
/* Styles moved to blog section above */

@media (max-width: 768px) {
    .create-blog-fab, .my-blogs-fab {
        bottom: 1.5rem;
        width: 48px;
        height: 48px;
    }
    .create-blog-fab { right: 1.5rem; }
    .my-blogs-fab { right: 5.5rem; }
    .create-blog-fab svg, .my-blogs-fab svg {
        width: 20px;
        height: 20px;
    }
    
    .blog-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-filters .category-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-search-input {
        width: 100%;
    }
    
    .blog-search-input:focus {
        width: 100%;
    }
    
    .newsletter-section {
        padding: 1.5rem 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-content h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blog-filters .category-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .create-blog-fab, .my-blogs-fab {
        bottom: 1rem;
        width: 44px;
        height: 44px;
    }
    
    .create-blog-fab { right: 1rem; }
    .my-blogs-fab { right: 4rem; }
}

/* ===== CORNER BRACKET DECORATIONS ===== */
.glass-card::before, .listing-card::before, .summary-card::before, .favorite-card::before, .trip-card::before, .destination-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0.25;
    pointer-events: none;
    z-index: 3;
    animation: accent-pulse 4s ease-in-out infinite;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.glass-card::after, .listing-card::after, .summary-card::after, .favorite-card::after, .trip-card::after, .destination-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 14px; height: 14px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0.25;
    pointer-events: none;
    z-index: 3;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.glass-card:hover::before, .listing-card:hover::before, .summary-card:hover::before, .favorite-card:hover::before, .trip-card:hover::before, .destination-card:hover::before,
.glass-card:hover::after, .listing-card:hover::after, .summary-card:hover::after, .favorite-card:hover::after, .trip-card:hover::after, .destination-card:hover::after {
    width: 28px;
    height: 28px;
    opacity: 0.85;
}

@keyframes accent-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* ===== FOOTER ===== */
.dashboard-footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    min-width: 200px;
    animation: toast-slide-in 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.success {
    border-color: var(--success);
    background: var(--success-bg);
}

.toast.info {
    border-color: var(--accent);
    background: var(--border);
}

.toast.error {
    border-color: var(--danger);
    background: var(--danger-bg);
}

.toast.show {
    animation: toast-fade 0.3s ease;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-fade {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ===== FLYING CART ANIMATION ===== */
.flying-item {
    transition: all 0.4s ease-out;
    pointer-events: none;
}

.flying-item svg {
    fill: var(--accent);
    filter: drop-shadow(0 0 5px var(--shadow-glow));
}

/* ===== QUICK VIEW MODAL ===== */
.quick-view-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.quick-view-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.quick-view-close:hover {
    color: var(--accent);
}

.quick-view-body {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.quick-view-body .qv-gallery {
    padding: 1rem;
}

.quick-view-body .qv-main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.quick-view-body .qv-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.quick-view-body .qv-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.quick-view-body .qv-thumb.active {
    border-color: var(--accent);
}

.quick-view-body .qv-details {
    padding: 1rem;
}

.quick-view-body .qv-category {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.quick-view-body .qv-details h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.quick-view-body .qv-rating {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.quick-view-body .qv-rating .stars {
    color: var(--accent);
}

.quick-view-body .qv-price {
    margin-bottom: 1rem;
}

.quick-view-body .qv-current {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}

.quick-view-body .qv-original {
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.quick-view-body .qv-discount {
    background: var(--accent);
    color: var(--text-on-accent);
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.quick-view-body .qv-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.quick-view-body .qv-specs {
    margin-bottom: 1rem;
}

.quick-view-body .qv-specs h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.quick-view-body .qv-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.quick-view-body .qv-specs li {
    padding: 0.25rem 0;
}

.quick-view-body .qv-stock {
    margin-bottom: 1rem;
}

.quick-view-body .in-stock {
    color: var(--success);
}

.quick-view-body .out-of-stock {
    color: var(--danger);
}

.quick-view-body .qv-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== PRODUCT 3D VIEWER ===== */
.product-viewer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-viewer.active {
    display: flex;
}

.product-viewer .viewer-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    max-width: 800px;
    width: 100%;
    padding: 1rem;
}

.product-viewer .viewer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.product-viewer .viewer-main {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-viewer .viewer-main img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-viewer .viewer-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-viewer .viewer-nav {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.product-viewer .viewer-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.product-viewer .viewer-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    flex: 1;
}

.product-viewer .viewer-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-viewer .viewer-thumb.active {
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .quick-view-content {
        max-height: 80vh;
    }
    
    .quick-view-body {
        grid-template-columns: 1fr;
    }
    
    .quick-view-body .qv-gallery {
        order: 1;
    }
    
    .quick-view-body .qv-details {
        order: 2;
    }
    
    .quick-view-body .qv-main-image {
        height: 200px;
    }
    
    .product-viewer .viewer-main img {
        max-height: 250px;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(10, 10, 26, 0.9) !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn.visible {
    display: flex !important;
    animation: fade-in 0.3s ease;
}

.back-to-top-btn:hover {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    box-shadow: 0 0 15px var(--shadow-glow);
}

.back-to-top-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--accent) !important;
}
    height: 20px;
    fill: currentColor;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-card-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    border-radius: 0;
}

.payment-card-icon {
    flex-shrink: 0;
}

.payment-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-card-number {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', monospace;
}

.payment-card-expiry {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.payment-card-badge {
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.btn-icon:hover {
    color: var(--danger);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

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

.payment-method-item {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
}

.payment-method-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
}

.payment-method-icon {
    flex-shrink: 0;
}

.payment-method-info {
    flex: 1;
}

.payment-method-info h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.payment-method-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.payment-method-config {
    padding: 0 1rem 1rem 4.5rem;
    display: none;
}

.payment-method-item.active .payment-method-config {
    display: block;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .payment-method-header {
        flex-wrap: wrap;
    }
    
    .payment-method-config {
        padding-left: 1rem;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* ===== RESPONSIVE IMAGES ===== */

/* Picture element styling */
.listing-card picture,
.listing-card-image picture {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.listing-card picture img,
.listing-card-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Responsive image container */
.listing-card-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--border), var(--ambient-glow-1));
}

/* Hero image optimization */
.hero-image picture,
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blur-up loading effect */
img[data-src],
img[data-lazy] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded,
img[data-lazy][src],
img[data-src][src] {
    opacity: 1;
}

/* ===== RICH TEXT EDITOR ===== */

.mut-editor {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-card);
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.mut-editor:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.mut-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.mut-editor-group {
    display: flex;
    gap: 2px;
    padding-right: 8px;
    border-right: 1px solid var(--border-color);
    margin-right: 4px;
}

.mut-editor-group:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.mut-editor-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    transition: all 0.2s ease;
}

.mut-editor-btn:hover {
    background: var(--bg-hover);
    color: var(--accent);
    border-color: var(--border-color);
}

.mut-editor-btn:active {
    transform: scale(0.92);
    background: var(--accent);
    color: var(--text-on-accent);
}

.mut-editor-btn[data-command="formatBlock"][data-value="h1"] {
    color: var(--accent);
    font-size: 1.1rem;
}

.mut-editor-btn[data-command="formatBlock"][data-value="h2"] {
    color: var(--accent-secondary);
    font-size: 1rem;
}

.mut-editor-content {
    padding: 16px 20px;
    background: var(--surface-card);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
    outline: none;
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    font-family: var(--font-family);
}

.mut-editor-content:empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    font-style: italic;
}

.mut-editor-content h1 {
    font-size: 1.8rem;
    font-family: var(--font-family-heading);
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.mut-editor-content h2 {
    font-size: 1.4rem;
    font-family: var(--font-family-heading);
    margin: 1.25rem 0 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.mut-editor-content p {
    margin: 0.75rem 0;
}

.mut-editor-content p:first-child {
    margin-top: 0;
}

.mut-editor-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--bg-hover);
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
}

.mut-editor-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mut-editor-content a:hover {
    color: var(--accent-light);
}

.mut-editor-content img {
    max-width: 100%;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
}

.mut-editor-content ul,
.mut-editor-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.mut-editor-content li {
    margin: 0.5rem 0;
}

.mut-editor-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 1.5rem 0;
}

.mut-editor-empty {
    color: var(--text-muted);
}

/* Placeholder styling */
[data-placeholder]:empty:before {
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive editor */
@media (max-width: 768px) {
    .mut-editor-toolbar {
        padding: 6px 8px;
        gap: 2px;
    }
    
    .mut-editor-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .mut-editor-group {
        padding-right: 4px;
        margin-right: 2px;
    }
    
    .mut-editor-content {
        padding: 12px 16px;
        min-height: 250px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mut-editor-btn {
        transition: none;
    }
    
    .mut-editor-content {
        transition: none;
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    will-change: transform;
}

/* Decoding async for performance */
picture img {
    decoding: async;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .listing-card picture img,
    .listing-card-image picture img {
        transition: none;
    }
    
    img[data-src],
    img[data-lazy] {
        transition: none;
    }
}

/* ===== BLOG PUBLISH FORM ===== */

/* Theme Select Dropdown */
.theme-select,
.publish-form select,
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a227' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.75rem 40px 0.75rem 14px;
    font-size: 1rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.theme-select:hover,
.publish-form select:hover,
.form-group select:hover {
    border-color: var(--accent);
}

.theme-select:focus,
.publish-form select:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.theme-select option,
.publish-form select option,
.form-group select option {
    background: var(--surface-card);
    color: var(--text-primary);
    padding: 8px;
}

/* Blog Editor Container */
.blog-editor {
    min-height: 350px;
    padding: 0;
    border: none;
    background: transparent;
}

.blog-editor + .mut-editor {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
}

.blog-editor + .mut-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.blog-editor + .mut-editor-group {
    display: flex;
    gap: 3px;
    margin-right: 8px;
    padding-right: 8px;
    border-right: 1px solid var(--border-color);
}

.blog-editor + .mut-editor-group:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.blog-editor + .mut-editor-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    transition: all 0.2s ease;
}

.blog-editor + .mut-editor-btn:hover {
    background: var(--bg-hover);
    color: var(--accent);
    border-color: var(--border-color);
}

.blog-editor + .mut-editor-btn:active {
    background: var(--accent);
    color: var(--text-on-accent);
}

.blog-editor + .mut-editor-content {
    padding: 18px 22px;
    background: var(--surface-card);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
    min-height: 300px;
    outline: none;
    font-family: var(--font-family);
}

.blog-editor + .mut-editor-content:empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    font-style: italic;
}

/* Publish Form Groups */
.publish-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.publish-form .form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-family-heading);
}

.publish-form input[type="text"],
.publish-form input[type="number"],
.publish-form input[type="url"],
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"] {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.75rem 14px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.publish-form input:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.publish-form textarea:not(.blog-editor) {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.75rem 14px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.publish-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Form Row */
.publish-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .publish-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Tags Input */
.publish-form .tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-height: 48px;
}

.publish-form .tags-input input {
    flex: 1;
    min-width: 100px;
    border: none;
    background: transparent;
    padding: 0.5rem;
    color: var(--text-primary);
}

.publish-form .tags-input input:focus {
    outline: none;
    box-shadow: none;
}

.publish-form .tag-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--accent);
    color: var(--text-on-accent);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.publish-form .tag-badge button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-on-accent);
    padding: 0;
    line-height: 1;
    font-size: 1rem;
}

.publish-form .tag-badge button:hover {
    color: var(--danger);
}

/* Image Upload Toggle */
.publish-form .image-source-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.publish-form .toggle-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
}

.publish-form .toggle-btn.active {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
}

.publish-form .toggle-btn:hover:not(.active) {
    border-color: var(--accent);
    color: var(--accent);
}

/* Image Upload Zone */
.publish-form .image-upload {
    border: 2px dashed var(--border-color);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--surface-card);
}

.publish-form .image-upload:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.publish-form .image-upload p {
    color: var(--text-muted);
    margin: 0;
}

/* Image Preview */
.publish-form .image-preview {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.publish-form .image-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* URL Input */
.publish-form .url-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* Form Actions */
.publish-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.publish-form .btn-cancel {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.publish-form .btn-cancel:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.publish-form .btn-publish {
    background: var(--accent);
    border: none;
    color: var(--text-on-accent);
    padding: 0.75rem 2rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.publish-form .btn-publish:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Publish Success */
.publish-success {
    display: none;
    text-align: center;
    padding: 3rem;
}

.publish-success.show {
    display: block;
}

.publish-success svg {
    width: 80px;
    height: 80px;
    fill: var(--success);
    margin-bottom: 1rem;
}

.publish-success h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.publish-success p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Header */
.publish-header {
    margin-bottom: 2rem;
}

.publish-header h1 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.publish-header p {
    color: var(--text-muted);
}

/* Container */
.publish-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Select dropdowns - theme styled */
.publish-form select,
.form-group select {
    appearance: none;
    background-color: var(--surface-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0dcd0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.75rem 36px 0.75rem 12px;
    font-size: 1rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
}

.publish-form select:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.publish-form select:hover,
.form-group select:hover {
    border-color: var(--accent);
}

/* Form inputs */
.publish-form input[type="text"],
.publish-form input[type="number"],
.publish-form input[type="url"],
.publish-form input[type="email"],
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="email"] {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.75rem 12px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.publish-form input:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Form rows */
.publish-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .publish-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Tags input */
.publish-form .tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-height: 48px;
}

.publish-form .tags-input input {
    flex: 1;
    min-width: 100px;
    border: none;
    background: transparent;
    padding: 0.5rem;
    color: var(--text-primary);
}

.publish-form .tags-input input:focus {
    outline: none;
    box-shadow: none;
}

.publish-form .tag-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--accent);
    color: var(--text-on-accent);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.publish-form .tag-badge button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-on-accent);
    padding: 0;
    line-height: 1;
    font-size: 1rem;
}

.publish-form .tag-badge button:hover {
    color: var(--danger);
}

/* Editor container spacing */
.publish-form .form-group:has(#post-content) {
    margin-top: 1rem;
}

/* Image upload sections */
.publish-form .image-source-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.publish-form .toggle-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.publish-form .toggle-btn.active {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
}

.publish-form .toggle-btn:hover:not(.active) {
    border-color: var(--accent);
    color: var(--accent);
}

/* Image upload zone */
.publish-form .image-upload {
    border: 2px dashed var(--border-color);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--surface-card);
}

.publish-form .image-upload:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.publish-form .image-upload p {
    color: var(--text-muted);
    margin: 0;
}

/* URL input */
.publish-form .url-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* Form actions */
.publish-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.publish-form .btn-cancel {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.publish-form .btn-cancel:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.publish-form .btn-publish {
    background: var(--accent);
    border: none;
    color: var(--text-on-accent);
    padding: 0.75rem 2rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.publish-form .btn-publish:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== ONBOARDING MODAL ===== */
.onboarding-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.onboarding-overlay.active {
    display: flex;
}

.onboarding-modal {
    background: var(--surface-elevated);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px var(--shadow-glow);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.onboarding-progress span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.onboarding-progress span.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.onboarding-progress span.completed {
    background: var(--accent);
}

.onboarding-slide {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.onboarding-slide.active {
    display: flex;
}

.onboarding-slide img {
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: var(--bg-hover);
}

.onboarding-slide.active {
    display: block;
}

.onboarding-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.onboarding-slide h2 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.onboarding-slide p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.onboarding-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.onboarding-skip,
.onboarding-done {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.onboarding-skip {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.onboarding-skip:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.onboarding-done {
    background: var(--accent);
    border: none;
    color: var(--text-on-accent);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 3px;
    background: var(--bg-hover);
    margin: 0 -2rem;
    width: calc(100% + 4rem);
    flex-shrink: 0;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: width 0.05s linear;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Mobile adjustments for scroll progress */
@media (max-width: 768px) {
    .scroll-progress-bar {
        top: 50px;
        z-index: 140;
        height: 2px;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    /* Ensure sidebar toggle stays above */
    .mobile-sidebar-toggle {
        z-index: 150;
    }
}

.onboarding-done:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.onboarding-dont-show {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
}

.onboarding-dont-show input {
    accent-color: var(--accent);
}
