:root {
    --sidebar-width: 280px;
    --header-height: 80px;
    --sidebar-bg: rgba(16, 16, 16, 0.95);
    --dark-bg: #121212;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: 100%;
}

.dashboard-main {
    background-color: var(--dark-gray);
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    gap: 30px;
    position: relative;
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid rgba(212, 175, 55, 0.1);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    z-index: 90;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

.dashboard-section-container {
    transition: opacity 0.2s ease;
}

.sidebar-user {
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 50px) 25px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    margin-right: 15px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--white);
    font-weight: 600;
}

.user-status {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: var(--light-gray);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin-right: 8px;
    display: inline-block;
}

.status-dot.active {
    background-color: var(--gold);
}

.sidebar-toggle {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(16, 16, 16, 0.7);
    border: 1px solid var(--gold);
    color: var(--gold);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 96;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle.active {
    left: calc(var(--sidebar-width) - 20px);
}

.sidebar-toggle i {
    pointer-events: none;
}

.sidebar-nav {
    flex: 1;
}

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

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--light-gray);
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.sidebar-nav li.active a {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

.sidebar-nav i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.nav-badge {
    position: absolute;
    right: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 1.2rem;
    border-radius: 20px;
    padding: 2px 8px;
    min-width: 24px;
    text-align: center;
}

.nav-badge.new {
    background-color: var(--gold);
    color: var(--dark-bg);
}

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.btn-block {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-footer i {
    margin-right: 10px;
}

.dashboard-content {
    flex: 1;
    margin-left: var(--sidebar-width);
}

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

.dashboard-welcome h2 {
    font-size: 2.8rem;
    margin-bottom: 5px;
}

.last-login {
    color: var(--light-gray);
    font-size: 1.4rem;
}

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

.stat-card {
    background-color: rgba(16, 16, 16, 0.8);
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 2.4rem;
    color: var(--white);
}

.stat-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.stat-change {
    font-size: 1.2rem;
    color: var(--light-gray);
}

.stat-change.positive {
    color: #4CAF50;
}

.stat-change.negative {
    color: #FF5252;
}

.dashboard-section {
    background-color: rgba(16, 16, 16, 0.8);
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
}

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

.view-all {
    color: var(--gold);
    font-size: 1.3rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.view-all:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.activity-timeline {
    position: relative;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 110px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.activity-item {
    display: flex;
    margin-bottom: 25px;
    position: relative;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-date {
    width: 100px;
    margin-right: 20px;
    text-align: right;
    flex-shrink: 0;
}

.activity-date .date {
    display: block;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 3px;
}

.activity-date .time {
    display: block;
    font-size: 1.2rem;
    color: var(--light-gray);
}

.activity-content {
    flex: 1;
    display: flex;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px rgba(16, 16, 16, 0.8);
}

.activity-icon i {
    color: var(--white);
    font-size: 1.4rem;
}

.activity-icon.outbid {
    background-color: #FF5252;
}

.activity-icon.bid-placed {
    background-color: var(--gold);
}

.activity-icon.message {
    background-color: #2196F3;
}

.activity-icon.listing-added {
    background-color: #4CAF50;
}

.activity-details {
    flex: 1;
}

.activity-details h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.activity-details p {
    font-size: 1.4rem;
    color: var(--light-gray);
    margin-bottom: 15px;
}

.activity-details strong {
    color: var(--gold);
    font-weight: 600;
}

.activity-actions {
    display: flex;
    gap: 10px;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.column {
    margin-bottom: 0;
}

.bids-list,
.listings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bid-item,
.listing-item {
    display: flex;
    background-color: rgba(10, 10, 10, 0.4);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bid-item:hover,
.listing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.bid-image,
.listing-image {
    width: 120px;
    height: 90px;
    position: relative;
    flex-shrink: 0;
}

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

.bid-status,
.listing-badge {
    position: absolute;
    top: 10px;
    left: 0;
    padding: 3px 10px;
    font-size: 1.1rem;
    color: var(--white);
    border-radius: 0 4px 4px 0;
    text-transform: uppercase;
    font-weight: 600;
}

.bid-status.winning {
    background-color: #4CAF50;
}

.bid-status.outbid {
    background-color: #FF5252;
}

.listing-badge.active {
    background-color: #2196F3;
}

.listing-badge.featured {
    background-color: var(--gold);
}

.listing-badge.ending {
    background-color: #FF5252;
}

.bid-details,
.listing-details {
    flex: 1;
    padding: 15px;
}

.bid-details h4,
.listing-details h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bid-info,
.listing-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.bid-amount,
.listing-price {
    font-weight: 600;
    color: var(--gold);
}

.bid-time,
.listing-bids {
    color: var(--light-gray);
}

.listing-actions {
    display: flex;
    gap: 10px;
}

@media screen and (max-width: 1200px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media screen and (max-width: 992px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 95;
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .dashboard-sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: var(--sidebar-width);
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        backdrop-filter: blur(2px);
    }

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

    .dashboard-content {
        padding: 0 20px;
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .sidebar-toggle.active {
        transform: rotate(90deg);
    }

    .sidebar-nav a {
        transition: all 0.3s ease;
    }

    .sidebar-nav li.active a {
        transition: all 0.3s ease;
    }
}

@media screen and (max-width: 768px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .activity-content {
        flex-direction: column;
    }

    .activity-icon {
        margin-bottom: 10px;
    }

    .activity-timeline::before {
        left: 18px;
    }

    .activity-date {
        width: auto;
        text-align: left;
        margin-bottom: 10px;
    }

    .activity-item {
        flex-direction: column;
    }

    .bid-item,
    .listing-item {
        flex-direction: column;
    }

    .bid-image,
    .listing-image {
        width: 100%;
        height: 140px;
    }

    .dashboard-welcome h2 {
        font-size: 2.2rem;
    }

    .last-login {
        font-size: 1.2rem;
    }

    .stats-overview {
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .dashboard-section {
        padding: 20px;
    }

    .bid-amount-group {
        min-width: 0;
        flex: 1;
    }

    .bid-amount-value {
        font-size: 1.3rem;
    }

    .bids-per-page-input {
        min-width: 60px;
    }

    .bids-per-page-input input {
        width: 60px;
        font-size: 1.1rem;
        padding: 6px 8px;
    }
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-mini {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold);
}

.username {
    display: inline-block;
}

.btn-sm {
    padding: 0.7rem 1.5rem;
    font-size: 1.2rem;
}


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

.section-header-main h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.section-header-main h2 i {
    color: var(--gold);
    margin-right: 12px;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box-small {
    position: relative;
    min-width: 250px;
}

.search-box-small input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: var(--white);
    font-size: 1.4rem;
}

.search-box-small input::placeholder {
    color: var(--light-gray);
}

.search-box-small i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-gray);
    pointer-events: none;
}

.bid-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bid-stat-card {
    background: rgba(16, 16, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.winning {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: var(--white);
}

.stat-icon.outbid {
    background: linear-gradient(135deg, #FF5252, #e53935);
    color: var(--white);
}

.stat-icon.won {
    background: linear-gradient(135deg, var(--gold), #d4af37);
    color: var(--dark-bg);
}

.stat-icon.active {
    background: linear-gradient(135deg, #2196F3, #1976d2);
    color: var(--white);
}

.stat-icon.ending {
    background: linear-gradient(135deg, #FF9800, #f57c00);
    color: var(--white);
}

.stat-icon.ended {
    background: linear-gradient(135deg, #757575, #616161);
    color: var(--white);
}

.stat-icon.total {
    background: linear-gradient(135deg, #2196F3, #1976d2);
    color: var(--white);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number,
.stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    white-space: nowrap;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.bid-filters {
    background: rgba(10, 10, 10, 0.6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.bid-category-dropdown,
.bid-sort-dropdown {
    position: relative;
    min-width: 160px;
    user-select: none;
    z-index: 100;
}

.bid-category-dropdown .dropdown-selected,
.bid-sort-dropdown .dropdown-selected {
    background-color: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    padding: 8px 30px 8px 12px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.bid-category-dropdown .dropdown-selected:hover,
.bid-sort-dropdown .dropdown-selected:hover {
    border-color: var(--gold);
    background-color: rgba(25, 25, 25, 0.85);
}

.bid-category-dropdown .dropdown-arrow,
.bid-sort-dropdown .dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    pointer-events: none;
    transition: transform 0.3s ease;
    transform: translateY(-50%) rotate(45deg);
}

.bid-category-dropdown.open .dropdown-arrow,
.bid-sort-dropdown.open .dropdown-arrow {
    transform: translateY(-30%) rotate(-135deg);
}

.bid-category-dropdown .dropdown-options,
.bid-sort-dropdown .dropdown-options {
    position: fixed;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(-10px);
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.bid-category-dropdown.open {
    z-index: 10002;
}

.bid-category-dropdown.open .dropdown-options {
    z-index: 10003;
}

.bid-sort-dropdown.open {
    z-index: 10000;
}

.bid-sort-dropdown.open .dropdown-options {
    z-index: 10001;
}

.bid-category-dropdown .dropdown-options,
.bid-sort-dropdown .dropdown-options {
    z-index: 9999;
}

.bid-category-dropdown.open .dropdown-options,
.bid-sort-dropdown.open .dropdown-options {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.bid-category-dropdown .dropdown-option,
.bid-sort-dropdown .dropdown-option {
    padding: 10px 12px;
    cursor: pointer;
    color: var(--light-gray);
    transition: all 0.2s ease;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bid-category-dropdown .dropdown-option:last-child,
.bid-sort-dropdown .dropdown-option:last-child {
    border-bottom: none;
}

.bid-category-dropdown .dropdown-option:hover,
.bid-sort-dropdown .dropdown-option:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.bid-category-dropdown .dropdown-option.selected,
.bid-sort-dropdown .dropdown-option.selected {
    color: var(--gold);
    font-weight: 600;
    background-color: rgba(212, 175, 55, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 1.3rem;
    color: var(--light-gray);
    font-weight: 600;
    white-space: nowrap;
}

.filter-tabs {
    display: flex;
    gap: 5px;
}

.filter-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: var(--light-gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--white);
}

.filter-tab.active {
    background: var(--gold);
    color: var(--dark-bg);
    font-weight: 600;
}

.filter-select option {
    background: var(--dark-bg);
    color: var(--white);
}

.my-bids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    position: relative;
    min-height: 200px;
    transition: height 0.5s ease;
}

.my-bids-grid:has(.bids-empty-state) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-bids-grid.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-columns: none;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(25, 25, 25, 0.7);
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.empty-state:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.empty-state:hover .empty-state-icon {
    transform: scale(1.2);
}

.my-bid-card {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(20, 20, 20, 0.7));
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.my-bid-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
}

.bid-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.bid-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.my-bid-card:hover .bid-card-image {
    transform: scale(1.05);
}

.bid-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bid-status-badge.winning {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: var(--white);
}

.bid-status-badge.outbid {
    background: linear-gradient(135deg, #FF5252, #e53935);
    color: var(--white);
    animation: pulse 2s infinite;
}

.bid-status-badge.ending {
    background: linear-gradient(135deg, #FF9800, #f57c00);
    color: var(--white);
    animation: pulse 1.5s infinite;
}

.bid-status-badge.won {
    background: linear-gradient(135deg, var(--gold), #d4af37);
    color: var(--dark-bg);
}

.bid-status-badge.lost {
    background: linear-gradient(135deg, #757575, #616161);
    color: var(--white);
}

.bid-card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.bid-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.bid-action-btn:hover {
    background: var(--gold);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.time-remaining {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.time-remaining.urgent {
    background: rgba(255, 82, 82, 0.9);
}

.bid-card-content {
    padding: 20px;
}

.bid-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bid-card-category {
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.bid-amounts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.bid-amount-group {
    text-align: center;
}

.bid-amount-label {
    font-size: 1rem;
    color: var(--light-gray);
    margin-bottom: 4px;
}

.bid-amount-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bid-amount-value.your-bid {
    color: var(--gold);
}

.bid-amount-value.current-bid {
    color: #4CAF50;
}

.bid-amount-value.next-bid {
    color: #2196F3;
}

.bid-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--light-gray);
}

.auto-bid-indicator {
    color: var(--gold);
    font-weight: 600;
}

.bid-card-footer {
    display: flex;
    gap: 10px;
}

.bid-action-button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bid-action-button.primary {
    background: linear-gradient(135deg, var(--gold), #d4af37);
    color: var(--dark-bg);
}

.bid-action-button.primary:hover {
    background: linear-gradient(135deg, #d4af37, var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.bid-action-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.bid-action-button.secondary:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.bid-action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.bids-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(10, 10, 10, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.pagination-left {
    display: flex;
    align-items: center;
}

.pagination-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bids-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bids-per-page label {
    font-size: 1.3rem;
    color: var(--light-gray);
    font-weight: 500;
    white-space: nowrap;
}

.bids-per-page-input {
    position: relative;
    min-width: 70px;
    z-index: 99;
}

.bid-category-dropdown.open,
.bid-sort-dropdown.open {
    z-index: 10000;
}

.bids-per-page-input input {
    width: 70px;
    background-color: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    padding: 8px 10px;
    color: var(--white);
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

.bids-per-page-input input::-webkit-outer-spin-button,
.bids-per-page-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bids-per-page-input input:hover {
    border-color: var(--gold);
    background-color: rgba(25, 25, 25, 0.85);
}

.bids-per-page-input input:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(25, 25, 25, 0.9);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.bids-per-page-input input::placeholder {
    color: var(--light-gray);
}

.pagination-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--gold);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

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

.pagination-info {
    font-size: 1.4rem;
    color: var(--light-gray);
    white-space: nowrap;
}

.bids-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    color: var(--light-gray);
    min-height: 400px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInEmpty 0.5s ease-in-out;
}

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

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

.bids-empty-state i {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 25px;
    opacity: 0.8;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {

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

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.bids-empty-state h3 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 600;
}

.bids-empty-state p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.5;
    opacity: 0.9;
}

.bids-empty-state .btn {
    margin: 0 auto;
    min-width: 140px;
    padding: 10px 20px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: fadeInButton 0.8s ease-in-out 0.3s both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bids-empty-state .btn i {
    color: var(--dark-bg);
    font-size: 1.1rem;
}

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.bids-empty-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.bids-empty-state .btn:hover i {
    color: var(--dark-bg);
}

@media screen and (max-width: 768px) {
    .section-header-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-actions {
        width: 100%;
        justify-content: space-between;
    }

    .search-box-small {
        min-width: 200px;
    }

    .bid-stats-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .bid-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .filter-tabs {
        flex-wrap: wrap;
        width: 100%;
    }

    .bid-category-dropdown,
    .bid-sort-dropdown {
        width: 100%;
        min-width: auto;
    }

    .bids-pagination {
        flex-direction: column;
        gap: 20px;
    }

    .pagination-center {
        order: 2;
    }

    .pagination-left {
        order: 1;
    }

    .my-bids-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bid-card-header {
        height: 160px;
    }

    .bid-amounts {
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }

    .bid-amount-group {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bids-empty-state {
        padding: 60px 15px;
        min-height: 300px;
    }

    .bids-empty-state i {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    .bids-empty-state h3 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .bids-empty-state p {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .bids-empty-state .btn {
        min-width: 140px;
        padding: 10px 20px;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .bid-stat-card {
        padding: 15px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .bid-card-content {
        padding: 15px;
    }

    .bid-card-footer {
        flex-direction: column;
    }

    .stat-number,
    .stat-value {
        font-size: 2rem;
    }

    .bid-amount-value {
        font-size: 1.2rem;
    }

    .bid-amounts {
        padding: 10px;
    }

    .bid-amount-label {
        font-size: 0.9rem;
    }

    .pagination-center {
        flex-direction: column;
        gap: 15px;
    }

    .bids-per-page {
        justify-content: center;
    }

    .bids-per-page {
        justify-content: center;
    }

    .bids-per-page-input input {
        width: 55px;
    }
}

.bids-per-page-input input.error {
    border-color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

.input-error-message {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: rgba(255, 68, 68, 0.9);
    color: var(--white);
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

@media screen and (max-width: 768px) {
    .input-error-message {
        font-size: 0.9rem;
        padding: 4px 6px;
    }

    .bids-per-page-input {
        min-width: 60px;
    }
}

@media screen and (max-width: 480px) {
    .input-error-message {
        font-size: 0.8rem;
        left: -10px;
        right: -10px;
    }

    .bids-per-page-input input {
        width: 55px;
    }

    .bids-empty-state {
        padding: 40px 10px;
        min-height: 250px;
    }

    .bids-empty-state i {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }

    .bids-empty-state h3 {
        font-size: 1.8rem;
    }

    .bids-empty-state p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
}



.favourite-card {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(20, 20, 20, 0.7));
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease, transform 0.5s ease;
    will-change: transform, opacity;
}

.favourite-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
}

.favourite-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.favourite-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favourite-card:hover .favourite-card-image {
    transform: scale(1.05);
}

.favourite-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.favourite-status-badge.active {
    background: linear-gradient(135deg, #2196F3, #1976d2);
    color: var(--white);
}

.favourite-status-badge.ending {
    background: linear-gradient(135deg, #FF9800, #f57c00);
    color: var(--white);
    animation: pulse 1.5s infinite;
}

.favourite-status-badge.ended {
    background: linear-gradient(135deg, #757575, #616161);
    color: var(--white);
}

.favourite-card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.favourite-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.favourite-action-btn:hover {
    background: var(--gold);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.time-remaining {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.favourite-card-content {
    padding: 20px;
}

.favourite-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favourite-card-category {
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.favourite-card-price {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.price-label {
    font-size: 1rem;
    color: var(--light-gray);
    margin-bottom: 4px;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold);
}

.favourite-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--light-gray);
}

.favourite-card-footer {
    display: flex;
    gap: 10px;
}

.favourite-action-button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.favourite-action-button.primary {
    background: linear-gradient(135deg, var(--gold), #d4af37);
    color: var(--dark-bg);
}

.favourite-action-button.primary:hover {
    background: linear-gradient(135deg, #d4af37, var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.favourite-action-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.favourite-action-button.secondary:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.favourite-action-button i {
    margin-right: 5px;
}

#favouritesGrid.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.favourites-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    color: var(--light-gray);
    min-height: 400px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-in-out;
}

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

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

.favourites-empty-state i {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 25px;
    opacity: 0.8;
    animation: gentlePulse 3s ease-in-out infinite;
}

.favourites-empty-state h3 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 600;
}

.favourites-empty-state p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.5;
    opacity: 0.9;
}

.favourites-empty-state .empty-buttons {
    display: flex;
    gap: 20px;
}

.favourites-empty-state .btn {
    margin: 0;
    min-width: 150px;
    padding: 12px 20px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media screen and (max-width: 768px) {
    #favouritesGrid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .favourite-card-footer {
        flex-direction: column;
    }
}


@media screen and (min-width: 1600px) {
    .container {
        max-width: 1920px;
        padding: 0 40px;
    }

    .dashboard-section {
        padding: 30px;
    }

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

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

    .my-bids-grid,
    #favouritesGrid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 25px;
    }
}

@media screen and (min-width: 2400px) {
    .container {
        max-width: none;
        width: calc(100% - 60px);
        padding: 0 30px;
    }

    .dashboard-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: calc(100% - var(--sidebar-width) - 60px);
    }

    .dashboard-section-container {
        max-width: none;
        width: 100%;
    }

    .my-bids-grid,
    #favouritesGrid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }

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

    .dashboard-main {
        min-height: 100vh;
    }

    .dashboard-section-container {
        min-height: calc(100vh - 180px);
    }
}


.messages-container {
    display: flex;
    height: calc(80vh - 150px);
    min-height: 500px;
    background: rgba(16, 16, 16, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.conversations-panel {
    width: 320px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.5);
}

.conversations-header {
    padding: 20px 15px;
    background: rgba(16, 16, 16, 0.8);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.conversation-filter-tabs {
    display: flex;
    border-radius: 6px;
    background: rgba(10, 10, 10, 0.5);
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.tab-indicator {
    position: absolute;
    height: calc(100% - 6px);
    border-radius: 4px;
    background: linear-gradient(135deg, var(--gold), #d4af37);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
    top: 3px;
    bottom: 3px;
}

.conversation-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--light-gray);
    padding: 10px 0;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.conversation-tab::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.conversation-tab.active {
    background: linear-gradient(135deg, var(--gold), #d4af37);
    color: var(--dark-bg);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.conversation-tab.active::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.conversation-tab:hover:not(.active) {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.empty-conversations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--light-gray);
    padding: 20px;
}

.empty-conversations i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.conversation-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    transform-origin: center;
    opacity: 1;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.conversation-item.entering {
    opacity: 0;
    transform: translateY(20px);
}

.conversation-item.exiting {
    opacity: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    transform: translateX(-20px);
}

.conversation-item.active {
    background: rgba(212, 175, 55, 0.15);
    border-left: 3px solid var(--gold);
}

.conversation-item.highlight-update {
    animation: highlightUpdate 1.5s ease;
}

@keyframes highlightUpdate {
    0% {
        background-color: rgba(212, 175, 55, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

.conversation-avatar {
    flex-shrink: 0;
    position: relative;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conversation-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 5px;
}

.participant-role {
    position: relative;
    bottom: 0;
    right: 0;
    font-size: 0.95rem;
    padding: 3px 8px;
    border-radius: 10px;
    color: var(--dark-bg);
    font-weight: 600;
    text-transform: lowercase;
    margin-top: 5px;
    text-align: center;
    min-width: 70px;
}

.participant-role.advisor {
    background: linear-gradient(to right, #9c27b0, #673ab7);
}

.participant-role.seller {
    background: linear-gradient(to right, #2196F3, #03A9F4);
}

.participant-role.support {
    background: linear-gradient(to right, #4CAF50, #8BC34A);
}

.participant-role.buyer {
    background: linear-gradient(to right, var(--gold), #d4af37);
}

.participant-role.concierge {
    background: linear-gradient(to right, #80b027, #d4af37);
}

.conversation-content {
    flex: 1;
    min-width: 0;
    margin-left: 10px;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.conversation-header h4 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 1.1rem;
    color: var(--light-gray);
    white-space: nowrap;
}

.conversation-subject {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-indicator i {
    font-size: 1rem;
}

.category-indicator.inquiry {
    background: #2196F3;
    color: white;
}

.category-indicator.offer {
    background: #FF9800;
    color: white;
}

.category-indicator.support {
    background: #4CAF50;
    color: white;
}

.category-indicator.arrangement {
    background: #9C27B0;
    color: white;
}

.conversation-preview {
    font-size: 1.2rem;
    color: var(--light-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item.unread .conversation-preview {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.unread-indicator {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.messages-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(16, 16, 16, 0.6);
    position: relative;
}

.messages-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--light-gray);
    text-align: center;
    animation-name: fadeIn;
}

.messages-panel-empty,
.active-conversation {
    animation-duration: 0.4s;
    animation-fill-mode: both;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--light-gray);
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.empty-state h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--white);
}

.empty-state p {
    font-size: 1.3rem;
    color: var(--light-gray);
}

.messages-panel-empty h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.messages-panel-empty p {
    font-size: 1.4rem;
}

.active-conversation {
    height: 100%;
    display: flex;
    flex-direction: column;
    animation-name: slideInRight;
}

.active-conversation.exiting {
    animation-name: slideOutRight;
}

.conversation-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(10, 10, 10, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-info {
    display: flex;
    align-items: center;
}

.conversation-info .conversation-avatar {
    margin-right: 15px;
}

.conversation-info .conversation-avatar img {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 5px;
}

.conversation-info .participant-role {
    font-size: 1.1rem;
}

.conversation-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    color: var(--white);
}

.conversation-details p {
    margin: 0;
    font-size: 1.4rem;
    color: var(--light-gray);
}

.conversation-actions {
    display: flex;
    gap: 10px;
}

.conversation-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: none;
    color: var(--light-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.conversation-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(30px);
        opacity: 0;
    }
}

.related-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.related-item-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.related-item-info {
    flex: 1;
}

.related-label {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-right: 5px;
}

#relatedItemTitle {
    font-size: 1.3rem;
    color: var(--white);
}

.related-item-view {
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.related-item-view:hover {
    background: rgba(212, 175, 55, 0.3);
}

.related-item.entering {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
}

.related-item.visible {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
}

.conversation-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message-date-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    animation: fadeIn 0.6s ease-in-out;
}

.message-date-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.message-date-divider span {
    position: relative;
    background: rgba(16, 16, 16, 0.6);
    padding: 0 15px;
    font-size: 1.2rem;
    color: var(--light-gray);
    z-index: 2;
}

.message {
    display: flex;
    margin-bottom: 20px;
    max-width: 80%;
    animation-duration: 0.5s;
    animation-fill-mode: both;
    transform-origin: top;
}

.message.received {
    align-self: flex-start;
    animation-name: messageInReceived;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
    animation-name: messageInSent;
}

.message-avatar {
    margin-right: 15px;
    flex-shrink: 0;
}

.message.sent .message-avatar {
    margin-right: 0;
    margin-left: 15px;
}

.message-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-content {
    display: flex;
    flex-direction: column;
}

.message-info {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.message.sent .message-info {
    justify-content: flex-end;
}

.message-sender {
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 500;
    margin-right: 10px;
}

.message-time {
    font-size: 1.1rem;
    color: var(--light-gray);
}

.message-bubble {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 15px;
    position: relative;
}

.message.received .message-bubble {
    border-top-left-radius: 0;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message.sent .message-bubble {
    background: rgba(212, 175, 55, 0.15);
    border-top-right-radius: 0;
}

.message-bubble p {
    margin: 0;
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1.5;
}

.message-bubble p a {
    color: var(--gold);
    text-decoration: underline;
}

.message-composer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(10, 10, 10, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-composer.expanded {
    height: 120px;
}

.recipient-selector {
    position: relative;
    width: 100%;
}

.recipient-selector select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100%;
    padding: 12px 35px 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(16, 16, 16, 0.7);
    color: var(--white);
    font-size: 1.4rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-image: none !important;
    text-indent: 0.01px;
    text-overflow: '';
}

.recipient-selector select::-ms-expand {
    display: none;
}

.recipient-selector::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform-origin: center;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.recipient-selector select:focus+.recipient-selector::after,
.recipient-selector.open::after {
    transform: translateY(-30%) rotate(-135deg);
}

.recipient-selector:hover select {
    border-color: var(--gold);
    background: rgba(25, 25, 25, 0.9);
}

.recipient-selector.open::after {
    transform: translateY(-30%) rotate(-135deg);
}

.recipient-selector select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.recipient-selector select option {
    background: rgba(20, 20, 20, 0.95);
    color: var(--white);
    padding: 10px;
}

.listing-selector {
    position: relative;
    width: 100%;
}

.listing-selector select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100%;
    padding: 12px 35px 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(16, 16, 16, 0.7);
    color: var(--white);
    font-size: 1.4rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-image: none !important;
    text-indent: 0.01px;
    text-overflow: '';
}

.listing-selector select::-ms-expand {
    display: none;
}

.listing-selector::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform-origin: center;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.listing-selector select:focus+.listing-selector::after,
.listing-selector.open::after {
    transform: translateY(-30%) rotate(-135deg);
}

.listing-selector.open::after {
    transform: translateY(-30%) rotate(-135deg);
}

.listing-selector:hover select {
    border-color: var(--gold);
    background: rgba(25, 25, 25, 0.9);
}

.listing-selector select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.listing-selector select option {
    background: rgba(20, 20, 20, 0.95);
    color: var(--white);
    padding: 10px;
}

@keyframes messageInSent {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes messageInReceived {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 10px 0;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: inline-block;
    opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
    animation: pulse 1s infinite 0.1s;
}

.typing-indicator span:nth-child(2) {
    animation: pulse 1s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation: pulse 1s infinite 0.3s;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.composer-options {
    display: flex;
    gap: 10px;
    order: 1;
}

.composer-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: none;
    color: var(--light-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.composer-option:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-2px);
}

.composer-option:active {
    transform: translateY(1px);
}

.composer-input-wrapper {
    flex: 1;
    position: relative;
    order: 2;
}

#messageInput {
    width: 100%;
    min-height: 40px;
    max-height: 120px;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1.4rem;
    resize: none;
    line-height: 1.5;
    font-family: inherit;
    overflow-y: auto;
    transition: height 0.2s ease, background-color 0.3s ease;
}

#messageInput:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.send-message-btn {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #d4af37);
    border: none;
    color: var(--dark-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    padding: 0;
    order: 3;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.send-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.send-message-btn.sending {
    width: 60px;
    pointer-events: none;
}

.send-message-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-message-btn.sending i {
    animation: sendingAnimation 1s infinite linear;
}

@keyframes sendingAnimation {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-content {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.4s ease;
}

.compose-modal {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.modal-header {
    background: linear-gradient(to right, rgba(25, 25, 25, 0.9), rgba(40, 40, 40, 0.9));
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 18px 25px;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--gold);
    margin-right: 10px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(25, 25, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light-gray);
    transition: all 0.25s ease;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: rotate(90deg);
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 25px;
    background-color: rgba(16, 16, 16, 0.95);
}

.modal-footer {
    padding: 20px 25px;
    background-color: rgba(20, 20, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 6px 6px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

#cardNumber,
#cardExpiry,
#cardCVC {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.compose-field {
    margin-bottom: 20px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.compose-field label {
    display: block;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 10px;
}

.compose-field select,
.compose-field input,
.compose-field textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1.4rem;
    font-family: inherit;
}

#sellerSelection {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.compose-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'%3E%3Cpath fill='%23FFFFFF' d='M6 6L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.compose-field textarea {
    min-height: 150px;
    resize: vertical;
}

.compose-field select:focus,
.compose-field input:focus,
.compose-field textarea:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

@media screen and (max-width: 1024px) {
    .messages-container {
        height: calc(80vh);
    }

    .conversations-panel {
        width: 280px;
    }
}

@media screen and (max-width: 768px) {
    .conversation-messages {
        max-height: 300px;
    }

    .conversation-item {
        padding: 10px;
    }

    .message {
        max-width: 90%;
    }

    .messages-container {
        flex-direction: column;
        height: auto;
        min-height: 700px;
    }

    .conversations-panel {
        width: 100%;
        max-width: 100%;
        height: 300px;
    }

    .messages-panel {
        width: 100%;
        max-width: 100%;
        height: 500px;
    }

    .message-composer {
        padding: 10px;
        flex-wrap: wrap;
    }

    .section-header-main {
        flex-direction: column;
    }

    .section-actions {
        width: 100%;
        justify-content: space-between;
    }

    .search-box-small {
        width: 100%;
        max-width: 100%;
    }

    body,
    html {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .dashboard-section-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .dashboard-content {
        width: 100%;
        padding: 0;
        margin-left: 0;
        overflow-x: hidden;
    }

    .messages-container,
    .conversations-panel,
    .messages-panel {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .message-composer>* {
        max-width: 100%;
    }

    table,
    img,
    video,
    iframe {
        max-width: 100%;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .conversations-panel {
        width: 280px;
    }

    .search-box-small {
        min-width: 200px;
    }
}

.btn-compact {
    padding: 8px 15px;
    font-size: 1.3rem;
}

.btn.btn-gold.loading {
    color: rgba(18, 18, 18, 0.9); 
    position: relative;
}

.btn.btn-gold.loading .btn-loader {
    display: inline-block;
    color: rgba(18, 18, 18, 0.9); 
}

.btn.btn-gold.loading .btn-text {
    visibility: hidden;
    color: rgba(18, 18, 18, 0.9); 
}

.btn-text {
    color: rgba(18, 18, 18, 0.9); 
}

.btn.btn-gold .btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    color: rgba(18, 18, 18, 0.9); 
}

.btn.btn-gold.loading::after {
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top: 2px solid #000;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* If needed, also add a spinner icon that's visible */
.btn.btn-gold.loading::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(18, 18, 18, 0.3);
    border-radius: 50%;
    border-top-color: #121212;
    animation: spin 1s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

.confirm-modal {
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease;
}

.confirm-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 4rem;
    color: var(--gold);
}

.confirm-modal .modal-body {
    text-align: center;
    padding: 30px 20px;
}

.confirm-modal .modal-body p {
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--white);
}

.confirm-modal .modal-footer {
    justify-content: center;
    gap: 20px;
}

.confirm-modal .btn {
    min-width: 120px;
}

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

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

.conversations-loading {
    padding: 15px;
}

.conversation-skeleton {
    height: 80px;
    margin-bottom: 10px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 37%,
            rgba(255, 255, 255, 0.05) 63%);
    background-size: 400% 100%;
    border-radius: 8px;
    animation: shimmer 2s infinite linear;
}


.my-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.listing-card {
    background-color: rgba(16, 16, 16, 0.8);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.listing-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.listing-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.listing-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    z-index: 1;
}

.listing-status-badge.active {
    background-color: rgba(46, 204, 113, 0.9);
}

.listing-status-badge.featured {
    background-color: rgba(212, 175, 55, 0.9);
}

.listing-status-badge.ending {
    background-color: rgba(243, 156, 18, 0.9);
}

.listing-status-badge.sold {
    background-color: rgba(155, 89, 182, 0.9);
}

.listing-status-badge.draft {
    background-color: rgba(127, 140, 141, 0.9);
}

.listing-stats {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.listing-stat {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

.listing-stat i {
    color: var(--gold);
    font-size: 1rem;
}

.time-remaining {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(4px);
}

.listing-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.listing-card-category {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.listing-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.listing-price-info {
    display: flex;
    flex-direction: column;
}

.listing-price-label {
    font-size: 1.1rem;
    color: var(--light-gray);
}

.listing-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

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

.listing-bids-label {
    font-size: 1.1rem;
    color: var(--light-gray);
}

.listing-bids-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.listing-card-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.listing-action-buttons {
    display: flex;
    gap: 10px;
}

.listing-action-button {
    background: rgba(16, 16, 16, 0.8);
    color: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-action-button:hover {
    background: var(--gold);
    color: var(--dark-bg);
}

.listing-action-button.secondary {
    background: transparent;
}

.listing-action-button.secondary:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--white);
}

.listing-action-button i {
    margin-right: 5px;
}

.listing-action-menu {
    position: relative;
}

.listing-action-menu-toggle {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.listing-action-menu-toggle:hover {
    color: var(--gold);
}

.listing-action-menu-dropdown {
    position: absolute;
    right: 0;
    bottom: calc(100% + 5px);
    background: rgba(16, 16, 16, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
}

.listing-action-menu.active .listing-action-menu-dropdown {
    display: block;
    animation: fadeInMenu 0.2s ease-in-out;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.listing-action-menu-item {
    padding: 10px 15px;
    font-size: 1.3rem;
    color: var(--white);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.listing-action-menu-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.listing-action-menu-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 1.2rem;
}

.listing-stats-summary .stat-icon.featured {
    background: linear-gradient(135deg, #ffd700, #d4af37);
}

.listing-stats-summary .stat-icon.bids {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.listings-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    color: var(--light-gray);
    min-height: 400px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-in-out;
}

.listings-empty-state i {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 25px;
    opacity: 0.8;
    animation: gentlePulse 3s ease-in-out infinite;
}

.listings-empty-state h3 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 600;
}

.listings-empty-state p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.5;
    opacity: 0.9;
}

.listings-empty-state .btn {
    margin: 0;
    min-width: 220px;
    padding: 12px 20px;
    font-size: 1.4rem;
}

@media screen and (max-width: 992px) {
    .my-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .my-listings-grid {
        grid-template-columns: 1fr;
    }

    .listing-card-footer {
        flex-direction: column;
        gap: 15px;
    }

    .listing-action-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media screen and (max-width: 576px) {
    .listing-card-details {
        flex-direction: column;
        gap: 10px;
    }

    .listing-bids-info {
        align-items: flex-start;
    }
}

.listing-category-dropdown,
.listing-sort-dropdown {
    position: relative;
    min-width: 160px;
    user-select: none;
    z-index: 100;
}

.listing-category-dropdown .dropdown-selected,
.listing-sort-dropdown .dropdown-selected {
    background-color: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    padding: 8px 30px 8px 12px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.listing-category-dropdown .dropdown-options,
.listing-sort-dropdown .dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(25, 25, 25, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.listing-category-dropdown.active .dropdown-options,
.listing-sort-dropdown.active .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.listing-category-dropdown .dropdown-option,
.listing-sort-dropdown .dropdown-option {
    padding: 10px 15px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.listing-category-dropdown .dropdown-option:hover,
.listing-sort-dropdown .dropdown-option:hover {
    background-color: rgba(212, 175, 55, 0.2);
}

.listing-category-dropdown .dropdown-option.selected,
.listing-sort-dropdown .dropdown-option.selected {
    background-color: rgba(212, 175, 55, 0.3);
    font-weight: 600;
}

.listing-category-dropdown .dropdown-arrow,
.listing-sort-dropdown .dropdown-arrow {
    display: inline-block;
    margin-left: 5px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -5px;
}

.listing-category-dropdown.active .dropdown-arrow,
.listing-sort-dropdown.active .dropdown-arrow {
    transform: rotate(-135deg);
}



.settings-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    min-height: 600px;
}

.settings-sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: rgba(16, 16, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

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

.settings-nav li {
    padding: 15px 20px;
    font-size: 1.4rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}

.settings-nav li:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.settings-nav li.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

.settings-nav li i {
    width: 20px;
    text-align: center;
}

.settings-content {
    flex: 1;
    background-color: rgba(16, 16, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 25px;
    overflow-y: auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.settings-tab {
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(20px);
    opacity: 0;
    display: none;
    width: 100%;
    height: auto;
}

#address-settings,
#payment-settings {
    padding-bottom: 20px;
}

.settings-tab.active {
    display: block;
    animation: fadeIn 0.3s ease;
    transform: translateX(0);
    opacity: 1;
    flex: 1;
}

.settings-tab h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--white);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.current-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-controls .btn {
    padding: 8px 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group label {
    margin-bottom: 10px;
    display: block;
    color: var(--light-gray);
    font-size: 1.3rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    background-color: rgba(25, 25, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--white);
    font-size: 1.4rem;
    padding: 12px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn-remove {
    color: #FF5252;
    border-color: #FF5252;
}

.btn-remove:hover {
    background-color: #FF5252;
    color: var(--white);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-input {
    display: flex;
    align-items: center;
    background-color: rgba(25, 25, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.social-input i {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--light-gray);
    font-size: 1.6rem;
    height: 44px;
}

.social-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: var(--white);
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
}

.social-input input:focus {
    outline: none;
}

.address-list,
.payment-list {
    margin-bottom: 25px;
    max-height: none;
    overflow: visible;
}

#addAddressBtn,
#addPaymentBtn {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

#addAddressBtn i,
#addPaymentBtn i {
    margin-right: 8px;
}

.address-card,
.payment-card {
    background-color: rgba(25, 25, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.address-card-header,
.payment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.address-card h4,
.payment-card h4 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}

.address-actions,
.payment-actions {
    display: flex;
    gap: 10px;
}

.address-actions button,
.payment-actions button {
    background: none;
    border: none;
    color: var(--light-gray);
    cursor: pointer;
    font-size: 1.4rem;
    padding: 5px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.address-actions button:before,
.payment-actions button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.1);
    transform: scale(0);
    opacity: 0;
    border-radius: 50%;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.address-actions button:hover,
.payment-actions button:hover {
    color: var(--gold);
}

.address-actions button:hover:before,
.payment-actions button:hover:before {
    transform: scale(2);
    opacity: 1;
}

.address-details,
.payment-details {
    font-size: 1.3rem;
    color: var(--light-gray);
    line-height: 1.5;
}

.default-badge {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    font-size: 1.1rem;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
    font-weight: 500;
    position: static;
    overflow: visible;
}

.language-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.language-option {
    position: relative;
}

.language-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.language-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(25, 25, 25, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option input[type="radio"]:checked+label {
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 0 1px var(--gold);
}

.language-flag {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.language-name {
    font-size: 1.4rem;
    color: var(--white);
}

@media screen and (max-width: 992px) {
    .settings-container {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
    }

    .settings-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px;
    }

    .settings-nav li {
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .settings-nav li.active {
        border-left: none;
        border-bottom: 3px solid var(--gold);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media screen and (max-width: 768px) {
    .profile-avatar-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .language-options {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}