/* ========================================
   RAZZBIDBY - DASHBOARD PAGES
   ======================================== */

@media (max-width: 768px) {
    .dashboard-content>.d-flex.align-center.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dashboard-content>.d-flex.align-center.justify-between>.d-flex {
        width: 100%;
    }

    .dashboard-content>.d-flex.align-center.justify-between select.form-input {
        flex: 1;
        min-width: 0;
    }

    .dashboard-content {
        padding: var(--space-md);
        padding-top: 80px;
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .dashboard-title {
        font-size: var(--font-size-2xl);
    }
}

/* Search Submit Button */
.search-submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #FFB822;
    color: #ffffff !important;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(255, 184, 34, 0.4);
    z-index: 10;
    padding: 0 !important;
    margin: 0 !important;
    outline: none;
}

.search-submit-btn i {
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    color: #ffffff !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

.search-submit-btn:hover {
    background: #FFC44D;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 184, 34, 0.5);
}

.search-submit-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.filter-search {
    position: relative;
}

/* ========================================
   STAT CARDS (Dashboard Overview)
   ======================================== */

.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card-link {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    transition: var(--transition-normal);
    cursor: pointer;
}

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

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card-icon.yellow {
    background: var(--primary-subtle);
    color: var(--primary-dark);
}

.stat-card-icon.pink {
    background: #FDF2F8;
    color: #EC4899;
}

.stat-card-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.stat-card-icon.blue {
    background: var(--info-light);
    color: var(--info);
}

.stat-card-icon.purple {
    background: #F5F3FF;
    color: #8B5CF6;
}

.stat-card-content {
    flex: 1;
}

.stat-card-value {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

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

@media (max-width: 1200px) {
    .stat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stat-cards-grid {
        grid-template-columns: 1fr;
    }

    .stat-card-link {
        padding: var(--space-md);
    }

    .stat-card-value {
        font-size: var(--font-size-2xl);
    }
}

/* ========================================
   DASHBOARD GRID (Two Column)
   ======================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

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

/* ========================================
   DASHBOARD CARDS
   ======================================== */

.dashboard-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.dashboard-card-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.dashboard-card-link {
    font-size: var(--font-size-sm);
    color: var(--primary-dark);
    font-weight: var(--font-weight-medium);
}

.dashboard-card-link:hover {
    text-decoration: underline;
}

.dashboard-card-body {
    padding: 0;
}

/* ========================================
   ACTIVITY FEED
   ======================================== */

.activity-list {
    padding: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

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

.activity-item:hover {
    background: var(--bg-subtle);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-icon.yellow {
    background: var(--primary-subtle);
    color: var(--primary-dark);
}

.activity-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.activity-icon.orange {
    background: var(--warning-light);
    color: var(--warning);
}

.activity-icon.blue {
    background: var(--info-light);
    color: var(--info);
}

.activity-icon.purple {
    background: #F5F3FF;
    color: #8B5CF6;
}

.activity-icon.gray {
    background: var(--bg-subtle);
    color: var(--text-muted);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-text strong {
    font-weight: var(--font-weight-semibold);
}

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

.activity-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.activity-link {
    font-size: var(--font-size-xs);
    color: var(--primary-dark);
    font-weight: var(--font-weight-medium);
}

.activity-link:hover {
    text-decoration: underline;
}

.activity-icon.red {
    background: var(--error-light);
    color: var(--error);
}

.activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    text-align: center;
}

.activity-empty i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.activity-empty p {
    margin: 0;
    font-size: var(--font-size-sm);
}

/* ========================================
   WATCHLIST PREVIEW
   ======================================== */

.watchlist-preview {
    padding: var(--space-md) var(--space-lg);
}

.watchlist-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.watchlist-item-image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    overflow: hidden;
    flex-shrink: 0;
}

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

.dashboard-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f5 0%, #e4e4eb 50%, #f0f0f5 100%);
    border: 1px dashed rgba(0, 0, 0, 0.12);
}

.dashboard-image-placeholder svg {
    width: 28px;
    height: 28px;
    color: #9ca3af;
    opacity: 0.85;
}

.watchlist-item-content {
    flex: 1;
    min-width: 0;
}

.watchlist-item-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.watchlist-item-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.watchlist-item-time i {
    font-size: 12px;
}

.watchlist-item-time.is-urgent {
    color: var(--error);
    font-weight: var(--font-weight-medium);
}

.watchlist-item-price {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-align: right;
}

/* Ending Soon Section */
.ending-soon-section {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.ending-soon-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: 0 var(--space-lg);
}

.ending-soon-header i {
    color: var(--error);
}

.ending-soon-header span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.ending-soon-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--error-light);
    border-left: 3px solid var(--error);
}

.ending-soon-item .watchlist-item-time {
    color: var(--error);
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   QUICK ACTIONS
   ======================================== */

.quick-actions {
    display: flex;
    gap: var(--space-md);
}

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

    .quick-actions .btn {
        width: 100%;
    }
}

/* ========================================
   WELCOME SECTION
   ======================================== */

.welcome-section {
    margin-bottom: var(--space-xl);
}

.welcome-section h1 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.welcome-section p {
    font-size: var(--font-size-base);
    color: var(--text-muted);
}

/* ========================================
   MY BIDS PAGE
   ======================================== */

/* Tabs */
.bids-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0;
    position: relative;
}

.bids-tab {
    position: relative;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    white-space: nowrap;
}

.bids-tab:hover {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.04);
}

.bids-tab.is-active {
    color: var(--primary);
}

.bids-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bids-tab.is-active::after {
    transform: scaleX(1);
}

.bids-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    transition: background 0.2s ease, color 0.2s ease;
}

.bids-tab.is-active .tab-count {
    background: var(--primary);
    color: #fff;
}

/* Bid List */
.bid-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.bid-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.bid-item:hover {
    box-shadow: var(--shadow-sm);
}

.bid-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    overflow: hidden;
    flex-shrink: 0;
}

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

.bid-item-content {
    flex: 1;
    min-width: 0;
}

.bid-item-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.bid-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.bid-item-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.bid-item-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
}

.bid-status-badge {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
}

.bid-status-badge.is-winning {
    background: var(--success-light);
    color: var(--success);
}

.bid-status-badge.is-outbid {
    background: var(--warning-light);
    color: var(--warning);
}

.bid-status-badge.is-won {
    background: var(--success-light);
    color: var(--success);
}

.bid-status-badge.is-lost {
    background: var(--error-light);
    color: var(--error);
}

.bid-current-price {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.bid-your-bid {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

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

    .bid-item-image {
        width: 100%;
        height: 160px;
    }

    .bid-item-status {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: var(--space-md);
        border-top: 1px solid var(--border-light);
        margin-top: var(--space-md);
    }
}

/* ========================================
   PURCHASES PAGE
   ======================================== */

.purchases-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.purchase-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.purchase-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
}

.purchase-order-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: var(--font-size-sm);
}

.purchase-order-id {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.purchase-order-date {
    color: var(--text-muted);
}

.purchase-status-badge {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
}

.purchase-status-badge.is-processing {
    background: var(--info-light);
    color: var(--info);
}

.purchase-status-badge.is-shipped {
    background: #F5F3FF;
    color: #8B5CF6;
}

.purchase-status-badge.is-delivered {
    background: var(--success-light);
    color: var(--success);
}

.purchase-card-body {
    padding: var(--space-lg);
}

.purchase-item {
    display: flex;
    gap: var(--space-lg);
}

.purchase-item-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    overflow: hidden;
    flex-shrink: 0;
}

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

.purchase-item-details {
    flex: 1;
}

.purchase-item-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.purchase-item-seller {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.purchase-item-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

/* Tracking Timeline */
.tracking-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    position: relative;
}

.tracking-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: var(--border-color);
}

.tracking-step.is-completed:not(:last-child)::after {
    background: var(--success);
}

.tracking-step-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.tracking-step.is-completed .tracking-step-icon {
    background: var(--success);
    color: var(--text-inverse);
}

.tracking-step.is-current .tracking-step-icon {
    background: var(--primary);
    color: var(--near-black);
}

.tracking-step-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: center;
}

.tracking-step.is-completed .tracking-step-label,
.tracking-step.is-current .tracking-step-label {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
    .purchase-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

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

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

    .tracking-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .tracking-step {
        flex-direction: row;
        gap: var(--space-md);
    }

    .tracking-step:not(:last-child)::after {
        top: auto;
        bottom: -12px;
        left: 15px;
        right: auto;
        width: 2px;
        height: 24px;
    }
}

/* ========================================
   WATCHLIST PAGE
   ======================================== */

