/* ============================================
   TezAl.shop – Premium Auction Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #ff3b5c;
    --primary-dark: #e0223f;
    --primary-light: rgba(255, 59, 92, 0.12);
    --accent: #f0b90b;
    --accent-light: rgba(240, 185, 11, 0.15);
    --success: #00d68f;
    --success-light: rgba(0, 214, 143, 0.12);
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.85);
    --bg-glass: rgba(17, 24, 39, 0.6);
    --bg-input: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(255, 59, 92, 0.5);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --white: #ffffff;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 59, 92, 0.15);
    --shadow-gold: 0 0 20px rgba(240, 185, 11, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(20px);
}

[data-theme="light"] {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-input: #f8fafc;
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --gray-light: rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 6px;
}

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

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

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Container --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.header {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--text-primary);
}

.logo img {
    height: 28px;
    width: 28px;
    vertical-align: middle;
    margin-right: 6px;
}

/* Search */
.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
}

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

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 59, 92, 0.1);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.header-actions a:hover {
    background: var(--gray-light);
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

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

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
}

.btn-success:hover {
    box-shadow: 0 0 20px rgba(0, 214, 143, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
}

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

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 59, 92, 0.1);
}

.form-input.error {
    border-color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 5px;
}

.form-select {
    cursor: pointer;
    appearance: none;
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

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

/* --- Cards --- */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 18px;
}

.card-body {
    padding: 20px;
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: 20px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* --- Flash Messages --- */
.flash-message {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid transparent;
}

.flash-success {
    background: var(--success-light);
    color: var(--success);
    border-color: rgba(0, 214, 143, 0.2);
}

.flash-error {
    background: var(--primary-light);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

/* --- Mobile Navigation --- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-nav-item i {
    font-size: 22px;
    margin-bottom: 3px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary);
}

.mobile-nav-item.add-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    margin-top: -30px;
    box-shadow: 0 4px 20px rgba(255, 59, 92, 0.4);
}

.mobile-nav-item.add-btn i {
    font-size: 28px;
    margin: 0;
}

.mobile-nav-item.add-btn:hover {
    color: var(--white);
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(255, 59, 92, 0.5);
}

@media (max-width: 768px) {
    .search-box {
        display: none;
    }

    .header-actions a:not(.btn) {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    body {
        padding-bottom: 90px;
    }

    .logo {
        font-size: 20px;
    }
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 0;
    margin-top: 60px;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 48px 16px 24px;
}

.footer-brand {
    flex: 1 1 80px;
    min-width: 200px;
}

.footer-logo {
    height: 32px;
    width: 32px;
    vertical-align: middle;
    margin-right: 8px;
}

.footer-title {
    font-size: 22px;
    font-weight: 800;
    vertical-align: middle;
    color: var(--text-primary);
}

.footer-desc {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--text-muted);
}

.footer-links {
    flex: 1 1 80px;
    min-width: 160px;
}

.footer-links-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2.2;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 16px 0 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-credit {
    color: var(--accent);
    font-size: 13px;
    margin-top: 2px;
}

@media (max-width: 800px) {
    .footer-main {
        flex-direction: column;
        gap: 24px;
        padding: 32px 8px 16px;
    }
}

/* --- Section Title --- */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary);
}

/* --- Utilities --- */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-gray {
    color: var(--text-muted) !important;
}

.text-sm {
    font-size: 14px;
}

.text-lg {
    font-size: 18px;
}

