/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #D4A017;
    --primary-dark: #B8860B;
    --primary-light: #F5D56E;
    --accent: #e74c3c;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-section: #12121f;
    --text: #e0e0e0;
    --text-muted: #8888aa;
    --text-bright: #ffffff;
    --border: #2a2a45;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gradient-primary: linear-gradient(135deg, #D4A017, #F5D56E);
    --gradient-dark: linear-gradient(135deg, #0f0f1a, #1a1a2e);
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.hidden { display: none !important; }

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 60px 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.98);
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    height: 70px;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 1.4rem;
    color: var(--text-bright);
    font-weight: 900;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo strong { color: var(--primary); }

.nav-logo-icon {
    width: 55px;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(212, 160, 23, 0.3));
    overflow: visible;
}

/* Spinning wheels */
.wheel {
    transform-box: fill-box;
    transform-origin: center;
    animation: wheelSpin 2.5s linear infinite;
}

@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.nav-search {
    flex: 1;
    max-width: 400px;
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.nav-search:focus-within {
    border-color: var(--primary);
}

.nav-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 18px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

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

.nav-search button {
    background: var(--primary);
    border: none;
    padding: 10px 16px;
    color: var(--bg-dark);
    cursor: pointer;
    transition: background 0.3s;
}

.nav-search button:hover { background: var(--primary-light); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.nav-profile-btn {
    flex-shrink: 0;
}

.nav-links > a {
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-links > a:hover {
    color: var(--primary);
    background: rgba(212, 160, 23, 0.1);
}

.nav-post-btn {
    background: var(--primary) !important;
    color: var(--bg-dark) !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
}

.nav-post-btn:hover {
    background: var(--primary-light) !important;
    color: var(--bg-dark) !important;
}

.nav-auth-guest-wrap {
    margin-left: auto;
    flex-shrink: 0;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-login {
    color: var(--text) !important;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.btn-register {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-register:hover {
    background: var(--primary);
    color: var(--bg-dark) !important;
}

.btn-dashboard {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 6px;
}

.btn-dashboard i {
    font-size: 1.7rem;
}

.btn-logout {
    color: var(--text-muted) !important;
    padding: 8px 6px;
    font-size: 1.2rem;
}

.btn-logout:hover { color: var(--danger) !important; }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

/* Mobile menu */
.mobile-menu {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu a {
    color: var(--text);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.mobile-menu a:hover {
    background: var(--bg-card);
    color: var(--primary);
}

/* ==================== HERO ==================== */
.hero {
    padding: 140px 20px 80px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero > .hero-content > p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Hero Search */
.hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.hero-search select,
.hero-search input {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.hero-search select:focus,
.hero-search input:focus {
    border-color: var(--primary);
}

.hero-search-btn {
    padding: 12px 30px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-search-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212,160,23,0.4);
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-bright);
}

.section-header h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.badge-promoted {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-dark);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sort controls */
.sort-controls select {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}

/* Filters bar */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 18px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease, margin 0.35s ease;
    overflow: hidden;
}

.filters-bar.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 18px;
    margin-bottom: 0;
    border-color: transparent;
}

.filters-bar select,
.filters-bar input {
    flex: 1;
    min-width: 110px;
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}

.filters-bar select:focus,
.filters-bar input:focus {
    border-color: var(--primary);
}

.btn-clear-filters {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-clear-filters:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* ==================== VEHICLE CARDS ==================== */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vehicle-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.vehicle-card.promoted {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.15);
}

.vehicle-card.premium {
    border-color: #9b59b6;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.15);
}

.card-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.card-badge.badge-standard {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-dark);
}

.card-badge.badge-premium {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
}

.card-badge.badge-new {
    background: var(--success);
    color: #fff;
}

.card-image {
    width: 100%;
    height: 200px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .placeholder-img {
    font-size: 4rem;
    color: var(--border);
}

.card-image .photo-count {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.card-spec {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 15px;
}

.card-spec i {
    color: var(--primary);
    font-size: 0.7rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.card-price small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

.card-meta .card-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== STATS ==================== */
.stats-section {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-3px); }

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-bright);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== AUTH PAGES ==================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.auth-card-wide {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.auth-header h2 i { color: var(--primary); }

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 18px;
}

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

.form-group label i {
    color: var(--primary);
    margin-right: 6px;
    width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-row.form-row-single {
    grid-template-columns: 1fr;
}

.date-picker-row {
    display: flex;
    gap: 10px;
}
.date-picker-row select {
    flex: 1;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem !important;
}

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

.btn-primary {
    padding: 12px 28px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212,160,23,0.4);
}

.btn-secondary {
    padding: 12px 28px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(212,160,23,0.1);
}

.btn-full { width: 100%; }

/* Reset Password Email Preview */
.reset-email-preview {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 5px;
}

.reset-email-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.reset-email-header i {
    font-size: 1.3rem;
    color: var(--primary);
}

.reset-email-header strong {
    display: block;
    color: var(--text-bright);
    font-size: 0.85rem;
}

.reset-email-header span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.reset-email-body {
    padding: 15px;
}

.reset-email-body p {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.5;
}

.reset-code-display {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 10px;
    color: var(--primary);
    background: rgba(212, 160, 23, 0.08);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.auth-forgot {
    text-align: center;
    margin-top: 15px;
    font-size: 0.82rem;
}

.auth-forgot a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot a:hover {
    color: var(--primary);
}

.auth-switch {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-switch a { font-weight: 600; }

/* ==================== PRICING ==================== */
.pricing-hero {
    padding: 130px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

.pricing-hero h1 {
    font-size: 2.5rem;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.pricing-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.15);
    transform: scale(1.05);
}

.pricing-popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-premium {
    border-color: #9b59b6;
}

.pricing-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-ribbon {
    position: absolute;
    top: -1px; right: 20px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 6px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 0 8px 8px;
}

.pricing-price {
    margin-bottom: 30px;
}

.price-amount {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-bright);
}

.pricing-popular .price-amount { color: var(--primary); }
.pricing-premium .price-amount { color: #9b59b6; }

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

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex: 1;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-features li i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.pricing-features li .fa-check { color: var(--success); }
.pricing-features li .fa-times { color: var(--text-muted); }
.pricing-features li.disabled { color: var(--text-muted); opacity: 0.5; }

.color-standard { color: #D4A017; }
.color-premium { color: #9b59b6; }

.btn-pricing {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pricing-free {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}
.btn-pricing-free:hover {
    border-color: var(--text);
    background: rgba(255,255,255,0.05);
}

.btn-pricing-standard {
    background: var(--primary);
    color: var(--bg-dark);
}
.btn-pricing-standard:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212,160,23,0.4);
}

.btn-pricing-premium {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
}
.btn-pricing-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155,89,182,0.4);
}

/* Pricing info */
.pricing-info {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}

.pricing-info h3 {
    font-size: 1.3rem;
    color: var(--text-bright);
    margin-bottom: 25px;
}

.pricing-info h3 i { color: var(--primary); margin-right: 10px; }

.pricing-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

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

.info-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.info-item h4 {
    color: var(--text-bright);
    margin-bottom: 8px;
}

.info-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==================== POST AD ==================== */
.post-ad-container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px;
}

.post-ad-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-ad-header h1 {
    font-size: 2rem;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.post-ad-header h1 i { color: var(--primary); }

.post-ad-header p { color: var(--text-muted); }

.login-required-box {
    text-align: center;
    padding: 60px 30px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.login-required-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.login-required-box h3 {
    color: var(--text-bright);
    margin-bottom: 10px;
}

.login-required-box p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.login-required-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.form-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.form-section h3 {
    font-size: 1.1rem;
    color: var(--text-bright);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.form-section h3 i { color: var(--primary); margin-right: 10px; }

/* Plan selector */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.plan-option {
    display: block;
    cursor: pointer;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    transition: all 0.3s;
}

.plan-option:hover { border-color: var(--text-muted); }

.plan-option.active {
    border-color: var(--primary);
    background: rgba(212, 160, 23, 0.08);
}

.plan-option input { display: none; }

.plan-name {
    display: block;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.plan-price {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
}

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

/* Equipment grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.equip-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
}

.equip-check:hover { background: var(--bg-card-hover); }

.equip-check input { accent-color: var(--primary); }

/* Photo upload */
.photo-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.photo-upload-area:hover {
    border-color: var(--primary);
    background: rgba(212, 160, 23, 0.05);
}

.photo-upload-area i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.photo-upload-area p {
    color: var(--text);
    font-weight: 600;
}

.photo-upload-area span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.photo-upload-area input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.photo-preview-item {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 2px; right: 2px;
    width: 22px; height: 22px;
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Payment section */
.payment-form {
    max-width: 400px;
}

.payment-summary {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 2rem;
    color: var(--text-muted);
}

.btn-post {
    margin-top: 10px;
    padding: 16px;
    font-size: 1.1rem;
}

/* ==================== VEHICLE DETAIL ==================== */
.vehicle-detail {
    padding-top: 80px;
}

.vd-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.vd-title {
    font-size: 1.8rem;
    color: var(--text-bright);
    font-weight: 800;
}

.vd-price-box {
    text-align: right;
}

.vd-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
}

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

.vd-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    height: 380px;
}

.vd-gallery-main {
    grid-row: 1 / 3;
    grid-column: 1 / 3;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius) 0 0 var(--radius);
}

.vd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.vd-gallery-main .placeholder-img {
    font-size: 5rem;
    color: var(--border);
}

.vd-photo-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}
.vd-photo-count:hover { background: rgba(0,0,0,0.9); }

.vd-gallery-thumbs {
    grid-row: 1 / 3;
    grid-column: 3 / 4;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.vd-gallery-thumbs .thumb {
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s;
    position: relative;
    border-radius: 0;
}
.vd-gallery-thumbs .thumb:first-child { border-radius: 0 var(--radius) 0 0; }
.vd-gallery-thumbs .thumb:last-child { border-radius: 0 0 var(--radius) 0; }

.vd-gallery-thumbs .thumb:hover { opacity: 0.8; }

.vd-gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-more {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ==================== LIGHTBOX ==================== */
.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lb-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    z-index: 10;
}
.lb-counter {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}
.lb-controls {
    display: flex;
    gap: 6px;
}
.lb-controls button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.lb-controls button:hover { background: rgba(255,255,255,0.25); }
.lb-close-btn { background: rgba(220,53,69,0.3) !important; }
.lb-close-btn:hover { background: rgba(220,53,69,0.6) !important; }

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 15px; }
.lb-next { right: 15px; }

.lb-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    padding: 60px 80px 10px;
}
.lb-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lb-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 20px 15px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.lb-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.2s;
}
.lb-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}
.lb-thumb:hover { opacity: 0.8; }
.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .lb-img-wrap { padding: 55px 15px 10px; }
    .lb-nav { width: 36px; height: 36px; font-size: 1rem; }
    .lb-prev { left: 5px; }
    .lb-next { right: 5px; }
    .lb-thumb { width: 48px; height: 36px; }
}

.vd-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Suggested ads */
.vd-suggested {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}
.vd-suggested h3 {
    font-size: 1.2rem;
    color: var(--text-bright);
    margin-bottom: 20px;
}
.vd-suggested h3 i {
    color: var(--primary);
    margin-right: 8px;
}
.vd-suggested-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
@media (max-width: 992px) {
    .vd-suggested-scroll { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .vd-suggested-scroll { grid-template-columns: 1fr; }
}

.vd-specs {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
}

.vd-specs h3 {
    font-size: 1.1rem;
    color: var(--text-bright);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.vd-specs h3 i { color: var(--primary); margin-right: 8px; }

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spec-item .spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-item .spec-value {
    font-weight: 600;
    color: var(--text-bright);
}

.vd-description {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    margin-top: 20px;
}

.vd-description h3 {
    font-size: 1.1rem;
    color: var(--text-bright);
    margin-bottom: 15px;
}

.vd-description h3 i { color: var(--primary); margin-right: 8px; }

.vd-description p {
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
}

.vd-equipment {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    margin-top: 20px;
}

.vd-equipment h3 {
    font-size: 1.1rem;
    color: var(--text-bright);
    margin-bottom: 15px;
}

.vd-equipment h3 i { color: var(--primary); margin-right: 8px; }

.equip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.equip-tag {
    padding: 6px 14px;
    background: var(--bg-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text);
}

.equip-tag i { color: var(--success); margin-right: 6px; }

/* Seller card */
.vd-seller {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}

.vd-seller h3 {
    font-size: 1.1rem;
    color: var(--text-bright);
    margin-bottom: 20px;
}

.vd-seller h3 i { color: var(--primary); margin-right: 8px; }

.seller-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.seller-avatar {
    width: 50px; height: 50px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.seller-name {
    font-weight: 700;
    color: var(--text-bright);
}

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

.seller-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    width: 100%;
}

.contact-btn-phone {
    background: var(--success);
    color: #fff;
}

.contact-btn-phone:hover { background: #27ae60; }

.contact-btn-msg {
    background: transparent;
    border: 1px solid var(--primary) !important;
    color: var(--primary);
}

.contact-btn-msg:hover {
    background: rgba(212,160,23,0.1);
}

.vd-ad-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vd-ad-info p {
    margin-bottom: 4px;
}

/* ==================== DASHBOARD ==================== */
.dashboard {
    padding-top: 80px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}
.user-avatar i {
    font-size: 4rem;
    color: var(--primary);
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 50%;
}
.avatar-overlay i {
    font-size: 1.3rem;
    color: #fff;
}
.user-avatar:hover .avatar-overlay {
    opacity: 1;
}

.dashboard-user-info h2 {
    color: var(--text-bright);
    margin-bottom: 2px;
}

.dashboard-user-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.member-since {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 5px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.dash-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px 10px;
    text-align: center;
}

.dash-stat i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.dash-stat span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-bright);
}

.dash-stat label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dash-section-title {
    font-size: 1.3rem;
    color: var(--text-bright);
    margin-bottom: 20px;
}

.dash-section-title i { color: var(--primary); margin-right: 8px; }

.dash-collapsible {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.dash-collapsible:hover { color: var(--primary); }
.dash-toggle-icon {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}
.dash-collapsible.open .dash-toggle-icon {
    transform: rotate(180deg);
}
.dash-collapsible-body {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dashboard-ads {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dash-ad-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    align-items: center;
    transition: all 0.3s;
}

.dash-ad-card:hover {
    border-color: var(--primary);
}

.dash-ad-img {
    width: 120px;
    height: 80px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.dash-ad-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-ad-img i {
    font-size: 2rem;
    color: var(--border);
}

.dash-ad-info {
    flex: 1;
}

.dash-ad-title {
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.dash-ad-details {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dash-ad-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.dash-ad-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-active {
    background: rgba(46,204,113,0.15);
    color: var(--success);
}

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

.status-paused {
    background: rgba(255,193,7,0.15);
    color: var(--warning);
}

.status-sold {
    background: rgba(46,204,113,0.15);
    color: var(--success);
}

.dash-ad-paused {
    opacity: 0.6;
}

.dash-ad-sold {
    opacity: 0.7;
}

.dash-ad-actions .btn-renew {
    color: var(--success) !important;
    border-color: var(--success) !important;
}

.status-promoted {
    background: rgba(212,160,23,0.15);
    color: var(--primary);
}

.dash-ad-actions {
    display: flex;
    gap: 8px;
}

.dash-ad-actions button {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.dash-ad-actions button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dash-ad-actions button.btn-delete:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Sold archive card */
.dash-sold-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    opacity: 0.8;
}
.dash-sold-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.dash-sold-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(46,204,113,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.dash-sold-header .dash-ad-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
}
.dash-sold-price {
    margin-left: auto;
    font-size: 1.1rem;
    font-weight: 700;
}
.dash-sold-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 12px;
}
.dash-sold-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.dash-sold-item i {
    color: var(--primary);
    font-size: 0.7rem;
}
.dash-sold-item span {
    display: none;
}
.dash-sold-item strong {
    color: var(--text);
    font-weight: 600;
}
.dash-sold-equip {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 8px 0;
    border-top: 1px solid var(--border);
}
.dash-sold-equip i { color: var(--success); margin-right: 4px; }
.dash-sold-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    line-height: 1.4;
}
.dash-sold-footer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.dash-sold-footer i { color: var(--primary); margin-right: 3px; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 15px;
}

.footer-logo strong { color: var(--primary); }

.footer-col p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.footer-col p i {
    color: var(--primary);
    margin-right: 8px;
    width: 16px;
}

.footer-col h4 {
    color: var(--text-bright);
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--primary); }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.toast {
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}

.toast.fade-out {
    animation: toastOut 0.3s ease forwards;
}

.toast-success {
    background: #27ae60;
    color: #fff;
}

.toast-error {
    background: #e74c3c;
    color: #fff;
}

.toast-info {
    background: #2980b9;
    color: #fff;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(50px); }
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--border);
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover { color: var(--text-bright); }

/* Avatar crop modal */
.crop-container {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background: #000;
    cursor: grab;
    touch-action: none;
}
.crop-container:active { cursor: grabbing; }
.crop-circle {
    width: 100%;
    height: 100%;
    position: relative;
}
.crop-circle img {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    user-select: none;
    -webkit-user-drag: none;
}
.crop-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    color: var(--text-muted);
}
.crop-zoom input[type="range"] {
    flex: 1;
    max-width: 200px;
    accent-color: var(--primary);
}
.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.btn-remove-avatar {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 2px 0;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.btn-remove-avatar:hover { opacity: 1; }

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

/* ==================== CATEGORY BAR ==================== */
.category-bar {
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
    padding: 85px 0 15px;
    position: relative;
    z-index: 10;
}

.category-items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-items::-webkit-scrollbar { display: none; }

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 12px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 0;
}

.category-item i {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.category-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(212, 160, 23, 0.08);
}

.category-item:hover i { color: var(--primary); }

.category-item.active {
    border-color: var(--primary);
    background: rgba(212, 160, 23, 0.15);
    color: var(--primary);
}

.category-item.active i { color: var(--primary); }

/* ==================== BACK BUTTON ==================== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 25px;
}

.btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-back i { font-size: 0.85rem; }

/* ==================== VEHICLE DETAIL ACTIONS ==================== */
.vd-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn-active {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(231, 76, 60, 0.08);
}

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

.action-btn-danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Favorites folders */
.fav-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.btn-create-folder {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-create-folder:hover { opacity: 0.85; }
.btn-create-folder i { margin-right: 6px; }

.fav-folder-section {
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.fav-folder-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-card);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.fav-folder-header:hover { background: var(--bg-section); }
.fav-folder-icon { color: var(--primary); font-size: 1.1rem; }
.fav-folder-name { font-weight: 600; color: var(--text-bright); font-size: 1rem; }
.fav-folder-count {
    background: var(--bg-dark);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}
.fav-folder-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
}
.fav-folder-actions button {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.fav-folder-actions button:hover { border-color: var(--primary); color: var(--primary); }
.fav-folder-toggle {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.3s;
    margin-left: 8px;
}
.fav-folder-header.open .fav-folder-toggle { transform: rotate(180deg); }
.fav-folder-body {
    padding: 15px;
    border-top: 1px solid var(--border);
}

/* Folder picker in modal */
.fav-folder-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.fav-folder-pick-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.fav-folder-pick-btn:hover { border-color: var(--primary); color: var(--primary); }
.fav-folder-pick-btn i { color: var(--primary); width: 18px; text-align: center; }

/* ==================== SELLER TYPE LABEL ==================== */
.seller-type-label {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
}

/* ==================== NOTIFICATION BADGE ==================== */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ==================== REPORT CARDS ==================== */
.report-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.report-info {
    flex: 1;
}

.report-info strong {
    color: var(--text-bright);
    display: block;
    margin-bottom: 4px;
}

.report-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

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

.report-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ==================== PROFILE PAGE ==================== */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.profile-avatar i {
    font-size: 4rem;
    color: var(--primary);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

/* ==================== USER TYPE BADGE ==================== */
.user-type-badge {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(212, 160, 23, 0.12);
    color: var(--primary);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}

/* ==================== INFO MODAL BODY ==================== */
.info-modal-body {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.info-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.info-modal-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-left: 20px;
    position: relative;
}

.info-modal-body ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.faq-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item h4 {
    color: var(--text-bright);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .nav-search { max-width: 250px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-popular { transform: none; }
    .pricing-popular:hover { transform: translateY(-5px); }
    .pricing-info-grid { grid-template-columns: 1fr; }
    .vd-content { grid-template-columns: 1fr; }
    .vd-seller { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links > a,
    .nav-auth,
    .nav-icons,
    .nav-profile-btn { display: none !important; }
    .nav-container > .nav-post-btn { display: none !important; }
    .nav-auth-guest-wrap { display: none !important; }
    .nav-search { max-width: 200px; }

    .hero { padding: 120px 15px 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-search { flex-direction: column; }
    .hero-search select,
    .hero-search input { min-width: auto; }

    .vehicles-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .plan-selector { grid-template-columns: 1fr; }
    .equipment-grid { grid-template-columns: repeat(2, 1fr); }

    .vd-gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
    .vd-gallery-main { grid-column: 1; grid-row: 1; min-height: 220px; border-radius: var(--radius) var(--radius) 0 0; }
    .vd-gallery-thumbs { grid-column: 1; grid-row: 2; grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
    .vd-gallery-thumbs .thumb { border-radius: 0 !important; min-height: 100px; }
    .vd-gallery-thumbs .thumb:first-child { border-radius: 0 0 0 var(--radius) !important; }
    .vd-gallery-thumbs .thumb:last-child { border-radius: 0 0 var(--radius) 0 !important; }
    .vd-header { flex-direction: column; }
    .vd-price-box { text-align: left; }

    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .dash-ad-card { flex-direction: column; text-align: center; }
    .dash-ad-img { width: 100%; height: 150px; }

    .footer-grid { grid-template-columns: 1fr; gap: 25px; }

    .filters-bar { flex-direction: column; }

    .category-item { min-width: 70px; flex: 0 0 auto; padding: 10px 12px; }
    .category-item i { font-size: 1.1rem; }

    .report-card { flex-direction: column; text-align: center; }

    .profile-header-card { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .auth-card { padding: 25px; }
    .stats-grid { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== PAGE TRANSITIONS ==================== */
.page {
    display: none;
    animation: pageIn 0.3s ease;
}

.page.active {
    display: block;
}

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

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 15px;
}

.no-results h3 {
    color: var(--text);
    margin-bottom: 8px;
}

/* ==================== NAV ICON LINKS ==================== */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav-icon-link {
    color: var(--text-muted) !important;
    font-size: 1.25rem;
    padding: 8px 6px;
    position: relative;
    transition: color 0.2s;
}
.nav-icon-link:hover {
    color: var(--primary) !important;
}
.nav-icon-link .notif-badge {
    position: absolute;
    top: 2px;
    right: -2px;
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ==================== PAGE PANELS ==================== */
.page-panel {
    max-width: 900px;
    margin: 0 auto;
}
.panel-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 25px;
}
.panel-title i {
    margin-right: 10px;
}
.panel-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 15px;
}
.panel-subtitle i { margin-right: 6px; }

/* ==================== MESSAGES ==================== */
.msg-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.msg-warning i { margin-right: 8px; }

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.message-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
}
.message-item:hover {
    background: var(--bg-section);
    border-color: var(--border);
}
.message-unread {
    border-left: 3px solid var(--primary);
}
.message-avatar {
    font-size: 2.2rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.message-info {
    flex: 1;
    min-width: 0;
}
.message-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.message-header-row strong {
    color: var(--text-bright);
    font-size: 0.95rem;
}
.message-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.message-preview {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.message-ad-ref {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 4px;
    display: inline-block;
}
.msg-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.msg-delete-btn:hover { color: var(--danger); }

.btn-convo-delete {
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.btn-convo-delete:hover { color: var(--danger); border-color: var(--danger); }

.message-unread-count {
    background: var(--primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Conversation view */
.convo-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.btn-back {
    background: var(--bg-section);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); }
.convo-partner {
    color: var(--text-bright);
    font-size: 1.1rem;
}
.convo-partner i {
    color: var(--text-muted);
    margin-right: 6px;
}
.convo-messages {
    max-height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 15px;
}
.convo-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.convo-bubble p { margin: 0; }
.convo-mine {
    align-self: flex-end;
    background: var(--primary);
    color: #000;
    border-bottom-right-radius: 4px;
}
.convo-theirs {
    align-self: flex-start;
    background: var(--bg-section);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.convo-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 6px;
    opacity: 0.6;
}
.convo-input {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.convo-input textarea {
    flex: 1;
    background: var(--bg-section);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
}
.convo-input textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.btn-send {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}
.btn-send:hover { opacity: 0.9; }

/* ==================== REPORT CARDS ==================== */
.report-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}
.report-resolved { opacity: 0.5; }
.report-info strong {
    color: var(--text-bright);
    display: block;
    margin-bottom: 4px;
}
.report-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 4px;
}
.report-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.report-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.btn-sm {
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}
.btn-sm.btn-danger { background: var(--danger); color: #fff; }
.btn-sm.btn-warning { background: var(--warning); color: #000; }
.btn-sm.btn-success { background: var(--success); color: #fff; }
.btn-sm.btn-muted { background: var(--bg-section); color: var(--text); border: 1px solid var(--border); }
.btn-sm.btn-view { background: var(--bg-section); color: var(--primary); border: 1px solid var(--border); }
.btn-sm.btn-primary { background: var(--primary); color: #fff; }

/* ==================== ADMIN PANEL ==================== */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.admin-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.admin-stat i {
    font-size: 1.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}
.admin-stat span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    display: block;
}
.admin-stat label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
}
.admin-search-bar {
    margin-bottom: 20px;
}
.admin-search-bar input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-section);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
}
.admin-search-bar input:focus {
    border-color: var(--primary);
    outline: none;
}
.admin-users-table {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.admin-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 0.5fr 0.8fr 1fr;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-section);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.admin-table-row {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 0.5fr 0.8fr 1fr;
    gap: 10px;
    padding: 12px 16px;
    align-items: center;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text);
}
.admin-table-row:hover {
    background: var(--bg-section);
}
.admin-row-banned {
    opacity: 0.6;
}
.admin-user-name {
    color: var(--text-bright);
    font-weight: 500;
}
.admin-user-name i {
    color: var(--text-muted);
    margin-right: 6px;
}
.admin-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-align: center;
}
.status-ok { color: var(--success); background: rgba(40,167,69,0.1); }
.status-banned { color: var(--danger); background: rgba(220,53,69,0.1); }
.admin-actions {
    display: flex;
    gap: 6px;
}

/* ==================== RESPONSIVE ADMIN ==================== */
@media (max-width: 768px) {
    .admin-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-table-header { display: none; }
    .admin-table-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 15px;
    }
    .admin-user-name { grid-column: 1 / -1; }
    .admin-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .report-card { flex-direction: column; align-items: flex-start; gap: 10px; }
    .convo-bubble { max-width: 85%; }
    .page-panel { max-width: 100%; }
}

/* ==================== HISTORY PAGE ==================== */
.history-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.history-tab {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.history-tab:hover {
    border-color: var(--primary);
    color: var(--text-bright);
}

.history-tab.active {
    background: rgba(212, 160, 23, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.history-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.btn-clear-history {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-history:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.history-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-info strong {
    display: block;
    color: var(--text-bright);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.history-time {
    font-size: 0.75rem !important;
    color: var(--text-muted);
    margin-top: 2px;
}

.history-item-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.history-item:hover .history-item-arrow {
    opacity: 1;
}

.history-visited-img {
    width: 60px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
}

.history-visited-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-expired {
    opacity: 0.5;
    cursor: default;
}

.history-expired:hover {
    border-color: var(--border);
    background: var(--bg-card);
}

.history-badge-expired {
    font-size: 0.72rem;
    color: var(--danger);
    background: rgba(231, 76, 60, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

.history-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.history-empty i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 15px;
    display: block;
}

.history-empty p {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .history-tabs {
        flex-direction: column;
    }
}

/* ==================== UPGRADE AD ==================== */
.btn-upgrade {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    color: #000 !important;
    border: none;
}

.btn-upgrade:hover {
    filter: brightness(1.15);
}

.upgrade-plan-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-section);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.upgrade-plan-option:hover {
    border-color: rgba(212, 160, 23, 0.4);
    background: var(--bg-card-hover);
}

.upgrade-plan-option.active {
    border-color: var(--primary);
    background: rgba(212, 160, 23, 0.08);
}

.upgrade-plan-radio {
    font-size: 1.2rem;
    color: var(--border);
    flex-shrink: 0;
}

.upgrade-plan-option.active .upgrade-plan-radio {
    color: var(--primary);
}

.upgrade-plan-info {
    flex: 1;
}

.upgrade-plan-info strong {
    display: block;
    color: var(--text-bright);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.upgrade-plan-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== COMPARE PAGE ==================== */
.compare-selectors {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.compare-slot {
    flex: 1;
    min-height: 120px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s;
}

.compare-slot:hover {
    border-color: var(--primary);
}

.compare-pick-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    transition: color 0.3s;
}

.compare-pick-btn i {
    font-size: 2rem;
    color: var(--primary);
}

.compare-pick-btn:hover {
    color: var(--text-bright);
}

.compare-vs {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.compare-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    width: 100%;
}

.compare-selected-img {
    width: 70px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-selected-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-selected-info {
    flex: 1;
    min-width: 0;
}

.compare-selected-info strong {
    display: block;
    color: var(--text-bright);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-selected-info span {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.compare-remove {
    background: rgba(231, 76, 60, 0.15);
    border: none;
    color: var(--danger);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.compare-remove:hover {
    background: rgba(231, 76, 60, 0.3);
}

/* Compare Table */
.compare-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.compare-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

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

.compare-header-row {
    background: var(--bg-section);
}

.compare-label {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--border);
}

.compare-label i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.compare-val {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border);
    transition: background 0.3s;
}

.compare-val:last-child {
    border-right: none;
}

.compare-header-row .compare-val {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
}

.compare-header-row .compare-val strong {
    color: var(--text-bright);
    font-size: 0.85rem;
}

.compare-header-img {
    width: 100px;
    height: 65px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-dark);
}

.compare-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-better {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
    font-weight: 600;
}

/* Compare Picker Modal */
.compare-picker-list {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.compare-picker-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.compare-picker-img {
    width: 60px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
}

.compare-picker-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-picker-info {
    flex: 1;
    min-width: 0;
}

.compare-picker-info strong {
    display: block;
    color: var(--text-bright);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-picker-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Compare Picker Folders */
.compare-picker-folder {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.compare-picker-folder-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-card);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-bright);
    transition: background 0.2s;
}

.compare-picker-folder-header:hover {
    background: var(--bg-card-hover);
}

.compare-picker-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.compare-picker-folder.collapsed .compare-picker-chevron {
    transform: rotate(-90deg);
}

.compare-picker-folder-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    transition: max-height 0.3s;
}

.compare-picker-folder.collapsed .compare-picker-folder-body {
    display: none;
}

/* Responsive Compare */
@media (max-width: 768px) {
    .compare-selectors {
        flex-direction: column;
    }
    .compare-vs {
        transform: rotate(90deg);
    }
    .compare-slot {
        width: 100%;
    }
    .compare-row {
        grid-template-columns: 100px 1fr 1fr;
    }
    .compare-label {
        font-size: 0.75rem;
        padding: 10px 8px;
    }
    .compare-val {
        font-size: 0.8rem;
        padding: 10px 8px;
    }
    .compare-header-img {
        width: 70px;
        height: 45px;
    }
}

/* ==================== PWA INSTALL BANNER ==================== */
#pwa-install-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 30px);
    max-width: 500px;
    transition: bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#pwa-install-banner.show {
    bottom: 20px;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
}

.pwa-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.pwa-banner-icon img {
    width: 100%;
    height: 100%;
}

.pwa-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-banner-text strong {
    color: var(--text-bright);
    font-size: 0.9rem;
}

.pwa-banner-text span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-btn {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.pwa-install-btn:hover {
    background: var(--primary-light);
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}

.pwa-dismiss-btn:hover {
    color: var(--text-bright);
}