/* View Toggle */
.view-toggle {
    display: flex;
    gap: var(--space-xs);
    background: var(--bg-subtle);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

.view-toggle-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.view-toggle-btn:hover {
    color: var(--text-primary);
}

.view-toggle-btn.is-active {
    background: var(--bg-white);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}

/* Watchlist Grid */
.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

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

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

@media (max-width: 768px) {
    .watchlist-card-image {
        height: 160px;
    }

    .watchlist-card-title {
        font-size: 14px;
    }

    .watchlist-card-price {
        font-size: var(--font-size-base);
    }

    .watchlist-card-actions {
        gap: 6px;
    }

    .watchlist-card-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .bid-item {
        flex-wrap: wrap;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .bid-item-content {
        flex: 1;
        min-width: 0;
    }

    .bid-item-status {
        width: 100%;
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        padding-top: var(--space-sm);
        border-top: 1px solid var(--border-light);
    }

    .bid-item-status .bid-current-price {
        margin-right: auto;
    }
}

/* Watchlist Card */
.watchlist-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

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

.watchlist-card-image {
    position: relative;
    height: 200px;
    background: var(--bg-subtle);
}

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

.watchlist-card-image .listing-image-placeholder,
.bid-item-image .listing-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: var(--radius-sm);
}

.watchlist-card-image .listing-image-placeholder i,
.bid-item-image .listing-image-placeholder i {
    font-size: 32px;
    color: rgba(0, 0, 0, 0.3);
}

.watchlist-card-remove {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.watchlist-card-remove:hover {
    background: var(--error);
    color: var(--text-inverse);
}

.watchlist-card-time {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-inverse);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.watchlist-card-time.is-urgent {
    background: var(--error);
}

.watchlist-card-badge {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--primary);
    color: var(--text-inverse);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.watchlist-card-body {
    padding: var(--space-md);
}

.watchlist-card-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watchlist-card-location {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.watchlist-card-location i {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.watchlist-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.watchlist-card-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.watchlist-card-bids {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.watchlist-card-actions {
    display: flex;
    gap: var(--space-sm);
}

.watchlist-card-actions .btn {
    flex: 1;
}

/* ========================================
   MESSAGES PAGE
   ======================================== */

.messages-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: calc(100vh - 200px);
    min-height: 500px;
}

@media (max-width: 1024px) {
    .messages-layout {
        grid-template-columns: 1fr;
    }

    .messages-chat {
        display: none !important;
    }

    .messages-chat.is-active {
        display: flex !important;
    }

    .messages-list.has-active-chat {
        display: none !important;
    }
}

/* Messages List */
.messages-list {
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.messages-list-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.messages-list-header h2 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
}

.messages-search {
    position: relative;
}

.messages-search input {
    width: 100%;
    padding: var(--space-sm) var(--space-md) var(--space-sm) 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.messages-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.messages-search i {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

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

.conversation-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.conversation-item:hover {
    background: var(--bg-subtle);
}

.conversation-item.is-active {
    background: var(--primary-subtle);
}

.conversation-item.is-unread {
    background: var(--bg-light);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #e8ecf1 0%, #d1d9e6 100%);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.conversation-avatar .avatar-placeholder-svg {
    width: 24px;
    height: 24px;
    opacity: 0.45;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

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

.conversation-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.conversation-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.conversation-preview {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item.is-unread .conversation-preview {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

.conversation-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary);
    color: var(--near-black);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Panel */
.messages-chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.chat-back-btn {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--bg-subtle);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .chat-back-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

.chat-user-info {
    flex: 1;
}

.chat-user-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.chat-user-status {
    font-size: var(--font-size-xs);
    color: var(--success);
}

.chat-actions {
    display: flex;
    gap: var(--space-sm);
}

.chat-action-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-subtle);
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-action-btn:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.messages-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: calc(100vh - 200px);
    min-height: 500px;
    position: relative;
    /* Fixed: added position relative for overlay */
}

/* Blur Overlay Loader */
.messages-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: opacity 0.4s ease, visibility 0.4s;
    opacity: 0;
    visibility: hidden;
}

.messages-blur-overlay.is-active {
    opacity: 1;
    visibility: visible;
    animation: blur-pulse 2s infinite ease-in-out;
}

@keyframes blur-pulse {
    0% {
        backdrop-filter: blur(4px);
        background: rgba(255, 255, 255, 0.3);
    }

    50% {
        backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.6);
    }

    100% {
        backdrop-filter: blur(4px);
        background: rgba(255, 255, 255, 0.3);
    }
}

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

/* Skeleton State */
.skeleton-msg {
    height: 60px;
    background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-light) 50%, var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
    max-width: 60%;
}

.skeleton-msg.is-sent {
    margin-left: auto;
}

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

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

.chat-message {
    display: flex;
    gap: var(--space-sm);
    max-width: 70%;
}

.chat-message.is-sent {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    flex-shrink: 0;
    overflow: hidden;
}

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

.chat-message-bubble {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.chat-message.is-sent .chat-message-bubble {
    background: var(--primary);
    color: var(--near-black);
}

.chat-message-text {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-message-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.chat-message.is-sent .chat-message-time {
    color: rgba(4, 15, 30, 0.6);
}

.chat-input {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.chat-input-field {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    resize: none;
}

.chat-input-field:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--near-black);
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-send-btn:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.chat-attach-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-subtle);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.chat-attach-btn:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.chat-image-preview-container {
    display: none;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-light);
    background: var(--bg-white);
    flex-shrink: 0;
}

.chat-image-preview-wrapper {
    position: relative;
    display: inline-block;
}

.chat-image-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

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

.chat-image-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.notifications-actions {
    display: flex;
    gap: var(--space-sm);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.notification-item:hover {
    box-shadow: var(--shadow-sm);
}

.notification-item.is-unread {
    background: var(--info-light);
    border-color: var(--info);
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-icon.yellow {
    background: var(--primary-subtle);
    color: var(--primary-dark);
}

.notification-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.notification-icon.orange {
    background: var(--warning-light);
    color: var(--warning);
}

.notification-icon.blue {
    background: var(--info-light);
    color: var(--info);
}

.notification-icon.purple {
    background: #F5F3FF;
    color: #8B5CF6;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.notification-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.notification-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.notification-actions {
    display: flex;
    gap: var(--space-sm);
}

.notification-action-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.notification-action-btn.is-primary {
    background: var(--primary);
    color: var(--near-black);
    border: none;
}

.notification-action-btn.is-primary:hover {
    background: var(--primary-light);
}

.notification-action-btn.is-secondary {
    background: none;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.notification-action-btn.is-secondary:hover {
    background: var(--bg-subtle);
}

.notif-toolbar {
    margin-bottom: var(--space-lg);
}

.notif-toolbar-row {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.notif-seg-group {
    display: inline-flex;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.notif-seg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    line-height: 1;
}

.notif-seg i {
    font-size: 9px;
}

.notif-seg:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.notif-seg.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.3);
}

.notif-seg.is-active:hover {
    background: var(--primary);
    color: #fff;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: var(--space-lg) 0;
}

.pagination-wrapper .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .pagination li {
    display: inline-flex;
}

.pagination-wrapper .pagination li a,
.pagination-wrapper .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-wrapper .pagination li a:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-wrapper .pagination li.active span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.pagination-wrapper .pagination li.disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .notif-toolbar {
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .notif-toolbar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    /* Reset segment group style for mobile to be a scrollable list */
    .notif-seg-group {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        background: transparent;
        padding: 4px;
        border-radius: 0;
        scrollbar-width: none;
        box-sizing: border-box;
    }

    .notif-seg-group::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    /* Reset "All" button specific grid style */
    .notif-seg-group>.notif-seg:first-child {
        grid-column: auto;
    }

    /* Chip Style for Mobile */
    .notif-seg {
        flex-shrink: 0;
        width: auto;
        height: 32px;
        justify-content: center;
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: 100px;
        padding: 0 16px;
        font-size: 13px;
        color: var(--text-secondary);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    }

    /* Ensure content fits */
    .notifications-list {
        padding: 0;
        width: 100%;
        overflow: hidden;
    }

    .notification-item {
        padding: 16px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .notification-content {
        min-width: 0;
        width: 100%;
    }

    /* Chip Style for Mobile */
    .notif-seg {
        flex-shrink: 0;
        width: auto;
        height: 32px;
        justify-content: center;
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: 100px;
        padding: 0 16px;
        font-size: 13px;
        color: var(--text-secondary);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    }

    .notif-seg i {
        font-size: 11px;
    }

    .notif-seg:hover {
        background: var(--bg-subtle);
    }

    .notif-seg.is-active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        box-shadow: 0 3px 8px rgba(124, 58, 237, 0.25);
    }

    .notifications-list {
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .pagination-wrapper,
    .custom-pagination {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        box-sizing: border-box;
        padding-bottom: 20px;
        /* Space for scrollbar if any */
    }

    .pagination-wrapper .pagination,
    .custom-pagination .pagination,
    .custom-pagination ul {
        display: flex;
        /* Ensure flex behavior */
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        padding: 0;
        margin: 0;
        gap: 4px;
        /* Consistent gap */
    }

    .pagination-wrapper .pagination li,
    .custom-pagination .pagination li,
    .custom-pagination ul li {
        display: inline-flex;
        margin: 2px;
        /* Slight margin for wrap spacing */
    }

    .pagination-wrapper .pagination li a,
    .pagination-wrapper .pagination li span,
    .custom-pagination .pagination li a,
    .custom-pagination .pagination li span,
    .custom-pagination ul li a,
    .custom-pagination ul li span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
        border-radius: 4px;
        background: #fff;
        border: 1px solid #e2e8f0;
        color: #64748b;
        text-decoration: none;
    }

    .pagination-wrapper .pagination li.active span,
    .custom-pagination .pagination li.active span,
    .custom-pagination ul li.active span {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .notification-item {
        padding: var(--space-md);
        flex-direction: column;
        /* Stack content on very small screens if needed */
        align-items: flex-start;
    }

    .notification-icon {
        margin-bottom: var(--space-sm);
    }

    .notification-actions {
        margin-top: var(--space-sm);
        align-self: flex-start;
        width: 100%;
    }

    .notification-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   ORDERS PAGE
   ======================================== */

.orders-filters {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.orders-filter-select {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
}

.orders-filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.orders-search {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    position: relative;
}

.orders-search input {
    width: 100%;
    padding: var(--space-sm) var(--space-md) var(--space-sm) 40px;
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.orders-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.orders-search i {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.order-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: var(--space-md);
}

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

.order-id {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.order-date {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.order-total {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.order-card-body {
    padding: var(--space-lg);
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.order-item {
    display: flex;
    gap: var(--space-md);
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    overflow: hidden;
    flex-shrink: 0;
}

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

.order-item-details {
    flex: 1;
}

.order-item-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.order-item-seller {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.order-item-price {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* Order Progress */
.order-progress {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.order-progress-bar {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
}

.order-progress-step {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    position: relative;
}

.order-progress-step:first-child {
    border-radius: 2px 0 0 2px;
}

.order-progress-step:last-child {
    border-radius: 0 2px 2px 0;
}

.order-progress-step.is-completed {
    background: var(--success);
}

.order-progress-step.is-current {
    background: linear-gradient(to right, var(--success) 50%, var(--border-color) 50%);
}

.order-progress-labels {
    display: flex;
    justify-content: space-between;
}

.order-progress-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: center;
}

.order-progress-label.is-completed,
.order-progress-label.is-current {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-light);
    background: var(--bg-subtle);
}

.order-status-badge {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
}

.order-status-badge.is-processing {
    background: var(--info-light);
    color: var(--info);
}

.order-status-badge.is-shipped {
    background: #F5F3FF;
    color: #8B5CF6;
}

.order-status-badge.is-delivered {
    background: var(--success-light);
    color: var(--success);
}

.order-actions {
    display: flex;
    gap: var(--space-sm);
}

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

    .order-info {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .order-card-footer {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .order-actions {
        width: 100%;
    }

    .order-actions .btn {
        flex: 1;
    }
}

/* ========================================
   CART PAGE
   ======================================== */

.cart-page {
    padding: var(--space-xl) 0 80px;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.cart-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.cart-header .item-count {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    font-weight: var(--font-weight-normal);
    margin-left: var(--space-md);
}

.continue-shopping {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.continue-shopping:hover {
    color: var(--primary-dark);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
    align-items: start;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-item {
    display: flex;
    gap: var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-normal);
}

.cart-item:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cart-item-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
}

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

.cart-item-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: var(--space-xs);
}

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

.cart-item-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.item-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
}

.item-badge.grade {
    background: var(--info-light);
    color: var(--info);
}

.item-badge.condition {
    background: var(--bg-subtle);
    color: var(--text-secondary);
}

.cart-item-seller {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.cart-item-seller a {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.cart-item-seller a:hover {
    color: var(--primary-dark);
}

.cart-item-price {
    text-align: right;
}

.price-current {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.price-original {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-decoration: line-through;
    margin-top: 2px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.cart-item-shipping {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--success);
}

.cart-item-shipping.paid {
    color: var(--text-muted);
}

.cart-item-shipping i {
    font-size: 14px;
}

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

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background: var(--bg-white);
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--primary-subtle);
    color: var(--primary-dark);
}

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

.quantity-value {
    width: 36px;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.action-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn:hover {
    border-color: var(--border-color);
    color: var(--text-secondary);
    background: var(--bg-subtle);
}

.action-btn.remove:hover {
    border-color: var(--error);
    color: var(--error);
    background: var(--error-light);
}

.action-btn i {
    font-size: 14px;
}

/* Order Summary */
.order-summary {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: sticky;
    top: 100px;
}

.order-summary h2 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

.summary-row .label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.summary-row .value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.summary-row .value.free {
    color: var(--success);
}

.summary-row.total {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-xs);
}

.summary-row.total .label {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.summary-row.total .value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

/* Promo Code */
.promo-section {
    margin-bottom: var(--space-lg);
}

.promo-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.promo-toggle:hover {
    color: var(--primary-dark);
}

.promo-toggle i {
    font-size: 12px;
    transition: var(--transition-fast);
}

.promo-toggle.active i {
    transform: rotate(180deg);
}

.promo-input-group {
    display: none;
    margin-top: var(--space-md);
}

.promo-input-group.active {
    display: flex;
}

.promo-input-group input {
    flex: 1;
    padding: var(--space-md);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: inherit;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.promo-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
}

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

.promo-input-group button {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.promo-input-group button:hover {
    background: var(--primary-subtle);
    color: var(--primary-dark);
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    padding: 18px var(--space-lg);
    background: var(--primary);
    color: var(--near-black);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: var(--transition-normal);
    text-decoration: none;
    cursor: pointer;
}

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

.btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.trust-item i {
    font-size: var(--font-size-md);
    color: var(--success);
    width: 20px;
    text-align: center;
}

.payid-note {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--info-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.payid-note i {
    color: var(--info);
    font-size: var(--font-size-md);
    margin-top: 2px;
}

.payid-note p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.empty-cart-icon i {
    font-size: 48px;
    color: var(--text-muted);
}

.empty-cart h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.empty-cart p {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.btn-start-shopping {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--primary);
    color: var(--near-black);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: var(--transition-normal);
}

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

/* Mobile Checkout Bar */
.mobile-checkout-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.mobile-checkout-bar .total-display {
    display: flex;
    flex-direction: column;
}

.mobile-checkout-bar .total-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.mobile-checkout-bar .total-value {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.mobile-checkout-bar .btn-checkout {
    flex: 1;
    max-width: 200px;
    padding: 14px var(--space-lg);
}

@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .mobile-checkout-bar {
        display: flex;
    }

    .cart-page {
        padding-bottom: 120px;
    }

    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

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

    .cart-item-image {
        width: 100%;
        height: 160px;
    }

    .cart-item-top {
        flex-direction: column;
        gap: var(--space-md);
    }

    .cart-item-price {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: var(--space-lg) 0 60px;
    }

    .cart-header h1 {
        font-size: var(--font-size-2xl);
    }

    .cart-item {
        padding: var(--space-md);
    }

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

    .summary-row.total .value {
        font-size: var(--font-size-xl);
    }
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */

.checkout-page {
    padding: var(--space-xl) 0 80px;
}

.checkout-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.checkout-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.checkout-header p {
    font-size: var(--font-size-base);
    color: var(--text-muted);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.step-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--near-black);
}

.step.active .step-label {
    color: var(--text-primary);
}

.step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step.completed .step-label {
    color: var(--success);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 var(--space-md);
    transition: var(--transition-normal);
}

.step-connector.completed {
    background: var(--success);
}

/* Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-xl);
    align-items: start;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.step-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.step-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.step-card-header h2 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.edit-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    cursor: pointer;
}

.edit-link:hover {
    color: var(--primary-dark);
}

/* Address Selection */
.address-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.address-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.address-card:hover {
    border-color: var(--primary-light);
    background: var(--bg-white);
}

.address-card.selected {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.address-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.address-card.selected .address-radio {
    border-color: var(--primary);
}

.address-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-fast);
}

.address-card.selected .address-radio::after {
    opacity: 1;
    transform: scale(1);
}

.address-details {
    flex: 1;
}

.address-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.default-badge {
    padding: 2px 8px;
    background: var(--info-light);
    color: var(--info);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
}

.address-line {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.address-phone {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.btn-add-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-add-address:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--primary-subtle);
}

/* New Address Form */
.new-address-form {
    display: none;
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.new-address-form.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    padding: var(--space-md);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

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

.form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.btn-save-address {
    padding: var(--space-md) var(--space-lg);
    background: var(--primary);
    color: var(--near-black);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-save-address:hover {
    background: var(--primary-dark);
}

.btn-cancel {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-cancel:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* Review Section */
.review-section {
    margin-bottom: var(--space-lg);
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.review-section-header h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.selected-address {
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.selected-address .name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.selected-address .address {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.selected-address .phone {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.review-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.review-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.review-item-image {
    width: 64px;
    height: 64px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

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

.review-item-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-item-seller {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.review-item-qty {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: 4px;
}

.review-item-price {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    text-align: right;
    white-space: nowrap;
}

.shipping-method {
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.shipping-method i {
    font-size: 20px;
    color: var(--success);
}

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

.shipping-method-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.shipping-method-detail {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.shipping-method-price {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--success);
}

/* Confirm Step */
.confirm-summary {
    margin-bottom: var(--space-lg);
}

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

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

.confirm-row .label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.confirm-row .value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.confirm-row.total {
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 2px solid var(--border-color);
    border-bottom: none;
}

.confirm-row.total .label {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.confirm-row.total .value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.terms-checkbox {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    cursor: pointer;
}

.terms-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.checkbox-custom i {
    font-size: 12px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-fast);
}

.terms-checkbox input:checked+.checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.terms-checkbox input:checked+.checkbox-custom i {
    opacity: 1;
    transform: scale(1);
}

.terms-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.terms-text a {
    color: var(--primary-dark);
    font-weight: var(--font-weight-medium);
}

.terms-text a:hover {
    text-decoration: underline;
}

.payid-info {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--info-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.payid-info i {
    font-size: 24px;
    color: var(--info);
    flex-shrink: 0;
}

.payid-info-content h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.payid-info-content p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px var(--space-lg);
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.btn-continue {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px var(--space-xl);
    background: var(--primary);
    color: var(--near-black);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-normal);
    margin-left: auto;
}

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

.btn-continue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-commit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 18px 40px;
    background: var(--primary);
    color: var(--near-black);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-normal);
}

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

.btn-commit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Order Summary Sidebar (Checkout) */
.checkout-summary .summary-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.summary-item {
    display: flex;
    gap: var(--space-md);
}

.summary-item-image {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

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

.summary-item-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-item-qty {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.summary-item-price {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.summary-address {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.summary-address-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.summary-address-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
        order: -1;
    }

    .checkout-summary .summary-items {
        display: none;
    }
}

@media (max-width: 768px) {
    .step-indicator {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .step-connector {
        display: none;
    }

    .step {
        flex: 1;
        min-width: 80px;
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

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

    .step-navigation {
        flex-direction: column;
        gap: var(--space-md);
    }

    .btn-back {
        order: 2;
        justify-content: center;
    }

    .btn-continue,
    .btn-commit {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .checkout-page {
        padding: var(--space-lg) 0 60px;
    }

    .checkout-header h1 {
        font-size: var(--font-size-2xl);
    }

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

    .address-card {
        padding: var(--space-md);
    }

    .review-item {
        flex-direction: column;
        gap: var(--space-md);
    }

    .review-item-image {
        width: 100%;
        height: 80px;
    }

    .review-item-price {
        text-align: left;
    }
}

/* ========================================
   ORDER CONFIRMATION PAGE
   ======================================== */

.confirmation-page {
    padding: 48px 0 80px;
}

.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Status Header */
.status-header {
    text-align: center;
    margin-bottom: 40px;
}

.status-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.status-icon i {
    font-size: 48px;
}

/* Success State */
.status-header.success .status-icon {
    background: var(--success-light);
}

.status-header.success .status-icon i {
    color: var(--success);
}

/* Pending State */
.status-header.pending .status-icon {
    background: var(--warning-light);
}

.status-header.pending .status-icon i {
    color: var(--warning);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Failed State */
.status-header.failed .status-icon {
    background: var(--error-light);
}

.status-header.failed .status-icon i {
    color: var(--error);
}

.status-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.status-subtitle {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.order-number {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.order-number strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.order-number button {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.order-number button:hover {
    color: var(--primary-dark);
}

/* Next Steps */
.next-steps {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.next-steps h2 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.step-item {
    display: flex;
    gap: var(--space-md);
}

.step-item .step-number {
    width: 32px;
    height: 32px;
    background: var(--bg-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    flex-shrink: 0;
    border: none;
}

.step-item.completed .step-number {
    background: var(--success-light);
    color: var(--success);
}

.step-item.active .step-number {
    background: var(--primary);
    color: var(--near-black);
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-item.completed .step-title {
    color: var(--success);
}

.step-description {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Order Details (Confirmation) */
.order-details {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.order-details h2 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.confirmation-page .order-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.confirmation-page .order-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.confirmation-page .order-item-image {
    width: 72px;
    height: 72px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-page .order-item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.confirmation-page .order-item-details {
    flex: 1;
    min-width: 0;
}

.confirmation-page .order-item-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.confirmation-page .order-item-seller {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 4px;
}

.confirmation-page .order-item-qty {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.confirmation-page .order-item-price {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    text-align: right;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.order-info-section h3 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.order-info-content {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.order-info-content strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

.order-summary-totals {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--primary);
    color: var(--near-black);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

.btn-success {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-success:hover {
    background: var(--success-dark, #1a8754);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.btn-error {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--error);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-error:hover {
    background: #d43d4a;
    transform: translateY(-2px);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
}

/* Email Notice */
.email-notice {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--info-light);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.email-notice i {
    font-size: 24px;
    color: var(--info);
    flex-shrink: 0;
}

.email-notice-content {
    flex: 1;
}

.email-notice-content p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.email-notice-content strong {
    color: var(--text-primary);
}

/* Error Details */
.error-details {
    background: var(--error-light);
    border: 1px solid rgba(232, 72, 85, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.error-details h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--error);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.error-details p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.error-details ul {
    margin: var(--space-md) 0 0 var(--space-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.help-options {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition-fast);
}

.help-link:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .confirmation-page {
        padding: var(--space-xl) 0 60px;
    }

    .status-title {
        font-size: var(--font-size-2xl);
    }

    .order-info-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .confirmation-page .order-item {
        flex-direction: column;
        gap: var(--space-md);
    }

    .confirmation-page .order-item-image {
        width: 100%;
        height: 100px;
    }

    .confirmation-page .order-item-price {
        text-align: left;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons a,
    .action-buttons button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .status-icon {
        width: 80px;
        height: 80px;
    }

    .status-icon i {
        font-size: 36px;
    }

    .next-steps,
    .order-details {
        padding: var(--space-lg);
    }

    .help-options {
        flex-direction: column;
    }
}

/* ========================================
   SELLER DASHBOARD
   ======================================== */

/* Period Filter */
.seller-period-filter {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--space-lg);
}

.period-filter-select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-size: var(--text-sm);
    cursor: pointer;
}

/* Seller Stats Grid */
.seller-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.seller-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.seller-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.seller-stat-icon.views {
    background: #E0F2FE;
    color: #0369A1;
}

.seller-stat-icon.listings {
    background: #FEF3C7;
    color: #92400E;
}

.seller-stat-icon.sold {
    background: #D1FAE5;
    color: #047857;
}

.seller-stat-icon.revenue {
    background: #FCE7F3;
    color: #BE185D;
}

.seller-stat-content {
    flex: 1;
}

.seller-stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.seller-stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* Seller Charts Grid */
.seller-charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.seller-chart-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.seller-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.seller-chart-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.seller-chart-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: var(--space-xs) 0 0 0;
}

.chart-period-select {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    background: var(--bg-white);
    cursor: pointer;
}

.seller-chart-body {
    padding: var(--space-lg);
}

/* Donut Charts */
.donut-chart-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.donut-chart {
    position: relative;
    width: 140px;
    height: 70px;
    overflow: hidden;
}

.donut-svg {
    width: 140px;
    height: 140px;
    transform: translateY(-50%);
}

.donut-ring {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 3;
}

.donut-segment {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transform-origin: center;
}

.donut-segment.shipped,
.donut-segment.draft {
    stroke: #5c00a3;
}

.donut-segment.received,
.donut-segment.expired {
    stroke: #f05d3d;
}

.donut-segment.active {
    stroke: #009499;
}

.donut-segment.awaiting {
    stroke: #5c00a3;
}

.donut-segment.paid {
    stroke: #f05d3d;
}

.donut-center {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.donut-percent {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

/* Chart Legend */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.shipped,
.legend-dot.draft {
    background: #5c00a3;
}

.legend-dot.received,
.legend-dot.expired {
    background: #f05d3d;
}

.legend-dot.active {
    background: #009499;
}

.legend-dot.awaiting {
    background: #5c00a3;
}

.legend-dot.paid {
    background: #f05d3d;
}

.legend-label {
    color: var(--text-secondary);
}

.legend-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Seller Bottom Grid */
.seller-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.revenue-card .seller-chart-body {
    min-height: 280px;
}

.revenue-chart-container {
    height: 200px;
    margin-bottom: var(--space-lg);
}

.revenue-summary {
    display: flex;
    justify-content: center;
}

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

.revenue-amount {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.revenue-growth {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.revenue-growth.positive {
    background: #D1FAE5;
    color: #047857;
}

.revenue-growth.negative {
    background: #FEE2E2;
    color: #DC2626;
}

/* Disputes */
.disputes-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.dispute-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
}

.dispute-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.dispute-content {
    flex: 1;
    min-width: 0;
}

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

.dispute-date {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.dispute-reason {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.dispute-actions {
    display: flex;
    gap: var(--space-xs);
}

.dispute-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dispute-action-btn:hover {
    background: var(--primary);
    color: var(--text-dark);
}

.dispute-action-btn.delete:hover {
    background: var(--error);
    color: white;
}

/* Seller Quick Actions */
.seller-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    cursor: pointer;
}

.quick-action-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.quick-action-content {
    flex: 1;
}

.quick-action-content h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.quick-action-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: var(--space-xs) 0 0 0;
}

.quick-action-card>i {
    color: var(--text-muted);
}

/* ========================================
   LISTINGS PAGE
   ======================================== */

.listings-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.listings-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.listings-search i {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.listings-search input {
    width: 100%;
    padding: var(--space-sm) var(--space-md) var(--space-sm) 40px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.listings-search input:focus {
    border-color: var(--primary);
    outline: none;
}

.listings-filters {
    display: flex;
    gap: var(--space-sm);
}

/* Filter Toggle Button - Material Style */
.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--filter-height);
    padding: 0 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-toggle-btn i {
    font-size: 14px;
    color: var(--text-muted);
}

.filter-toggle-btn:hover {
    border-color: var(--text-muted);
    background: var(--bg-subtle);
}

.filter-toggle-btn.active {
    border-color: var(--accent-purple);
    background: rgba(142, 68, 236, 0.08);
    color: var(--accent-purple);
}

.filter-toggle-btn.active i {
    color: var(--accent-purple);
}

/* Sort Select - Material Style */
.listings-sort,
.filter-select select {
    appearance: none;
    height: var(--filter-height);
    padding: 0 40px 0 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.listings-sort:hover,
.filter-select select:hover {
    border-color: var(--text-muted);
}

.listings-sort:focus,
.filter-select select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(142, 68, 236, 0.1);
}

/* Expanded Filters Panel - Material Style */
.listings-expanded-filters,
.orders-expanded-filters {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-light);
}

.filter-form {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.filter-group select,
.filter-group input {
    height: var(--filter-height-sm);
    padding: 0 36px 0 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-size: 14px;
    color: var(--text-primary);
    min-width: 160px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

.filter-group select:hover,
.filter-group input:hover {
    border-color: var(--text-muted);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(142, 68, 236, 0.1);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
}

.filter-actions .btn {
    height: var(--filter-height-sm);
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
}

.filter-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-group select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Listings Table */
.listings-table-container,
.orders-table-container {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.listings-table,
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.listings-table th,
.listings-table td,
.orders-table th,
.orders-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.listings-table th,
.orders-table th {
    background: var(--bg-subtle);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listings-table tr:last-child td,
.orders-table tr:last-child td {
    border-bottom: none;
}

.listings-table tr:hover,
.orders-table tr:hover {
    background: var(--bg-subtle);
}

/* Listing Image */
.listing-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-subtle);
}

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

/* Listings/Orders/Bids Table - Placeholder for missing images */
.listings-table .listing-image-placeholder,
.orders-table .listing-image-placeholder,
.bids-table .listing-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: var(--radius-sm);
}

.listings-table .listing-image-placeholder i,
.orders-table .listing-image-placeholder i,
.bids-table .listing-image-placeholder i {
    font-size: 24px;
    color: rgba(0, 0, 0, 0.3);
}

/* Listing Product Info */
.listing-product-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.listing-product-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.listing-product-name:hover {
    color: var(--primary);
}

.listing-auction-end {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.listing-auction-end i {
    margin-right: var(--space-xs);
}

/* Listing Category */
.listing-category {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Listing Type Badge */
.listing-type {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
}

.listing-type.auction {
    background: #F3E8FF;
    color: #7C3AED;
}

.listing-type.sale {
    background: #DBEAFE;
    color: #2563EB;
}

/* Listing Price */
.listing-price {
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Listing Bids */
.listing-bids {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 var(--space-sm);
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Listing Status Badge */
.listing-status {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.listing-status.active {
    background: #D1FAE5;
    color: #047857;
}

.listing-status.draft {
    background: #FEF3C7;
    color: #92400E;
}

.listing-status.auction_closed,
.listing-status.expired {
    background: #FEE2E2;
    color: #DC2626;
}

/* Listing Actions */
.listing-actions,
.order-actions {
    display: flex;
    gap: var(--space-xs);
}

.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

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

/* Pagination */
.listings-pagination,
.orders-pagination,
.payouts-pagination,
.bids-pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
    gap: 8px;
    /* Space between items */
}

.pagination {
    display: flex;
    gap: 8px;
    padding-left: 0;
    list-style: none;
    border-radius: 0;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    color: #1e293b;
    /* Dark text */
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    /* Rounded corners */
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.page-item.active .page-link {
    background-color: #fbbf24;
    /* Orange/Yellow from image */
    border-color: #fbbf24;
    color: #000;
    font-weight: 600;
}

.page-item .page-link:hover:not(.active) {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

.page-item.disabled .page-link {
    color: #94a3b8;
    pointer-events: none;
    background-color: #fff;
    border-color: #e2e8f0;
}

/* Hide default pagination arrows if using custom SVG icons inside,
   but assuming Laravel default pagination links */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 8px !important;
}

.pagination-info {
    display: none;
    /* Hide the 'Showing x to y of z results' text if present next to it */
}

/* Empty State */
.listings-empty,
.orders-empty {
    text-align: center;
    padding: var(--space-3xl);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
}

.listings-empty h3,
.orders-empty h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
}

.listings-empty p,
.orders-empty p {
    color: var(--text-secondary);
    margin: 0 0 var(--space-lg) 0;
}

/* ========================================
   CREATE/EDIT LISTING PAGE
   ======================================== */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
    transition: var(--transition-fast);
}

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

.listing-form {
    max-width: 900px;
}

.form-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.form-section-header {
    padding: var(--space-lg);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

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

.form-section-hint {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    display: block;
}

.form-section-body {
    padding: var(--space-lg);
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-label .required {
    color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: var(--transition-fast);
}

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

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--error);
}

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

.form-error {
    display: block;
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* Input with Prefix */
.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: var(--space-md);
    color: var(--text-secondary);
    font-weight: 500;
}

.input-with-prefix .form-input {
    padding-left: 32px;
}

/* Image Upload */
.image-upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

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

.image-remove-btn,
.video-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.image-upload-btn,
.video-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.image-upload-btn:hover,
.video-upload-btn:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    text-align: center;
}

.upload-placeholder i {
    font-size: 24px;
    color: var(--primary);
}

.upload-placeholder span {
    font-size: var(--text-sm);
    font-weight: 500;
}

.upload-placeholder small {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.hidden {
    display: none;
}

/* Video Upload */
.video-upload-area {
    display: flex;
    gap: var(--space-md);
}

.video-upload-btn {
    width: 200px;
    height: 120px;
}

.video-preview {
    position: relative;
    width: 200px;
}

.video-preview video {
    width: 100%;
    border-radius: var(--radius-md);
}

/* Listing Type Selector */
.listing-type-selector {
    display: flex;
    gap: var(--space-md);
}

.type-option {
    flex: 1;
    padding: var(--space-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.type-option:hover {
    border-color: var(--primary);
}

.type-option.selected {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.type-option input {
    display: none;
}

.type-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.type-option-content i {
    font-size: 32px;
    color: var(--primary);
}

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

.type-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Shipping Type Selector */
.shipping-type-selector {
    display: flex;
    gap: var(--space-md);
}

.shipping-option {
    flex: 1;
    padding: var(--space-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.shipping-option:hover {
    border-color: var(--primary);
}

.shipping-option.selected {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.shipping-option input {
    display: none;
}

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

.shipping-option-content i {
    color: var(--primary);
}

/* Radio & Checkbox Groups */
.radio-group {
    display: flex;
    gap: var(--space-lg);
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.radio-option input,
.checkbox-option input {
    accent-color: var(--primary);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding-top: var(--space-lg);
}

/* ========================================
   SELLER ORDERS PAGE
   ======================================== */

/* ========================================
   UNIFIED TOOLBAR & FILTERS (Material UI Style)
   ======================================== */

/* Common height for all filter elements */
:root {
    --filter-height: 48px;
    --filter-height-sm: 40px;
}

.orders-toolbar,
.listings-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

/* Search Input - Material Style */
.orders-search,
.listings-search {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.orders-search i,
.listings-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.orders-search input,
.listings-search input {
    width: 100%;
    height: var(--filter-height);
    padding: 0 16px 0 48px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 15px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.orders-search input:hover,
.listings-search input:hover {
    border-color: var(--text-muted);
}

.orders-search input:focus,
.listings-search input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(142, 68, 236, 0.1);
}

.orders-search input::placeholder,
.listings-search input::placeholder {
    color: var(--text-muted);
}

/* Filters Container */
.orders-filters,
.listings-filters {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Order Tabs */
/* Status Tabs - Material Style */
.orders-tabs,
.listings-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.orders-tabs::-webkit-scrollbar,
.listings-tabs::-webkit-scrollbar {
    display: none;
}

.orders-tab,
.listings-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--filter-height);
    padding: 0 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}

.orders-tab i,
.listings-tab i {
    font-size: 14px;
}

.orders-tab:hover,
.listings-tab:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(142, 68, 236, 0.04);
}

.orders-tab.active,
.listings-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-dark);
    font-weight: 600;
}

.orders-tab.active i,
.listings-tab.active i {
    color: var(--text-dark);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--error);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}

.orders-tab.active .tab-badge,
.listings-tab.active .tab-badge {
    background: var(--text-dark);
    color: var(--primary);
}

/* Order Product */
.order-product {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.order-product-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.order-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-sm);
}

.order-image-placeholder i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.order-product-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* Order Number */
.order-number {
    font-weight: 600;
    color: var(--text-primary);
}

.cancel-request {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--error);
    margin-top: var(--space-xs);
}

/* Order Buyer */
.buyer-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* Order Type */
.order-type {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
}

.order-type.auction {
    background: #F3E8FF;
    color: #7C3AED;
}

.order-type.sale,
.order-type.fixed {
    background: #DBEAFE;
    color: #2563EB;
}

/* Order Date */
.order-date {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
}

.order-time {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Order Price */
.order-price {
    font-weight: 600;
    color: var(--text-primary);
}

/* Order Status */
.order-status {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pending {
    background: #FEF3C7;
    color: #92400E;
}

.order-status.processing {
    background: #DBEAFE;
    color: #2563EB;
}

.order-status.shipped {
    background: #E0E7FF;
    color: #4338CA;
}

.order-status.delivered {
    background: #D1FAE5;
    color: #047857;
}

.order-status.cancelled {
    background: #FEE2E2;
    color: #DC2626;
}

/* Status Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-subtle);
}

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

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

/* ========================================
   ANALYTICS PAGE
   ======================================== */

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.period-tabs {
    display: flex;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
}

.period-tab {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.period-tab.active {
    background: var(--bg-white);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Analytics Metrics */
.analytics-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.analytics-metric-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.metric-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.metric-change {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 500;
}

.metric-change.positive {
    color: #047857;
}

.metric-change.negative {
    color: #DC2626;
}

.metric-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.metric-comparison {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Analytics Charts */
.analytics-chart-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.analytics-chart-card.full-width {
    margin-bottom: var(--space-lg);
}

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

.analytics-chart-header h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0;
}

.chart-link {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 500;
}

.chart-legend-inline {
    display: flex;
    gap: var(--space-lg);
}

.chart-legend-inline .legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.chart-legend-inline .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chart-legend-inline .dot.revenue {
    background: var(--primary);
}

.chart-legend-inline .dot.orders {
    background: #8e44ec;
}

.analytics-chart-body {
    padding: var(--space-lg);
}

.analytics-charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Top Products */
.top-products-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.top-product-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.product-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.top-product-item:nth-child(1) .product-rank {
    background: var(--primary);
    color: var(--text-dark);
}

.top-product-item:nth-child(2) .product-rank {
    background: #C0C0C0;
    color: var(--text-dark);
}

.top-product-item:nth-child(3) .product-rank {
    background: #CD7F32;
    color: white;
}

.product-image {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.product-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-stats {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.product-revenue {
    font-weight: 600;
    color: var(--text-primary);
}

/* Traffic Chart */
.traffic-chart-container {
    height: 200px;
    margin-bottom: var(--space-lg);
}

.traffic-legend {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

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

.traffic-legend-item .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.traffic-legend-item .legend-label {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.traffic-legend-item .legend-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Category Performance Table */
.category-performance-table {
    overflow-x: auto;
}

.category-performance-table table {
    width: 100%;
    border-collapse: collapse;
}

.category-performance-table th,
.category-performance-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.category-performance-table th {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.category-performance-table tr:last-child td {
    border-bottom: none;
}

.conversion-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    background: var(--bg-subtle);
    color: var(--text-secondary);
}

.conversion-badge.good {
    background: #D1FAE5;
    color: #047857;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.activity-feed-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.activity-feed-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-feed-icon.sale {
    background: #D1FAE5;
    color: #047857;
}

.activity-feed-icon.bid {
    background: #F3E8FF;
    color: #7C3AED;
}

.activity-feed-icon.view {
    background: #DBEAFE;
    color: #2563EB;
}

.activity-feed-icon.review {
    background: #FEF3C7;
    color: #92400E;
}

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

.activity-feed-content p {
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-primary);
}

.activity-feed-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ========================================
   SELLER DASHBOARD RESPONSIVE
   ======================================== */

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

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

    .seller-charts-grid .seller-chart-card:last-child {
        grid-column: span 2;
    }

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

@media (max-width: 1024px) {
    .seller-bottom-grid {
        grid-template-columns: 1fr;
    }

    .seller-quick-actions {
        grid-template-columns: 1fr;
    }

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

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

    .seller-charts-grid {
        grid-template-columns: 1fr;
    }

    .seller-charts-grid .seller-chart-card:last-child {
        grid-column: span 1;
    }

    .listings-toolbar,
    .orders-toolbar,
    .listings-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .listings-search,
    .orders-search {
        max-width: none;
    }

    .listings-filters,
    .orders-filters {
        justify-content: stretch;
    }

    .listings-filters>*,
    .orders-filters>* {
        flex: 1;
    }

    .filter-toggle-btn {
        flex: 0 0 auto;
    }

    .filter-select {
        flex: 1;
    }

    .filter-select select {
        width: 100%;
    }

    .listings-expanded-filters,
    .orders-expanded-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }

    .filter-actions {
        margin-left: 0;
        margin-top: var(--space-sm);
    }

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

    .listing-type-selector,
    .shipping-type-selector {
        flex-direction: column;
    }

    .orders-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .analytics-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .analytics-metrics-grid {
        grid-template-columns: 1fr;
    }

    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hide-tablet {
        display: none !important;
    }

    .period-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .period-tab {
        padding: var(--space-sm) var(--space-md);
        white-space: nowrap;
    }

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

    .form-actions .btn {
        width: 100%;
    }
}

/* ========================================
   ACCOUNT SETTINGS PAGES
   ======================================== */

/* Settings Layout */
.settings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
}

/* Settings Navigation */
.settings-nav {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    height: fit-content;
    position: sticky;
    top: var(--space-lg);
}

.settings-nav-header {
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-md);
}

.settings-nav-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.settings-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.settings-nav-link:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.settings-nav-link.active {
    background: var(--primary-subtle);
    color: var(--primary-dark);
}

.settings-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Settings Page Container */
.settings-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.settings-page>form,
.settings-page>.addresses-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Settings Content */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Settings Section */
.settings-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.settings-section-header {
    margin-bottom: var(--space-lg);
}

.settings-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.settings-section-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.settings-section-danger {
    border-color: var(--error-border);
    background: var(--error-subtle);
}

.settings-section-danger .settings-section-header h3 {
    color: var(--error-dark);
}

/* Profile Cover Section */
.profile-cover-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.profile-cover {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

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

.profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.profile-cover:hover .profile-cover-overlay {
    opacity: 1;
}

.cover-upload-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cover-upload-btn:hover {
    background: var(--bg-white);
}

/* Profile Avatar */
.profile-avatar-wrapper {
    display: flex;
    align-items: flex-end;
    gap: var(--space-lg);
    padding: 0 var(--space-xl) var(--space-xl);
    margin-top: -60px;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    background: var(--bg-light);
    overflow: hidden;
    flex-shrink: 0;
}

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

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.avatar-upload-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.profile-avatar-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.profile-avatar-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--error);
}

.form-group .form-control {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition-fast);
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-group .form-control:read-only {
    background: var(--bg-light);
    color: var(--text-muted);
}

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

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

/* Input with Prefix */
.input-with-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--text-muted);
    font-size: 14px;
}

.input-with-prefix .form-control {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Input with Toggle (Password) */
.input-with-toggle {
    position: relative;
}

.input-with-toggle .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.form-actions-inline {
    border-top: none;
    padding-top: 0;
    justify-content: flex-start;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-color);
    border-radius: 26px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--bg-white);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(22px);
}

/* Security Options */
.security-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

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

.security-option-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-subtle);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.security-option-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.security-option-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* KYC Status Card */
.kyc-status-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.kyc-status-card.verified {
    background: var(--success-subtle);
    border: 1px solid var(--success-border);
}

.kyc-status-card.unverified {
    background: var(--warning-subtle);
    border: 1px solid var(--warning-border);
}

.kyc-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.kyc-status-card.verified .kyc-status-icon {
    background: var(--success);
    color: var(--bg-white);
}

.kyc-status-card.unverified .kyc-status-icon {
    background: var(--warning);
    color: var(--text-dark);
}

.kyc-status-info {
    flex: 1;
}

.kyc-status-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 var(--space-xs) 0;
}

.kyc-status-card.verified .kyc-status-info h4 {
    color: var(--success-dark);
}

.kyc-status-card.unverified .kyc-status-info h4 {
    color: var(--warning-dark);
}

.kyc-status-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Notification Options */
.notification-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.notification-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.notification-option-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.notification-option-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Danger Actions */
.danger-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.danger-action-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--error-dark);
    margin: 0 0 var(--space-xs) 0;
}

.danger-action-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.closure-pending-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--warning-subtle);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-md);
    color: var(--warning-dark);
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   ADDRESSES PAGE
   ======================================== */

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.address-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.address-card.default {
    border-color: var(--primary);
}

.address-default-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--primary);
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.address-type {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

.address-type i {
    color: var(--primary);
}

.address-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
}

.address-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.address-phone {
    margin-top: var(--space-sm) !important;
    color: var(--text-muted) !important;
}

.address-phone i {
    margin-right: var(--space-xs);
}

.address-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.address-actions .btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: 13px;
}

/* Add Address Card */
.address-card-add {
    border-style: dashed;
    border-width: 2px;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.address-card-add:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.add-address-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
}

.add-address-content i {
    font-size: 32px;
    color: var(--primary);
}

.add-address-content span {
    font-size: 14px;
    font-weight: 500;
}

/* Address Type Selector */
.address-type-selector {
    display: flex;
    gap: var(--space-md);
}

.type-option {
    flex: 1;
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.type-option-content i {
    font-size: 24px;
    color: var(--text-muted);
}

.type-option input:checked+.type-option-content {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.type-option input:checked+.type-option-content i {
    color: var(--primary-dark);
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-weight: 400 !important;
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: var(--transition-fast);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-md {
    max-width: 600px;
}

.modal-lg {
    max-width: 800px;
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

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

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

/* ========================================
   ACCOUNT SETTINGS RESPONSIVE
   ======================================== */

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

    .settings-nav {
        position: relative;
        top: 0;
    }

    .settings-nav-links {
        flex-direction: row;
        overflow-x: auto;
        gap: var(--space-sm);
        padding-bottom: var(--space-xs);
    }

    .settings-nav-link {
        white-space: nowrap;
    }

    .settings-nav-header {
        display: none;
    }
}

@media (max-width: 768px) {
    .profile-cover {
        height: 150px;
    }

    .profile-avatar-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
        padding: 0 var(--space-md) var(--space-lg);
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

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

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

    .security-option-info {
        flex-direction: column;
    }

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

    .danger-action {
        flex-direction: column;
        text-align: center;
    }

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

    .address-type-selector {
        flex-direction: column;
    }

    .modal-container {
        margin: var(--space-md);
        max-height: calc(100vh - var(--space-xl));
    }
}

@media (max-width: 480px) {
    .settings-section {
        padding: var(--space-md);
    }

    .profile-cover-section {
        margin-bottom: var(--space-md);
    }

    .settings-nav-link span {
        display: none;
    }

    .settings-nav-link {
        padding: var(--space-sm);
    }

    .settings-nav-link i {
        font-size: 18px;
    }

    .notification-option {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}

/* ========================================
   MEMBERSHIP PAGE
   ======================================== */

/* Current Plan Card */
.current-plan-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--bg-white) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
}

.current-plan-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

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

.current-plan-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.current-plan-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 var(--space-sm) 0;
}

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

.plan-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-status {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-status.active {
    background: var(--success-subtle);
    color: var(--success-dark);
}

/* Membership Plans Grid */
.membership-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.membership-plan-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}

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

.membership-plan-card.featured {
    border-color: var(--primary);
    border-width: 2px;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(90deg, #DEA327 0%, #996E14 100%);
    color: var(--bg-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.plan-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto var(--space-md);
}

.plan-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
}

.membership-plan-card .plan-price {
    margin-bottom: var(--space-md);
}

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

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

.plan-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 var(--space-lg) 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl) 0;
    text-align: left;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-features li i {
    color: var(--success);
    margin-top: 2px;
}

/* Rewards Overview */
.rewards-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.rewards-stat {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.rewards-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

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

.rewards-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.rewards-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.benefit-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto var(--space-md);
}

.benefit-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   PAYMENT METHODS PAGE
   ======================================== */

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.payment-method-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
}

.payment-method-card.default {
    border-color: var(--primary);
}

.payment-default-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 2px var(--space-sm);
    background: var(--primary);
    color: var(--text-dark);
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.payment-method-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.payment-method-icon.visa {
    color: #1A1F71;
}

.payment-method-icon.mastercard {
    color: #EB001B;
}

.payment-method-icon i.fa-cc-visa {
    color: #1A1F71;
}

.payment-method-icon i.fa-cc-mastercard {
    color: #EB001B;
}

.payment-method-icon i.fa-cc-amex {
    color: #006FCF;
}

.payment-method-icon i.fa-paypal {
    color: #003087;
}

.payment-method-icon i.fa-university {
    color: var(--text-secondary);
}

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

.payment-method-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.payment-method-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.payment-method-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Add Payment Method Card */
.payment-method-add {
    border-style: dashed;
    border-width: 2px;
    cursor: pointer;
    justify-content: center;
    min-height: 120px;
    transition: var(--transition-fast);
}

.payment-method-add:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.add-payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
}

.add-payment-content i {
    font-size: 32px;
    color: var(--primary);
}

.add-payment-content span {
    font-size: 14px;
    font-weight: 500;
}

/* Payment Type Selector */
.payment-type-selector {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.payment-type-option {
    flex: 1;
    cursor: pointer;
}

.payment-type-option input {
    display: none;
}

.payment-type-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.payment-type-content i {
    font-size: 20px;
}

.payment-type-option input:checked+.payment-type-content {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

/* Payout Options */
.payout-option {
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.payout-option-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.payout-option-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.payout-option-title h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.payout-option-title p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.payout-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.payout-divider::before,
.payout-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.payout-divider span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.current-payout-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--success-subtle);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--success-dark);
    font-size: 14px;
}

.current-payout-info i {
    font-size: 18px;
}

/* Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.transaction-icon.payment {
    background: var(--error-subtle);
    color: var(--error);
}

.transaction-icon.payout {
    background: var(--success-subtle);
    color: var(--success);
}

.transaction-info {
    flex: 1;
}

.transaction-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.transaction-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 600;
}

.transaction-amount.payment {
    color: var(--error);
}

.transaction-amount.payout {
    color: var(--success);
}

.transactions-footer {
    padding-top: var(--space-md);
    text-align: center;
}

/* PayPal Button */
.btn-paypal {
    background: #003087;
    color: #fff;
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition-fast);
}

.btn-paypal:hover {
    background: #001F5C;
}

.paypal-connect {
    text-align: center;
    padding: var(--space-xl);
}

.paypal-connect p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

/* ========================================
   MEMBERSHIP/PAYMENT RESPONSIVE
   ======================================== */

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

@media (max-width: 768px) {
    .current-plan-card {
        flex-direction: column;
        text-align: center;
    }

    .current-plan-meta {
        justify-content: center;
    }

    .membership-plans-grid {
        grid-template-columns: 1fr;
    }

    .rewards-overview {
        grid-template-columns: 1fr;
    }

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

    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .payment-type-selector {
        flex-direction: column;
    }

    .payout-option-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .membership-plan-card {
        padding: var(--space-lg);
    }

    .plan-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .price-amount {
        font-size: 28px;
    }

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

    .transaction-item {
        flex-wrap: wrap;
    }

    .transaction-amount {
        width: 100%;
        text-align: right;
        margin-top: var(--space-xs);
    }
}

/* ========================================
   NOTIFICATION SETTINGS PAGE
   ======================================== */

/* Notification Toggle Rows */
.notification-group {
    border-bottom: 1px solid var(--border-light);
}

.notification-group:last-child {
    border-bottom: none;
}

.notification-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-light);
}

.notification-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.channel-labels {
    display: flex;
    gap: 32px;
}

.channel-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 60px;
    text-align: center;
}

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

.notification-info {
    flex: 1;
    padding-right: 24px;
}

.notification-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-description {
    font-size: 13px;
    color: var(--text-muted);
}

.notification-channels {
    display: flex;
    gap: 32px;
}

.channel-toggle {
    width: 60px;
    display: flex;
    justify-content: center;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

/* Frequency Select */
.frequency-section {
    padding: 24px;
}

.frequency-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.frequency-option:last-child {
    margin-bottom: 0;
}

.frequency-option:hover {
    border-color: var(--primary);
}

.frequency-option.selected {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.frequency-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.frequency-option.selected .frequency-radio {
    border-color: var(--primary);
}

.frequency-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-fast);
}

.frequency-option.selected .frequency-radio::after {
    opacity: 1;
    transform: scale(1);
}

.frequency-info {
    flex: 1;
    cursor: pointer;
}

.frequency-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.frequency-description {
    font-size: 13px;
    color: var(--text-muted);
}

/* Unsubscribe Section */
.unsubscribe-section {
    padding: 24px;
    border-top: 1px solid var(--border-light);
}

.unsubscribe-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--error-light);
    border-radius: var(--radius-md);
}

.unsubscribe-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--error);
    flex-shrink: 0;
}

.unsubscribe-info {
    flex: 1;
}

.unsubscribe-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.unsubscribe-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #D43D4A;
    transform: translateY(-1px);
}

/* Success Toast */
.success-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--success);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1000;
}

.success-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.success-toast i {
    font-size: 18px;
}

/* Notification Settings Mobile Responsive */
@media (max-width: 768px) {
    .notification-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .notification-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .notification-info {
        padding-right: 0;
    }

    .notification-channels {
        width: 100%;
        justify-content: space-between;
    }

    .channel-toggle {
        width: auto;
    }

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

    .frequency-option {
        flex-wrap: wrap;
    }
}

/* ========================================
   HELP / FAQ PAGE
   ======================================== */

/* Hero Section */
.help-hero {
    padding: 160px 0 80px;
    background: var(--dark-navy);
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 184, 34, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.help-hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.help-hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-inverse);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.help-hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Hero Search */
.help-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.help-search input {
    width: 100%;
    padding: 20px 60px 20px 56px;
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

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

.help-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--primary-subtle);
}

.help-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
    transition: var(--transition-fast);
    pointer-events: none;
}

.help-search input:focus~.help-search-icon {
    color: var(--primary);
}

.help-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.help-search-clear:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.help-search.has-value .help-search-clear {
    display: flex;
}

/* Search Results */
.help-search-results {
    text-align: center;
    padding: 16px 0;
    color: var(--text-secondary);
    font-size: 14px;
    display: none;
}

.help-search-results.visible {
    display: block;
}

.help-search-results strong {
    color: var(--primary-dark);
}

/* Categories Section */
.help-categories {
    padding: 80px 0;
    background: var(--bg-light);
}

.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.help-category-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    color: inherit;
}

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

.help-category-card.hidden {
    display: none;
}

.help-category-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-subtle);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--primary-dark);
    transition: var(--transition-normal);
}

.help-category-card:hover .help-category-icon {
    background: var(--primary);
    color: var(--dark-navy);
    box-shadow: var(--shadow-glow);
}

.help-category-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.help-category-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* FAQ Container */
.help-faq-container {
    padding: 80px 0;
    background: var(--bg-white);
}

.help-faq-section {
    margin-bottom: 64px;
    scroll-margin-top: 100px;
}

.help-faq-section:last-child {
    margin-bottom: 0;
}

.help-faq-section.hidden {
    display: none;
}

/* FAQ Section Header */
.help-faq-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.help-faq-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.help-faq-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* FAQ Accordion */
.help-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.help-faq-item:hover {
    border-color: var(--border-color);
}

.help-faq-item.hidden {
    display: none;
}

.help-faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.help-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    background: transparent;
    border: none;
}

.help-faq-question:hover {
    color: var(--primary-dark);
}

.help-faq-question i {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.help-faq-item.active .help-faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.help-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.help-faq-answer-content {
    padding: 0 24px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.help-faq-answer-content a {
    color: var(--primary-dark);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.help-faq-answer-content a:hover {
    text-decoration: underline;
}

.help-faq-answer-content ul {
    margin: 12px 0;
    padding-left: 20px;
    list-style: disc;
}

.help-faq-answer-content ul li {
    margin-bottom: 8px;
}

.help-faq-answer-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* No Results */
.help-no-results {
    display: none;
    text-align: center;
    padding: 80px 24px;
}

.help-no-results.visible {
    display: block;
}

.help-no-results-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--text-muted);
}

.help-no-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.help-no-results p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Contact CTA Section */
.help-contact-cta {
    padding: 80px 0;
    background: var(--bg-light);
}

.help-contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: 64px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

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

.help-contact-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.help-contact-card p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 32px;
}

.help-contact-options {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.help-contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-normal);
    text-decoration: none;
}

.help-contact-option:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
    transform: translateY(-2px);
}

.help-contact-option i {
    font-size: 18px;
    color: var(--primary-dark);
}

/* Help Page Responsive */
@media (max-width: 1024px) {
    .help-hero h1 {
        font-size: 40px;
    }

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

@media (max-width: 768px) {
    .help-hero {
        padding: 140px 0 60px;
    }

    .help-hero h1 {
        font-size: 32px;
    }

    .help-hero-subtitle {
        font-size: 16px;
    }

    .help-search input {
        padding: 16px 50px 16px 48px;
        font-size: 15px;
    }

    .help-categories,
    .help-faq-container,
    .help-contact-cta {
        padding: 60px 0;
    }

    .help-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .help-category-card {
        padding: 24px 16px;
    }

    .help-category-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .help-category-card h3 {
        font-size: 14px;
    }

    .help-category-card p {
        display: none;
    }

    .help-faq-header h2 {
        font-size: 20px;
    }

    .help-faq-question {
        padding: 16px 20px;
        font-size: 14px;
    }

    .help-faq-answer-content {
        padding: 0 20px 20px;
        font-size: 14px;
    }

    .help-contact-card {
        padding: 40px 24px;
    }

    .help-contact-card h2 {
        font-size: 24px;
    }

    .help-contact-options {
        flex-direction: column;
    }

    .help-contact-option {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .help-hero h1 {
        font-size: 28px;
    }

    .help-categories-grid {
        grid-template-columns: 1fr;
    }

    .help-category-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 16px;
        row-gap: 4px;
        align-items: center;
        text-align: left;
        padding: 20px;
    }

    .help-category-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0;
        align-self: center;
    }

    .help-category-card h3 {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin-bottom: 0;
    }

    .help-category-card p {
        display: block;
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        margin: 0;
    }
}

/* ========================================
   CONTACT US PAGE
   ======================================== */

/* Hero Section */
.contact-hero {
    padding: 160px 0 80px;
    background: var(--dark-navy);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 184, 34, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-inverse);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact-main {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    align-items: start;
}

/* Contact Form */
.contact-form-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.contact-form-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-form-card>p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-form-group {
    margin-bottom: 24px;
}

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

.contact-form-group label .required {
    color: var(--error);
}

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

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

.contact-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-subtle);
    background: var(--bg-white);
}

.contact-form-input.error {
    border-color: var(--error);
    background: var(--error-light);
}

.contact-form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(232, 72, 85, 0.1);
}

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

.contact-form-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E7C93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: var(--transition-normal);
    font-family: inherit;
}

.contact-form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-subtle);
    background-color: var(--bg-white);
}

.contact-form-select.error {
    border-color: var(--error);
    background-color: var(--error-light);
}

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

.contact-error-message {
    display: none;
    font-size: 13px;
    color: var(--error);
    margin-top: 6px;
}

.contact-form-group.has-error .contact-error-message {
    display: block;
}

.contact-form-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.contact-btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--dark-navy);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.contact-btn-submit:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.contact-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: var(--dark-navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.contact-btn-submit.loading .contact-spinner {
    display: block;
}

.contact-btn-submit.loading .contact-btn-text {
    display: none;
}

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

/* Success State */
.contact-form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.contact-form-success.visible {
    display: block;
}

.contact-success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: var(--success);
}

.contact-form-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-form-success p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Contact Info Sidebar */
.contact-info {
    position: sticky;
    top: 120px;
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-method:first-of-type {
    padding-top: 0;
}

.contact-method:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.contact-method-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-method-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.contact-method-content a {
    color: var(--primary-dark);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-method-content a:hover {
    text-decoration: underline;
}

/* Help Link Card */
.contact-help-link-card {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--charcoal) 100%);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
}

.contact-help-link-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: 8px;
}

.contact-help-link-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--dark-navy);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    text-decoration: none;
}

.contact-help-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Contact Page Responsive */
@media (max-width: 1024px) {
    .contact-hero h1 {
        font-size: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .contact-info-card,
    .contact-help-link-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 140px 0 60px;
    }

    .contact-hero h1 {
        font-size: 32px;
    }

    .contact-hero-subtitle {
        font-size: 16px;
    }

    .contact-main {
        padding: 60px 0;
    }

    .contact-form-card {
        padding: 32px 24px;
    }

    .contact-form-card h2 {
        font-size: 20px;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 28px;
    }

    .contact-form-card {
        padding: 24px 20px;
    }
}

/* ========================================
   EDIT LISTING PAGE STYLES
   ======================================== */

/* Listing Status Banner */
.listing-status-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.listing-status-banner.warning {
    background: #FFF7ED;
    border-color: #FDBA74;
}

.listing-status-banner .status-icon {
    width: 48px;
    height: 48px;
    background: #FB923C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.listing-status-banner .status-icon i {
    font-size: 20px;
    color: var(--bg-white);
}

.listing-status-banner .status-content {
    flex: 1;
}

.listing-status-banner .status-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #9A3412;
    margin-bottom: 4px;
}

.listing-status-banner .status-content p {
    font-size: 14px;
    color: #C2410C;
    line-height: 1.5;
    margin: 0;
}

.listing-status-banner .status-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-left: 20px;
    border-left: 1px solid #FDBA74;
}

.listing-status-banner .bid-count {
    font-size: 28px;
    font-weight: 700;
    color: #EA580C;
    line-height: 1;
}

.listing-status-banner .bid-label {
    font-size: 11px;
    font-weight: 500;
    color: #C2410C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stepper-item {
    display: flex;
    align-items: center;
}

.stepper-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.stepper-circle {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.stepper-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.stepper-item.active .stepper-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--near-black);
    box-shadow: 0 0 0 4px var(--primary-subtle);
}

.stepper-item.active .stepper-label {
    color: var(--text-primary);
    font-weight: 600;
}

.stepper-item.completed .stepper-circle {
    background: var(--success);
    border-color: var(--success);
    color: var(--bg-white);
}

.stepper-item.completed .stepper-label {
    color: var(--text-secondary);
}

.stepper-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 8px;
}

/* Wizard Container */
.wizard-container {
    position: relative;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

/* Form Cards */
.form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.form-card.locked {
    background: var(--bg-light);
    opacity: 0.85;
}

.form-card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.form-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-card-description {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.form-card-body {
    padding: 24px;
}

.locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: #DC2626;
    margin-left: auto;
}

/* Photo Upload Grid */
.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.photo-upload-item {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    overflow: hidden;
}

.photo-upload-item:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.photo-upload-item i {
    font-size: 24px;
    color: var(--text-muted);
}

.photo-upload-item.has-image {
    border-style: solid;
    border-color: var(--border-color);
    background: var(--bg-white);
}

.photo-upload-item.has-image:hover {
    border-color: var(--primary);
}

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

.photo-upload-item.cover {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-upload-item .cover-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    background: var(--primary);
    color: var(--near-black);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.photo-upload-item .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 2;
}

.photo-upload-item:hover .remove-btn {
    opacity: 1;
}

.photo-upload-item .remove-btn:hover {
    background: var(--error);
}

.upload-hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* Video Upload */
.video-upload-area {
    position: relative;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.video-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.video-upload-area.has-video {
    border-style: solid;
    padding: 0;
    cursor: default;
}

.video-upload-placeholder {
    display: flex;
    align-items: center;
    gap: 16px;
}

.video-upload-area.has-video .video-upload-placeholder {
    display: none;
}

.video-upload-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-upload-icon i {
    font-size: 24px;
    color: var(--primary);
}

.video-upload-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.video-upload-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.video-preview {
    position: relative;
}

.video-preview video {
    width: 100%;
    border-radius: var(--radius-md);
}

.video-remove-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--bg-white);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.video-remove-btn:hover {
    background: var(--error);
}

/* Listing Type Options */
.listing-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.listing-type-option {
    position: relative;
}

.listing-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.listing-type-option label {
    display: block;
    padding: 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.listing-type-option.locked label {
    cursor: not-allowed;
    opacity: 0.6;
}

.listing-type-option input:checked+label {
    background: var(--primary-subtle);
    border-color: var(--primary);
}

.listing-type-option label:hover:not(.locked label) {
    border-color: var(--primary-light);
}

.listing-type-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.listing-type-header i {
    font-size: 20px;
    color: var(--primary);
}

.listing-type-header span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.listing-type-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Category Selects */
.category-selects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-select-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Condition Options */
.condition-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.condition-option {
    position: relative;
}

.condition-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.condition-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.condition-option input:checked+label {
    background: var(--primary-subtle);
    border-color: var(--primary);
}

.condition-option label:hover {
    border-color: var(--primary-light);
}

.condition-option i {
    font-size: 24px;
    color: var(--primary);
}

.condition-option span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.condition-option small {
    font-size: 12px;
    color: var(--text-muted);
}

/* Price Input Group */
.price-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.price-input-group .currency {
    position: absolute;
    left: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    pointer-events: none;
}

.price-input-group input {
    padding-left: 36px;
}

/* Shipping Options */
.shipping-options {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.shipping-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.shipping-option:hover {
    border-color: var(--primary-light);
}

.shipping-option.selected {
    background: var(--primary-subtle);
    border-color: var(--primary);
}

.shipping-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-fast);
}

.shipping-option.selected .shipping-radio {
    border-color: var(--primary);
}

.shipping-option.selected .shipping-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.shipping-content {
    flex: 1;
}

.shipping-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.shipping-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.shipping-price-input {
    max-width: 200px;
}

.shipping-option:not(.selected) .shipping-price-input {
    display: none;
}

/* Info Banner */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--info-light);
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-sm);
    margin-top: 20px;
}

.info-banner i {
    font-size: 18px;
    color: var(--info);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-banner p {
    font-size: 13px;
    color: #1E40AF;
    line-height: 1.5;
    margin: 0;
}

/* Review Sections */
.review-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.review-section:last-child {
    border-bottom: none;
}

.review-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.review-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.review-edit-btn {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.review-edit-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.review-photos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.review-photo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.review-photo.cover {
    border-color: var(--primary);
}

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

.review-video {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.review-video i {
    color: var(--primary);
}

.review-video span {
    font-size: 13px;
    color: var(--text-secondary);
}

.review-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 20px;
}

.review-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.review-value {
    font-size: 14px;
    color: var(--text-primary);
}

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

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.review-badge.auction {
    background: #FEF3C7;
    color: #92400E;
}

.review-badge.buynow {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

/* Danger Zone */
.danger-zone {
    background: var(--bg-white);
    border: 2px solid #FCA5A5;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.danger-zone-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.danger-zone-header i {
    font-size: 24px;
    color: var(--error);
    margin-top: 2px;
}

.danger-zone-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--error);
    margin-bottom: 4px;
}

.danger-zone-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.btn-danger {
    background: var(--error);
    color: var(--bg-white);
    border: 1px solid var(--error);
}

.btn-danger:hover {
    background: #DC2626;
    border-color: #DC2626;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 21, 41, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

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

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon.success {
    background: var(--success-light);
}

.modal-icon.success i {
    font-size: 28px;
    color: var(--success);
}

.modal-icon.danger {
    background: var(--error-light);
}

.modal-icon.danger i {
    font-size: 28px;
    color: var(--error);
}

.modal h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Form Hint Warning */
.form-hint.warning {
    color: #DC2626;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-hint.warning i {
    font-size: 13px;
}

/* Responsive Styles for Edit Listing */
@media (max-width: 1024px) {
    .category-selects {
        grid-template-columns: 1fr;
    }

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

    .review-grid {
        grid-template-columns: 120px 1fr;
    }
}

@media (max-width: 768px) {
    .listing-status-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .listing-status-banner .status-meta {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid #FDBA74;
        padding-left: 0;
        padding-top: 16px;
        width: 100%;
        justify-content: center;
    }

    .stepper {
        padding: 16px;
    }

    .stepper-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stepper-label {
        font-size: 12px;
    }

    .stepper-line {
        width: 40px;
    }

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

    .photo-upload-item.cover {
        grid-column: span 2;
        grid-row: span 1;
    }

    .condition-options {
        grid-template-columns: 1fr;
    }

    .wizard-nav {
        flex-direction: column;
        gap: 12px;
    }

    .wizard-nav>* {
        width: 100%;
    }

    .danger-zone {
        flex-direction: column;
        align-items: stretch;
    }

    .review-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .review-label {
        font-weight: 600;
    }
}

@media (max-width: 480px) {

    .form-card-header,
    .form-card-body {
        padding: 20px;
    }

    .stepper {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .stepper-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .stepper-label {
        font-size: 11px;
        white-space: nowrap;
    }

    .modal {
        padding: 32px 24px;
    }

    .modal h2 {
        font-size: 20px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* ========================================
   RECENT SALES & ACTIVE LISTINGS
   ======================================== */

.seller-sales-listings-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.seller-section-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.seller-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.seller-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.seller-section-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.seller-section-link:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.seller-section-body {
    padding: var(--space-md);
}

/* Recent Sales Table */
.recent-sales-table {
    width: 100%;
    border-collapse: collapse;
}

.recent-sales-table thead th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.recent-sales-table tbody tr {
    border-bottom: 1px solid var(--border-light);
}

.recent-sales-table tbody tr:last-child {
    border-bottom: none;
}

.recent-sales-table td {
    padding: var(--space-md);
    vertical-align: middle;
}

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

.item-thumbnail {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.item-thumbnail-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8e0f3 0%, #d4c5eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple, #8e44ec);
    font-size: 18px;
}

.item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

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

.buyer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.buyer-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.price-cell {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.date-cell {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Active Listings Grid */
.active-listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.listing-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.listing-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

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

.listing-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e0f3 0%, #d4c5eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple, #8e44ec);
    font-size: 32px;
}

.listing-info {
    padding: var(--space-sm) var(--space-md) var(--space-md);
}

.listing-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 8px;
}

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

.listing-bids,
.listing-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-bids i,
.listing-time i {
    font-size: 10px;
}

.view-all-listings {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-md);
}

.view-all-link {
    font-size: 14px;
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition-fast);
}

.view-all-link:hover {
    color: var(--accent-purple-dark);
}

.view-all-link i {
    font-size: 12px;
}

/* Empty State */
.seller-section-card .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
}

.seller-section-card .empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: var(--space-md);
}

.seller-section-card .empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 var(--space-md) 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .seller-sales-listings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .recent-sales-table {
        display: block;
        overflow-x: auto;
    }

    .item-name {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .active-listings-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .listing-info {
        padding: var(--space-xs) var(--space-sm) var(--space-sm);
    }

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

    .listing-price {
        font-size: 14px;
    }
}

/* ========================================
   PAGE SEARCH BAR
   ======================================== */

.page-search {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.page-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.page-search-input:hover {
    border-color: var(--border-color);
}

.page-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle), var(--shadow-sm);
}

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

.page-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    pointer-events: none;
    transition: var(--transition-fast);
}

.page-search:focus-within .page-search-icon {
    color: var(--primary);
}

/* ========================================
   FILTER PANEL
   ======================================== */

.filter-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.filter-panel-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

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

.filter-select {
    padding: 10px 36px 10px 14px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 160px;
}

.filter-select:hover {
    border-color: var(--border-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
}

.filter-actions .btn-primary {
    padding: 10px 20px;
    font-size: var(--font-size-sm);
}

.filter-actions .btn-link {
    padding: 10px 16px;
    font-size: var(--font-size-sm);
    color: var(--warning);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
}

.filter-actions .btn-link:hover {
    color: var(--warning-dark);
    text-decoration: underline;
}

.filter-label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.filter-input {
    padding: 10px 14px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    min-width: 140px;
}

.filter-input:hover {
    border-color: var(--border-color);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* Price Range Slider */
.filter-price-range {
    flex-direction: column;
    align-items: flex-start;
}

.price-range-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    min-width: 200px;
}

.price-range-value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    white-space: nowrap;
}

.price-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--bg-white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.price-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--bg-white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .filter-panel-content {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .filter-input {
        width: 100%;
    }

    .filter-actions {
        margin-left: 0;
        justify-content: flex-end;
    }

    .price-range-wrapper {
        min-width: auto;
    }

    .price-range-input {
        flex: 1;
    }
}

/* ========================================
   BIDS TABLE
   ======================================== */

.bids-table-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.bids-table {
    width: 100%;
    border-collapse: collapse;
}

.bids-table thead {
    background: var(--bg-subtle);
}

.bids-table th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-light);
}

.bids-table th:last-child {
    text-align: center;
}

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

.bids-table td:last-child {
    text-align: center;
}

.bids-table tbody tr:last-child td {
    border-bottom: none;
}

.bids-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.06);
    transition: background 0.15s ease;
}

.bids-table-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-subtle);
}

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