.font-bold {
    font-weight: 700;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

.d-none { display: none !important; }

@media (max-width: 991.98px) {
    .d-lg-block { display: none !important; }
    .d-lg-none  { display: block !important; }
}

@media (min-width: 992px) {
    .d-lg-block { display: block !important; }
    .d-lg-none  { display: none !important; }
}

/* --- Animations --- */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes priceFlash {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        color: var(--success);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes priceUpdate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        color: var(--success);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 59, 92, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 59, 92, 0.6);
    }
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(255, 59, 92, 0.5);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes bidSuccess {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-in {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

.skeleton-card {
    height: 300px;
    border-radius: var(--radius);
}

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

.skeleton-text.short {
    width: 50%;
}

/* --- Error List --- */
.error-list {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 20px;
    list-style: none;
}

.error-list li {
    color: var(--danger);
    margin-left: 20px;
    font-size: 14px;
    list-style: disc;
}

/* === PAGE STYLES === */

/* --- Homepage: Sold Slider --- */
.sold-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 40px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.sold-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sold-title span {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.sold-slider {
    display: flex;
    gap: 20px;
    animation: slideLeft 20s linear infinite;
    width: max-content;
}

.sold-slider:hover {
    animation-play-state: paused;
}

.sold-card {
    flex-shrink: 0;
    width: 280px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sold-card:hover {
    border-color: rgba(0, 214, 143, 0.3);
    transform: scale(1.02);
}

.sold-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.sold-stamp {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 8px 30px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0, 214, 143, 0.4);
    z-index: 10;
    letter-spacing: 1px;
}

.sold-card-info {
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.sold-card-price {
    color: var(--success);
    font-size: 18px;
    font-weight: 800;
}

/* --- Homepage: Categories --- */
.categories-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.categories-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.category-chip:hover,
.category-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* --- Homepage: Listings Grid --- */
.listings-section {
    padding: 40px 0;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

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

@media (max-width: 1100px) {
    .listings-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 820px) {
    .listings-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
}
@media (max-width: 480px) {
    .listings-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
}

/* --- Listing Card --- */
.listing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    display: block;
}

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

.listing-card-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    display: block;
}

.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.listing-countdown {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.listing-countdown.urgent {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 0.5);
    animation: pulse 1.2s infinite;
}

.listing-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    padding: 50px 14px 14px;
    color: white;
}

.listing-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
}

.listing-current-price.updated {
    animation: priceFlash 0.5s ease;
}

.listing-bid-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 12px;
}

.listing-start-price {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.listing-start-price span {
    text-decoration: line-through;
}

/* Listing card body (search page variant) */
.listing-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.listing-card-body .listing-title {
    color: var(--text-primary);
    font-size: 15px;
}

.listing-card-body .listing-current-price {
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.listing-bid-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: var(--transition);
}

.listing-bid-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --- Listing Detail Page --- */
.listing-detail {
    padding: 30px 0;
}

.listing-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.main-image-container {
    position: relative;
    aspect-ratio: 4/3;
    background: #000;
    cursor: zoom-in;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.gallery-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 1;
}

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

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
}

.listing-title-detail {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.listing-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.listing-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Timer */
.timer-box {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 59, 92, 0.1));
    border: 1px solid var(--border-color);
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 20px;
}

.timer-box.expired {
    background: var(--bg-card);
    opacity: 0.6;
}

.timer-box.urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.3));
    border-color: rgba(239, 68, 68, 0.3);
    animation: glow 2s infinite;
}

.timer-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-value {
    font-size: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Price Box */
.price-box {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.08), rgba(255, 59, 92, 0.02));
    border: 1px solid rgba(255, 59, 92, 0.15);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.price-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.current-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.price-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.price-meta-item {
    text-align: center;
}

.price-meta-label {
    font-size: 12px;
    color: var(--text-muted);
}

.price-meta-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Bid Form */
.bid-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bid-input-group {
    flex: 1;
    position: relative;
}

.bid-input-group input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 20px;
    font-weight: 700;
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.bid-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 59, 92, 0.15);
}

.bid-input-group .currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
}

.bid-submit {
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.bid-submit:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.bid-submit:disabled {
    background: var(--gray);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.min-bid-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Bids List */
.bids-section {
    margin-top: 20px;
}

.bids-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.bid-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: slideUp 0.3s ease;
}

.bid-item.top {
    background: linear-gradient(135deg, rgba(0, 214, 143, 0.15), rgba(5, 150, 105, 0.1));
    border-color: rgba(0, 214, 143, 0.3);
}

.bid-item.mine {
    background: rgba(255, 59, 92, 0.08);
    border-color: rgba(255, 59, 92, 0.2);
}

.bid-user {
    font-weight: 600;
    color: var(--text-primary);
}

.bid-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.bid-item.top .bid-amount {
    color: var(--success);
}

.bid-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Description */
.description-section {
    margin-top: 0;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Seller */
.seller-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.seller-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.seller-name {
    font-weight: 600;
    color: var(--text-primary);
}

.seller-label {
    font-size: 12px;
    color: var(--text-muted);
}

.owner-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s;
}

.lightbox-controls {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 12px;
}

.lightbox-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* --- Search Page --- */
.search-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.search-header {
    margin-bottom: 30px;
}

.search-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.search-count {
    color: var(--text-muted);
}

.filters-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    backdrop-filter: var(--glass-blur);
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-range {
    display: flex;
    gap: 10px;
}

.price-range input {
    width: 100px;
}

.sort-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.sort-tabs::-webkit-scrollbar {
    display: none;
}

.sort-tab {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    font-size: 14px;
}

.sort-tab:hover,
.sort-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

/* --- Auth Pages --- */
.auth-container {
    max-width: 460px;
    margin: 60px auto;
    padding: 0 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.password-toggle {
    position: relative;
}

.password-toggle .toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
}

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

@media (max-width: 480px) {
    .auth-card {
        padding: 36px 24px;
    }
}

/* --- Profile Page --- */
.profile-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark), #7c1d35);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-phone {
    opacity: 0.85;
    font-size: 15px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 28px;
}

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

.stat-value {
    font-size: 28px;
    font-weight: 800;
}

.stat-label {
    font-size: 13px;
    opacity: 0.85;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.profile-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.profile-card-body {
    padding: 25px;
}

.logout-btn {
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .profile-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* --- My Bids Page --- */
.my-bids-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

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

.page-title {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.bid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.bid-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.bid-card.leading {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, rgba(0, 214, 143, 0.06), transparent);
}

.bid-card.outbid {
    border-left: 4px solid var(--danger);
}

.bid-card.accepted {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, rgba(0, 214, 143, 0.1), transparent);
}

.bid-card.rejected {
    opacity: 0.5;
}

.bid-info {
    flex: 1;
}

.bid-listing-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.bid-listing-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.bid-listing-title a:hover {
    color: var(--primary);
}

.bid-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.bid-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bid-amounts {
    display: flex;
    gap: 30px;
    align-items: center;
}

.amount-box {
    text-align: center;
}

.amount-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-value {
    font-size: 20px;
    font-weight: 700;
}

.amount-value.my-bid {
    color: var(--primary);
}

.amount-value.highest {
    color: var(--success);
}

.bid-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.bid-status-badge.leading {
    background: rgba(0, 214, 143, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 214, 143, 0.3);
}

.bid-status-badge.outbid {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.bid-status-badge.accepted {
    background: rgba(0, 214, 143, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 214, 143, 0.3);
}

.bid-status-badge.rejected {
    background: rgba(107, 114, 128, 0.15);
    color: var(--gray);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.bid-status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.bid-countdown {
    background: var(--bg-secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.bid-countdown.urgent {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
    animation: pulse 1s infinite;
}

@media (max-width: 768px) {
    .bid-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .bid-amounts {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}

/* --- My Listings Page --- */
.my-listings-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.listing-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    display: flex;
    transition: var(--transition);
}

.listing-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.listing-item-image {
    width: 180px;
    height: 140px;
    flex-shrink: 0;
}

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

.listing-item-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.listing-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.listing-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.listing-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.listing-item-title a:hover {
    color: var(--primary);
}

.listing-item-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

.listing-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.listing-status.active {
    background: rgba(0, 214, 143, 0.15);
    color: var(--success);
}

.listing-status.sold {
    background: var(--primary-light);
    color: var(--primary);
}

.listing-status.expired {
    background: rgba(107, 114, 128, 0.15);
    color: var(--gray);
}

.listing-item-prices {
    display: flex;
    gap: 30px;
    margin-top: auto;
}

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

.price-item .price-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.price-item .price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.listing-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

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

    .listing-item-image {
        width: 100%;
        height: 180px;
    }
}

/* --- Create Listing Page --- */
.create-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 20px;
}

.create-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    backdrop-filter: var(--glass-blur);
}

.create-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-primary);
}

.char-counter {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 5px;
}

.char-counter.limit {
    color: var(--danger);
}

.image-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-input);
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(255, 59, 92, 0.05);
}

.image-upload-area i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

.image-upload-area h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.image-upload-area p {
    color: var(--text-muted);
    font-size: 14px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.image-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 9999;
}

/* Listings Enhancements */
.listing-card-body {
    padding: 15px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    border-top: 1px solid var(--border-color);
}

.listing-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f8fafc;
}

.listing-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.listing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

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

.listing-badge-top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.listing-badge-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.listing-badge-bottom-left {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 10;
}

.listing-badge-bottom-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