.bids-table-title {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    display: block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bids-table-title:hover {
    color: var(--primary-dark);
}

.bids-table-price {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.bids-table-price.is-winning {
    color: var(--success);
}

.bids-table-price.is-outbid {
    color: var(--error);
}

.bids-table-time {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.bids-table-time.is-urgent {
    color: var(--error);
    font-weight: var(--font-weight-semibold);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.2s ease;
}

.status-chip i {
    font-size: 12px;
    flex-shrink: 0;
}

.status-chip.is-warning {
    background: #FFF8E1;
    color: #F57F17;
    border: 1px solid #FFE082;
}

.status-chip.is-warning i {
    color: #FFA000;
}

.status-chip.is-info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

.status-chip.is-info i {
    color: #1E88E5;
}

.status-chip.is-hold {
    background: #F3E5F5;
    color: #7B1FA2;
    border: 1px solid #CE93D8;
}

.status-chip.is-hold i {
    color: #9C27B0;
}

.status-chip.is-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.status-chip.is-success i {
    color: #43A047;
}

.status-chip.is-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.status-chip.is-error i {
    color: #E53935;
}

/* Icon Button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

/* Responsive table - card layout on mobile */
@media (max-width: 768px) {

    .bids-table-wrapper,
    .purchases-table-wrapper {
        border: none;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }

    .bids-table {
        border-collapse: separate;
        border-spacing: 0 6px;
        min-width: 0;
    }

    .bids-table thead {
        display: none;
    }

    .bids-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        padding: 12px;
        gap: 0;
        align-items: center;
        margin-bottom: 20px;
    }

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

    .bids-table td {
        padding: 4px 6px;
        border-bottom: none;
        font-size: 13px;
        width: auto;
        text-align: left;
        margin: 0;
    }

    .bids-table td:first-child {
        width: 48px;
        padding: 0;
        flex-shrink: 0;
    }

    .bids-table td:nth-child(2) {
        width: calc(100% - 48px);
        padding-left: 10px;
    }

    .bids-table td:nth-child(2) .bids-table-title {
        max-width: 100%;
        white-space: normal;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
    }

    .bids-table td:nth-child(3) {
        width: 100%;
        padding-top: 8px;
        margin-top: 6px;
        border-top: 1px solid var(--border-light);
        font-size: 12px;
        color: var(--text-muted);
    }

    .bids-table td:nth-child(n+4):not(:last-child) {
        width: 50%;
        padding-top: 6px;
    }

    .bids-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }

    .bids-table td:first-child::before,
    .bids-table td:nth-child(2)::before {
        display: none !important;
    }

    .bids-table td:last-child {
        width: 100%;
        text-align: center;
        padding-top: 8px;
        margin-top: 4px;
        border-top: 1px solid var(--border-light);
    }

    .bids-table td:last-child::before {
        display: none !important;
    }

    .bids-table td[colspan] {
        width: 100%;
        text-align: center;
        border-top: none;
        margin: 0;
        padding: 0;
    }

    .bids-table td[colspan]::before {
        display: none !important;
    }

    .bids-table-image {
        width: 44px;
        height: 44px;
    }

    .bids-table td:last-child .btn,
    .bids-table td:last-child .btn-icon {
        font-size: 12px;
    }

    .bids-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .bids-tab {
        white-space: nowrap;
        font-size: 13px;
        padding: var(--space-sm) var(--space-md);
    }
}

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

.payouts-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.payout-summary-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.payout-summary-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.payout-summary-icon.pending {
    background: #fff3cd;
    color: #856404;
}

.payout-summary-icon.completed {
    background: #d4edda;
    color: #155724;
}

.payout-summary-icon.total {
    background: #e8e0f3;
    color: #8e44ec;
}

.payout-summary-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payout-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.payout-summary-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Payout table specific styles */
.payout-product {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payout-product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.payout-order-number {
    font-size: 12px;
    color: var(--text-muted);
}

.payout-amount,
.payout-fee,
.payout-net {
    font-size: 14px;
    font-weight: 500;
}

.payout-net {
    color: var(--success);
    font-weight: 600;
}

.payout-payment-method {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.payment-method-item i {
    font-size: 12px;
    color: var(--text-muted);
    width: 14px;
    text-align: center;
}

.payout-date {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   INLINE FILTERS (Single Row)
   ======================================== */

.filters-inline {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.filter-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.filter-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

.filter-search input {
    width: 100%;
    height: var(--filter-height);
    padding: 0 16px 0 46px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.filter-search input:hover {
    border-color: var(--text-muted);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(142, 68, 236, 0.1);
}

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

/* Filter Dropdown - Material Style */
.filter-dropdown {
    appearance: none;
    height: var(--filter-height);
    padding: 0 40px 0 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-width: 140px;
}

.filter-dropdown:hover {
    border-color: var(--text-muted);
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(142, 68, 236, 0.1);
}

/* Clear Filters Button */
.filter-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--filter-height);
    height: var(--filter-height);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-clear-btn:hover {
    border-color: var(--error);
    background: rgba(220, 53, 69, 0.08);
    color: var(--error);
}

/* Responsive Inline Filters */
@media (max-width: 768px) {
    .filters-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search {
        max-width: none;
    }

    .filter-dropdown {
        width: 100%;
    }

    .filter-clear-btn {
        width: 100%;
    }
}

/* Legacy filter select wrapper (kept for backwards compatibility) */
.filter-select {
    position: relative;
    display: inline-flex;
}

/* Responsive payouts */
@media (max-width: 768px) {
    .payouts-summary {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .payout-summary-card {
        padding: var(--space-md);
    }

    .payout-summary-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .payout-summary-value {
        font-size: 20px;
    }
}

/* Mobile Fullscreen Messages Fix */
@media (max-width: 1024px) {
    .messages-layout {
        position: fixed !important;
        top: 60px !important;
        /* Height of mobile header */
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: auto !important;
        width: 100% !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        z-index: 40 !important;
        background: var(--bg-white) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .messages-chat {
        flex: 1;
        display: flex !important;
        flex-direction: column !important;
        height: 100%;
        overflow: hidden;
    }

    /* Hide chat by default on mobile unless active */
    .messages-chat:not(.is-active) {
        display: none !important;
    }

    .chat-header {
        background: var(--bg-white) !important;
        z-index: 10;
        border-bottom: 1px solid var(--border-light);
        flex-shrink: 0;
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: auto;
    }

    .chat-input {
        flex-shrink: 0;
        background: var(--bg-white);
        border-top: 1px solid var(--border-light);
    }

    /* Ensure only messages list is visible initially */
    .messages-list {
        height: 100%;
        width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .messages-list.has-active-chat {
        display: none !important;
    }
}

/* Custom scrollbar for chat image zoom modal */
.custom-chat-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-chat-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-chat-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
.custom-chat-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
.custom-chat-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