.badge-pro {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(245,158,11,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-location {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-stat {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.listing-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 41px;
    word-break: break-word;
}

.listing-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.listing-card-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: var(--warning);
}

.listing-card-timer.urgent {
    color: var(--danger);
    animation: pulseText 1s infinite alternate;
}

.listing-prices {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.price-market {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.listing-card-overlay, .listing-location-badge, .listing-meta-row {
    display: none; /* Hide old elements */
}

.image-preview .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.image-preview .remove-btn:hover {
    transform: scale(1.1);
}

.price-input-group {
    position: relative;
}

.price-input-group input {
    padding-right: 50px;
}

.price-input-group .currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-item {
    flex: 1;
    min-width: 80px;
}

.radio-item input {
    display: none;
}

.radio-item label {
    display: block;
    padding: 15px;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-secondary);
}

.radio-item input:checked+label {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.radio-item label:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .create-card {
        padding: 28px 20px;
    }

    .image-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Responsive: Listing Grid --- */
@media (max-width: 1200px) {
    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sold-card {
        width: 220px;
    }

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

    .listing-countdown {
        font-size: 10px;
        padding: 4px 8px;
    }

    .listing-current-price {
        font-size: 15px;
    }

    .listing-title {
        font-size: 12px;
    }

    .listing-card-overlay {
        padding: 30px 10px 10px;
    }
}

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

@media (max-width: 480px) {
    .timer-value {
        font-size: 22px;
    }

    .current-price {
        font-size: 32px;
    }

    .bid-form {
        flex-direction: column;
    }
}

/* Search page listing grid override */
@media (max-width: 1200px) {
    .search-container .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .search-container .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .search-container .listings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.search-container .listing-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HERO SECTION – Animated Premium Banner
   ============================================ */
.hero-section {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a0520 30%, #0f1629 60%, #0a1628 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(255, 59, 92, 0.15), transparent),
        radial-gradient(ellipse 500px 300px at 80% 30%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(ellipse 400px 300px at 60% 80%, rgba(240, 185, 11, 0.08), transparent);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.7;
        filter: hue-rotate(0deg);
    }

    100% {
        opacity: 1;
        filter: hue-rotate(15deg);
    }
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 59, 92, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles .particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    background: rgba(255, 255, 255, var(--opacity));
    border-radius: 50%;
    animation: particleFloat var(--duration) ease-in-out var(--delay) infinite alternate;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: var(--opacity, 0.3);
    }

    50% {
        transform: translate(30px, -40px) scale(1.5);
        opacity: calc(var(--opacity, 0.3) * 1.5);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.8);
        opacity: var(--opacity, 0.3);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    animation: slideDown 0.6s ease;
}

.hero-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
    animation: slideUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -1px;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.6;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: slideUp 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn {
    padding: 18px 36px !important;
    font-size: 17px !important;
    border-radius: 14px !important;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 40px;
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 380px;
    }

    .hero-content {
        padding: 40px 16px;
    }

    .hero-stats {
        padding: 16px 24px;
        gap: 16px;
    }

    .hero-stat-value {
        font-size: 22px;
    }

    .hero-btn {
        padding: 14px 28px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   ENHANCED BODY BACKGROUND
   ============================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 10% 20%, rgba(255, 59, 92, 0.04), transparent),
        radial-gradient(ellipse 600px 500px at 90% 80%, rgba(99, 102, 241, 0.03), transparent);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   ENHANCED CARD EFFECTS
   ============================================ */
.listing-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.listing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 59, 92, 0.08);
}

.sold-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sold-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 214, 143, 0.1);
}

/* Category chip enhanced */
.category-chip {
    padding: 10px 20px;
    font-size: 15px;
    backdrop-filter: blur(10px);
}

/* Bid card enhanced hover */
.bid-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Listing item enhanced */
.listing-item {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.listing-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Auth card enhanced */
.auth-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-card::before {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--success), var(--primary));
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Profile header enhanced */
.profile-header {
    box-shadow: 0 20px 60px rgba(255, 59, 92, 0.2);
}

/* Info card enhanced */
.info-card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Price box glow */
.price-box {
    box-shadow: 0 0 40px rgba(255, 59, 92, 0.08);
}

/* Timer enhanced */
.timer-box.urgent {
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.2);
}

/* Create card enhanced */
.create-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Filters bar enhanced */
.filters-bar {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ══════════════════════════════════════
   UNIVERSAL DARK/LIGHT THEME VARS
   style.css SONUNA əlavə et
   ══════════════════════════════════════ */

:root, [data-theme="dark"] {
    --s:    rgba(255,255,255,.04);
    --s2:   rgba(255,255,255,.07);
    --bd:   rgba(255,255,255,.1);
    --dm:   rgba(255,255,255,.45);
    --mid:  rgba(255,255,255,.75);
    --bg-body: #0a0e1a;
    --card-bg: #111827;
    --bg-input: rgba(255,255,255,.06);
    --text-color: #f1f5f9;
    --text-muted: #64748b;
    --border-color: rgba(255,255,255,.08);
}

[data-theme="light"] {
    --s:    rgba(0,0,0,.03);
    --s2:   rgba(0,0,0,.055);
    --bd:   rgba(0,0,0,.12);
    --dm:   rgba(0,0,0,.5);
    --mid:  rgba(0,0,0,.8);
    --bg-body: #f1f5f9;
    --card-bg: #ffffff;
    --bg-input: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0,0,0,.1);
}

/* Auth pages */
[data-theme="light"] .auth-pg    { background: #f1f5f9; }
[data-theme="light"] .auth-card  { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 4px 32px rgba(0,0,0,.08); }
[data-theme="light"] .auth-card::before { background: radial-gradient(circle,rgba(249,115,22,.06),transparent 70%); }
[data-theme="light"] .auth-title,
[data-theme="light"] .auth-logo-text  { color: #0f172a; }
[data-theme="light"] .auth-sub   { color: #64748b; }
[data-theme="light"] .auth-label { color: #475569; }
[data-theme="light"] .finp {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
[data-theme="light"] .finp:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249,115,22,.12) !important;
    background: #fff !important;
}
[data-theme="light"] .finp::placeholder { color: #94a3b8 !important; }
[data-theme="light"] .pw-toggle-btn { color: #94a3b8; }

/* Profile, my-listings, my-bids pages */
[data-theme="light"] .dashboard-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .info-card,
[data-theme="light"] .listing-card { background: #fff; border-color: rgba(0,0,0,.08); }

[data-theme="light"] .listing-card-title { color: #0f172a; }
[data-theme="light"] .listing-card-body  { background: #fff; }

/* Terms/Privacy/Qaydalar pages */
[data-theme="light"] .legal-section,
[data-theme="light"] .prv-section,
[data-theme="light"] .rule-card {
    background: #fff;
    border-color: rgba(0,0,0,.08);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
[data-theme="light"] .legal-section-title,
[data-theme="light"] .rule-title,
[data-theme="light"] .prv-section h3 { color: #0f172a; }
[data-theme="light"] .legal-text,
[data-theme="light"] .rule-desc,
[data-theme="light"] .prv-section p { color: #475569; }

/* Referral page */
[data-theme="light"] .ref-card     { background: #fff; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .ref-stat-card{ background: #fff; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .ref-how-title{ color: #0f172a; }
[data-theme="light"] .ref-link-input{
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

/* my-bids, my-listings tables */
[data-theme="light"] table,
[data-theme="light"] .table-wrap { background: #fff; }
[data-theme="light"] th { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
[data-theme="light"] td { color: #334155; border-color: #f1f5f9; }
[data-theme="light"] tr:hover td { background: #f8fafc; }






/* ════════════════════════════════════════════════════════════
   TezAl.az — Universal Dark / Light Theme Overrides
   Bu CSS-i /assets/css/style.css faylının SONUNA əlavə et
   ════════════════════════════════════════════════════════════ */

/* ══════════════════════
   DARK MODE (default)
   ══════════════════════ */
:root,
[data-theme="dark"] {
    --bg-primary:   #0a0e1a;
    --bg-secondary: #111827;
    --bg-card:      rgba(17,24,39,0.85);
    --bg-glass:     rgba(17,24,39,0.6);
    --bg-input:     rgba(255,255,255,0.06);
    --border-color: rgba(255,255,255,0.08);
    --text-primary: #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:   #64748b;
    /* login/register custom vars */
    --s:    rgba(255,255,255,0.04);
    --s2:   rgba(255,255,255,0.07);
    --bd:   rgba(255,255,255,0.1);
    --dm:   rgba(255,255,255,0.45);
    --mid:  rgba(255,255,255,0.75);
    --ac:   #f97316;
    --acs:  rgba(249,115,22,0.1);
    --acb:  rgba(249,115,22,0.25);
}

/* ══════════════════════
   LIGHT MODE
   ══════════════════════ */
[data-theme="light"] {
    --bg-primary:    #f1f5f9;
    --bg-secondary:  #e2e8f0;
    --bg-card:       #ffffff;
    --bg-glass:      rgba(255,255,255,0.92);
    --bg-input:      #f8fafc;
    --border-color:  rgba(0,0,0,0.1);
    --text-primary:  #0f172a;
    --text-secondary:#334155;
    --text-muted:    #64748b;
    /* login/register custom vars — KEY FIX */
    --s:    rgba(0,0,0,0.03);
    --s2:   rgba(0,0,0,0.05);
    --bd:   rgba(0,0,0,0.12);
    --dm:   rgba(0,0,0,0.5);
    --mid:  rgba(0,0,0,0.8);
    --ac:   #f97316;
    --acs:  rgba(249,115,22,0.1);
    --acb:  rgba(249,115,22,0.25);
}

/* ══ Body ══ */
[data-theme="light"] body {
    background: #f1f5f9;
    color: #0f172a;
}

/* ══ Header ══ */
[data-theme="light"] .header {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .header .logo,
[data-theme="light"] .header a { color: #1e293b; }
[data-theme="light"] .header a:hover { color: #f97316; }
[data-theme="light"] .search-box {
    background: #f1f5f9;
    border: 1.5px solid rgba(0,0,0,0.1);
}
[data-theme="light"] .search-box input { color: #0f172a; }
[data-theme="light"] .search-box input::placeholder { color: #94a3b8; }
[data-theme="light"] .search-box i { color: #94a3b8; }

/* ══ AUTH PAGES (login.php, register.php) — CRITICAL FIX ══ */
[data-theme="light"] .auth-pg { background: #f1f5f9; }
[data-theme="light"] .auth-card {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}
[data-theme="light"] .auth-card::before {
    background: radial-gradient(circle, rgba(249,115,22,0.06), transparent 70%) !important;
}
/* Logo text */
[data-theme="light"] .auth-card .auth-logo-text,
[data-theme="light"] .auth-card h1,
[data-theme="light"] .auth-card .auth-title { color: #0f172a !important; }
[data-theme="light"] .auth-card .auth-sub,
[data-theme="light"] .auth-card p { color: #64748b; }
[data-theme="light"] .auth-card label,
[data-theme="light"] .auth-card .auth-label { color: #475569 !important; }
/* Input fields — .finp class (login uses this) */
[data-theme="light"] .finp,
[data-theme="light"] .auth-card .finp {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
[data-theme="light"] .finp:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12) !important;
    background: #ffffff !important;
}
[data-theme="light"] .finp::placeholder { color: #94a3b8 !important; }
/* Password toggle button */
[data-theme="light"] .pw-toggle-btn,
[data-theme="light"] .toggle-btn { color: #94a3b8 !important; background: transparent !important; }
[data-theme="light"] .pw-toggle-btn:hover,
[data-theme="light"] .toggle-btn:hover { color: #f97316 !important; }
/* Error list */
[data-theme="light"] .error-list,
[data-theme="light"] .auth-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
[data-theme="light"] .auth-footer { color: #64748b; }
[data-theme="light"] .auth-footer a { color: #f97316; }
/* Checkbox */
[data-theme="light"] .auth-card .form-checkbox label { color: #475569; }
/* Remember me */
[data-theme="light"] .auth-card .text-gray,
[data-theme="light"] .auth-card small { color: #94a3b8; }
/* Forgot password link */
[data-theme="light"] .auth-card .forgot-link { color: #f97316; }

/* ══ FORM INPUTS (all pages) ══ */
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
    background: #ffffff;
}
[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder { color: #94a3b8; }
[data-theme="light"] .form-input:disabled,
[data-theme="light"] .form-select:disabled { background: #e2e8f0; color: #64748b; }
[data-theme="light"] .form-label { color: #475569; }
[data-theme="light"] .form-hint,
[data-theme="light"] .text-gray { color: #94a3b8; }

/* ══ CARDS ══ */
[data-theme="light"] .listing-card,
[data-theme="light"] .profile-card,
[data-theme="light"] .dashboard-card,
[data-theme="light"] .info-card,
[data-theme="light"] .bids-section {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .listing-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    border-color: rgba(249,115,22,0.3);
}
[data-theme="light"] .listing-card-body { background: #ffffff; }
[data-theme="light"] .listing-card-title { color: #0f172a; }
[data-theme="light"] .listing-card-timer {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}
[data-theme="light"] .listing-card-timer.urgent {
    background: #fef2f2; border-color: #fecaca; color: #991b1b;
}

/* ══ PROFILE PAGE ══ */
[data-theme="light"] .profile-container { background: transparent; }
[data-theme="light"] .profile-header {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .profile-name  { color: #0f172a; }
[data-theme="light"] .profile-phone { color: #64748b; }
[data-theme="light"] .profile-card  {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .profile-card-header { color: #0f172a; border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .stat-item .stat-value { color: #0f172a; }
[data-theme="light"] .stat-item .stat-label { color: #64748b; }
/* Table inside profile */
[data-theme="light"] .profile-card table td { color: #334155; border-color: #f1f5f9; }

/* ══ MY LISTINGS / MY BIDS ══ */
[data-theme="light"] .my-listings-container,
[data-theme="light"] .my-bids-container { background: transparent; }
[data-theme="light"] .section-title { color: #0f172a; }
[data-theme="light"] .listing-item,
[data-theme="light"] .bid-item-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .listing-item:hover,
[data-theme="light"] .bid-item-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ══ SEARCH PAGE ══ */
[data-theme="light"] .search-results { background: transparent; }
[data-theme="light"] .search-filters {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .filter-section-title { color: #0f172a; }

/* ══ CREATE LISTING ══ */
[data-theme="light"] .create-listing-container { background: transparent; }
[data-theme="light"] .create-section {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .create-section-title { color: #0f172a; border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .upload-zone {
    background: #f8fafc;
    border-color: #e2e8f0;
}
[data-theme="light"] .upload-zone:hover { border-color: #f97316; background: #fff7ed; }
[data-theme="light"] .upload-zone-text { color: #64748b; }

/* ══ LISTING DETAIL (listing.php) ══ */
[data-theme="light"] .listing-detail { background: transparent; }
[data-theme="light"] .listing-title-detail { color: #0f172a; }
[data-theme="light"] .listing-meta span { color: #64748b; }
[data-theme="light"] .description-section { border-top-color: rgba(0,0,0,0.08); }
[data-theme="light"] .description-content { color: #334155; }
[data-theme="light"] .section-title { color: #0f172a; }
[data-theme="light"] .info-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .bid-item {
    background: #f8fafc;
    border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .bid-item.top { background: rgba(249,115,22,0.06); border-color: rgba(249,115,22,0.2); }
[data-theme="light"] .bid-item.mine { background: rgba(59,130,246,0.06); }
[data-theme="light"] .bid-user  { color: #0f172a; }
[data-theme="light"] .bid-time  { color: #64748b; }
[data-theme="light"] .seller-info { background: #f8fafc; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .seller-name { color: #0f172a; }
[data-theme="light"] .seller-label { color: #64748b; }
[data-theme="light"] .price-box { border-color: rgba(249,115,22,0.2); }
[data-theme="light"] .price-label { color: #64748b; }
[data-theme="light"] .price-meta-label { color: #64748b; }
[data-theme="light"] .price-meta-value { color: #334155; }
[data-theme="light"] .bid-form .bid-input-group input {
    background: #f8fafc; border-color: #e2e8f0; color: #0f172a;
}
[data-theme="light"] .min-bid-hint { color: #64748b; }
[data-theme="light"] .gallery-section { background: #ffffff; border-radius: 14px; }
[data-theme="light"] .gallery-thumb { border-color: transparent; }
[data-theme="light"] .gallery-thumb.active { border-color: #f97316; }
[data-theme="light"] .features-meta {
    background: rgba(59,130,246,0.04) !important;
    border-color: rgba(59,130,246,0.1) !important;
}

/* ══ MANAGE LISTING ══ */
[data-theme="light"] .manage-listing-container { background: transparent; }
[data-theme="light"] .manage-section {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ══ LEGAL PAGES (terms, qaydalar, privacy) ══ */
[data-theme="light"] .legal-section,
[data-theme="light"] .prv-section,
[data-theme="light"] .rule-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .legal-section-title,
[data-theme="light"] .rule-title { color: #0f172a; }
[data-theme="light"] .legal-text,
[data-theme="light"] .rule-desc { color: #475569; }
[data-theme="light"] .prv-section h3 { color: #0f172a; }
[data-theme="light"] .prv-section p,
[data-theme="light"] .prv-section ul { color: #475569; }

/* ══ REFERRAL PAGE ══ */
[data-theme="light"] .ref-card,
[data-theme="light"] .ref-stat-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .ref-how-title { color: #0f172a; }
[data-theme="light"] .ref-how-desc  { color: #64748b; }
[data-theme="light"] .ref-link-input {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}
[data-theme="light"] .ref-stat-val  { color: #0f172a; }
[data-theme="light"] .ref-list-name { color: #0f172a; }
[data-theme="light"] .ref-list-date { color: #64748b; }
[data-theme="light"] .ref-card-title { color: #0f172a; }
[data-theme="light"] .ref-how-item  { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ref-list-item { border-bottom-color: rgba(0,0,0,0.06); }

/* ══ MY FAVORITES ══ */
[data-theme="light"] .fav-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .fav-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
[data-theme="light"] .fav-card-title { color: #0f172a; }
[data-theme="light"] .fav-card-img   { background: #f1f5f9; }
[data-theme="light"] .fav-page-title { color: #0f172a; }

/* ══ MOBILE NAV ══ */
[data-theme="light"] .mobile-nav,
[data-theme="light"] .mob-bottom-nav {
    background: rgba(255,255,255,0.97) !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .mobile-nav-item,
[data-theme="light"] .mob-bn-item { color: #94a3b8 !important; }
[data-theme="light"] .mobile-nav-item.active,
[data-theme="light"] .mob-bn-item.active,
[data-theme="light"] .mobile-nav-item:hover,
[data-theme="light"] .mob-bn-item:hover { color: #f97316 !important; }

/* ══ HERO SECTION — always dark (index.php) ══ */
/* Hero section is forced dark regardless of theme */
.idx-hero,
.hero-section {
    background: linear-gradient(160deg,#0d1220 0%,#161d35 50%,#0d1220 100%) !important;
}

/* ══ FLASH MESSAGES ══ */
[data-theme="light"] .flash-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
[data-theme="light"] .flash-error   { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
[data-theme="light"] .flash-info    { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }
[data-theme="light"] .flash-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }

/* ══ TABLES (admin + profile) ══ */
[data-theme="light"] th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom-color: #e2e8f0 !important;
}
[data-theme="light"] td {
    color: #334155;
    border-bottom-color: #f1f5f9;
}
[data-theme="light"] tr:hover td { background: #f8fafc !important; }

/* ══ DROPDOWNS ══ */
[data-theme="light"] .dropdown-menu,
[data-theme="light"] .share-menu,
[data-theme="light"] #shareMenu {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}
[data-theme="light"] .dropdown-menu a,
[data-theme="light"] .share-menu a,
[data-theme="light"] #shareMenu a { color: #0f172a !important; }
[data-theme="light"] .dropdown-menu a:hover,
[data-theme="light"] .share-menu a:hover,
[data-theme="light"] #shareMenu a:hover { background: #f1f5f9 !important; }

/* ══ REACTIVATE / BUY EXTRA ══ */
[data-theme="light"] .reactivate-container,
[data-theme="light"] .buy-extra-container { background: transparent; }
[data-theme="light"] .payment-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}








/* ══════════════════════════════════════════════════════════════════════════
   UNIFIED LISTING CARD (.lc-unified) - used everywhere
   ══════════════════════════════════════════════════════════════════════════ */
.lc-unified {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}
.lc-unified:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.lc-unified.lcu-premium {
    border-color: rgba(139,92,246,.3);
    box-shadow: 0 2px 12px rgba(139,92,246,.1);
}
.lc-unified.lcu-vip {
    border-color: rgba(251,191,36,.3);
    box-shadow: 0 2px 12px rgba(251,191,36,.08);
}
.lcu-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-secondary);
}
/* Skeleton shimmer animation while image loads */
.lcu-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        110deg,
        var(--bg-secondary) 0%,
        var(--bg-secondary) 30%,
        rgba(255,255,255,.08) 50%,
        var(--bg-secondary) 70%,
        var(--bg-secondary) 100%
    );
    background-size: 250% 100%;
    animation: lcuShimmer 1.6s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    transition: opacity .3s;
}
[data-theme="light"] .lcu-img::before {
    background: linear-gradient(
        110deg,
        #e5e7eb 0%,
        #e5e7eb 30%,
        #f3f4f6 50%,
        #e5e7eb 70%,
        #e5e7eb 100%
    );
    background-size: 250% 100%;
    animation: lcuShimmer 1.6s ease-in-out infinite;
}
.lcu-img.loaded::before {
    opacity: 0;
}
@keyframes lcuShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.lcu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s, opacity .4s;
    opacity: 0;
    position: relative;
    z-index: 0;
}
.lcu-img.loaded img {
    opacity: 1;
}
.lc-unified:hover .lcu-img img { transform: scale(1.04); }

/* Badges */
.lcu-badge {
    position: absolute;
    top: 8px; left: 8px;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.lcu-badge-premvip { background: linear-gradient(135deg,#8b5cf6,#f97316); color:#fff; }
.lcu-badge-premium { background: linear-gradient(135deg,#8b5cf6,#7c3aed); color:#fff; }
.lcu-badge-vip     { background: linear-gradient(135deg,#fbbf24,#f59e0b); color:#000; }
.lcu-badge-boost   { background: rgba(249,115,22,.92); color:#fff; }

/* Location */
.lcu-loc {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 2;
}
/* Views */
.lcu-views {
    position: absolute;
    bottom: 7px; right: 8px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3px;
}
/* Body */
.lcu-body {
    padding: 10px 12px 12px;
}
.lcu-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 37px;
    word-break: break-word;
}
.lcu-price {
    font-size: 15px;
    font-weight: 800;
    color: #f97316;
    margin-bottom: 4px;
}
.lcu-date {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}
[data-theme="light"] .lcu-title { color: #0f172a; }
