/* ============================================================
   lelongX -- Components
   Reusable UI primitives -- cards, badges, buttons, forms,
   modals, toasts, tabs, breadcrumbs, progress, tier ribbons,
   property cards, course cards, bid panel, etc.
   ============================================================ */

/* ====================== BUTTONS ====================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 22px;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--gradient-hero);
    color: var(--text-inverse);
    box-shadow: var(--shadow-glow-cyan);
}
.btn-primary:hover {
    box-shadow: var(--shadow-glow-purple), var(--shadow-md);
    transform: translateY(-1px);
    color: var(--text-inverse);
}

.btn-cyan {
    background: var(--brand-cyan);
    color: var(--text-inverse);
}
.btn-cyan:hover { background: #06b6d4; color: var(--text-inverse); }

.btn-purple {
    background: var(--brand-purple);
    color: #fff;
}
.btn-purple:hover { background: #9333ea; color: #fff; }

.btn-gold {
    background: var(--brand-gold);
    color: var(--text-inverse);
}
.btn-gold:hover { background: #f59e0b; color: var(--text-inverse); }

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    background: var(--bg-elevated);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

.btn-outline {
    background: transparent;
    color: var(--brand-cyan);
    border-color: var(--brand-cyan);
}
.btn-outline:hover {
    background: var(--brand-cyan);
    color: var(--text-inverse);
}

.btn-danger {
    background: var(--brand-rose);
    color: #fff;
}
.btn-danger:hover { background: #e11d48; color: #fff; }

.btn-sm {
    padding: 8px 14px;
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 16px 28px;
    font-size: var(--text-md);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-block { width: 100%; }

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

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.card-elevated {
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
}

.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-soft);
}

/* Top-border accent (for USP cards) */
.card-border-top {
    border-top: 3px solid var(--accent, var(--brand-cyan));
}
.card-border-cyan    { --accent: var(--brand-cyan); }
.card-border-purple  { --accent: var(--brand-purple); }
.card-border-gold    { --accent: var(--brand-gold); }
.card-border-emerald { --accent: var(--brand-emerald); }
.card-border-orange  { --accent: var(--brand-orange); }
.card-border-rose    { --accent: var(--brand-rose); }
.card-border-blue    { --accent: var(--brand-blue); }

/* Gradient border (premium cards) */
.card-gradient-border {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid transparent;
    background-clip: padding-box;
}
.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ====================== STAT CARD ====================== */

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    pointer-events: none;
}

.stat-card .stat-value {
    font-family: var(--font-mono);
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1;
    color: var(--brand-cyan);
    margin-bottom: var(--space-2);
    position: relative;
}

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

.stat-card .stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    margin-top: var(--space-2);
}
.stat-trend.up   { background: rgba(16, 185, 129, 0.15); color: var(--brand-emerald); }
.stat-trend.down { background: rgba(244, 63, 94, 0.15); color: var(--brand-rose); }

.stat-value.gold    { color: var(--brand-gold); }
.stat-value.purple  { color: var(--brand-purple); }
.stat-value.emerald { color: var(--brand-emerald); }
.stat-value.orange  { color: var(--brand-orange); }

/* ====================== BADGES ====================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1;
    white-space: nowrap;
}

.badge-cyan    { background: rgba(34, 211, 238, 0.15); color: var(--brand-cyan); }
.badge-purple  { background: rgba(168, 85, 247, 0.15); color: var(--brand-purple); }
.badge-gold    { background: rgba(251, 191, 36, 0.15); color: var(--brand-gold); }
.badge-emerald { background: rgba(16, 185, 129, 0.15); color: var(--brand-emerald); }
.badge-rose    { background: rgba(244, 63, 94, 0.15); color: var(--brand-rose); }
.badge-orange  { background: rgba(249, 115, 22, 0.15); color: var(--brand-orange); }
.badge-blue    { background: rgba(59, 130, 246, 0.15); color: var(--brand-blue); }
.badge-muted   { background: var(--bg-elevated); color: var(--text-secondary); }

.badge-solid-cyan    { background: var(--brand-cyan); color: var(--text-inverse); }
.badge-solid-purple  { background: var(--brand-purple); color: #fff; }
.badge-solid-gold    { background: var(--brand-gold); color: var(--text-inverse); }
.badge-solid-emerald { background: var(--brand-emerald); color: #fff; }

.badge-bank {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
}

/* ====================== FORM ELEMENTS ====================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-input.has-icon { padding-left: 44px; }

.form-input-wrap {
    position: relative;
}
.form-input-wrap .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.form-input-wrap .input-icon-right {
    left: auto;
    right: 16px;
    pointer-events: auto;
    cursor: pointer;
}

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

.form-checkbox,
.form-radio {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-cyan);
    cursor: pointer;
}

.form-helper {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.form-error {
    color: var(--brand-rose);
    font-size: var(--text-xs);
}

/* ====================== TIER PRICING CARD ====================== */

.tier-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    transition: transform var(--duration-normal), box-shadow var(--duration-normal);
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--tier-color, var(--brand-cyan));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tier-card.popular {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow-gold), var(--shadow-lg);
    border-color: rgba(251, 191, 36, 0.4);
}

.tier-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gold);
    color: var(--text-inverse);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.tier-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--tier-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.tier-name {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--tier-color);
    margin-bottom: var(--space-3);
}

.tier-price {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}
.tier-price small {
    font-size: var(--text-md);
    color: var(--text-muted);
    font-weight: 500;
}

.tier-features {
    list-style: none;
    text-align: left;
    margin: var(--space-6) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.tier-features li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.tier-features li i { color: var(--tier-color); }

/* tier color variants */
.tier-bronze   { --tier-color: var(--tier-bronze); }
.tier-silver   { --tier-color: var(--tier-silver); }
.tier-gold     { --tier-color: var(--tier-gold); }
.tier-platinum { --tier-color: var(--tier-platinum); }

/* ====================== PROPERTY CARD ====================== */

.property-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration-normal), box-shadow var(--duration-normal), border-color var(--duration-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.property-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-elevated);
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.property-bank-ribbon {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
}

.property-status-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}
.property-status-badge.live     { background: rgba(16, 185, 129, 0.95); color: #fff; }
.property-status-badge.upcoming { background: rgba(59, 130, 246, 0.95); color: #fff; }
.property-status-badge.closing  { background: rgba(244, 63, 94, 0.95); color: #fff; }

.property-watchlist-btn {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast);
}
.property-watchlist-btn:hover { color: var(--brand-rose); transform: scale(1.1); }
.property-watchlist-btn.active { color: var(--brand-rose); background: rgba(244, 63, 94, 0.2); }

.property-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.property-price {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-gold);
    line-height: 1;
}

.property-reserve {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.property-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text-primary);
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-specs {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-soft);
}

.property-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ====================== COURSE CARD ====================== */

.course-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--duration-normal), box-shadow var(--duration-normal);
    display: flex;
    flex-direction: column;
}

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

.course-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(34, 211, 238, 0.4));
    overflow: hidden;
}

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

.course-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 15, 30, 0.8));
}

.course-level-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 1;
}

.course-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.course-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-instructor {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.course-meta {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-progress {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-soft);
}

.progress-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) var(--ease-out);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* ====================== USP CARD ====================== */

.usp-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    border-top: 3px solid var(--accent, var(--brand-cyan));
    padding: var(--space-6);
    transition: transform var(--duration-normal), box-shadow var(--duration-normal);
}

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

.usp-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(var(--accent-rgb, 34, 211, 238), 0.12);
    color: var(--accent, var(--brand-cyan));
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.usp-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.usp-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.usp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent, var(--brand-cyan));
}

/* ====================== BREADCRUMB ====================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--duration-fast);
}
.breadcrumb a:hover { color: var(--brand-cyan); }
.breadcrumb i { font-size: var(--text-xs); color: var(--text-muted); }

/* ====================== TABS ====================== */

.tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: var(--space-6);
    overflow-x: auto;
}

.tab {
    padding: 12px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration-fast);
    white-space: nowrap;
}

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

.tab.active {
    color: var(--brand-cyan);
    border-bottom-color: var(--brand-cyan);
}

/* ====================== FILTER CHIPS ====================== */

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}
.filter-chip:hover { color: var(--text-primary); border-color: var(--brand-cyan); }
.filter-chip.active { background: rgba(34, 211, 238, 0.15); border-color: var(--brand-cyan); color: var(--brand-cyan); }

.filter-chip-remove { cursor: pointer; opacity: 0.7; }
.filter-chip-remove:hover { opacity: 1; color: var(--brand-rose); }

/* ====================== MODAL ====================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: scaleIn var(--duration-normal) var(--ease-out);
}

.modal-lg { max-width: 880px; }

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-base); }

.modal-header { margin-bottom: var(--space-6); }
.modal-header h2 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.modal-header p  { color: var(--text-secondary); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-soft);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ====================== TOAST ====================== */

.toast-stack {
    position: fixed;
    top: 88px;
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    min-width: 300px;
    max-width: 420px;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    box-shadow: var(--shadow-lg);
    animation: toastIn var(--duration-normal) var(--ease-out);
}

.toast.success { border-left: 4px solid var(--brand-emerald); }
.toast.error   { border-left: 4px solid var(--brand-rose); }
.toast.info    { border-left: 4px solid var(--brand-blue); }
.toast.warning { border-left: 4px solid var(--brand-gold); }

.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--brand-emerald); }
.toast.error   .toast-icon { color: var(--brand-rose); }
.toast.info    .toast-icon { color: var(--brand-blue); }
.toast.warning .toast-icon { color: var(--brand-gold); }

.toast-body { flex: 1; }
.toast-title { font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.toast-desc  { font-size: var(--text-sm); color: var(--text-secondary); }

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

/* ====================== PROGRESS RING (SVG) ====================== */

.progress-ring {
    width: 64px;
    height: 64px;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 6;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--brand-cyan);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset var(--duration-slow) var(--ease-out);
}

.progress-ring-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.progress-ring-text {
    position: absolute;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* ====================== AVATAR ====================== */

.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-hero);
    color: var(--text-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: var(--text-xs); }
.avatar-lg { width: 56px; height: 56px; font-size: var(--text-md); }

/* ====================== EMPTY STATE ====================== */

.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    max-width: 480px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.empty-state h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

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

/* ====================== DATA TABLE ====================== */

.table-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.table thead {
    background: var(--bg-elevated);
}

.table th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border-bottom: 1px solid var(--border-soft);
}

.table td {
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-soft);
}

.table tbody tr {
    transition: background var(--duration-fast);
}

.table tbody tr:hover {
    background: var(--bg-elevated);
}

.table-actions {
    display: flex;
    gap: var(--space-2);
}

.table-actions button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast);
}

.table-actions button:hover {
    color: var(--brand-cyan);
    background: var(--bg-base);
}

.table-actions .delete:hover { color: var(--brand-rose); }

/* ====================== PAGINATION ====================== */

.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-6);
}

.pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--duration-fast);
}

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

.pagination button.active {
    background: var(--brand-cyan);
    color: var(--text-inverse);
    border-color: var(--brand-cyan);
}

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

/* ====================== BID PANEL ====================== */

.bid-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: sticky;
    top: calc(var(--nav-height) + var(--space-4));
    box-shadow: var(--shadow-glow-cyan), var(--shadow-md);
}

.bid-current-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-1);
}

.bid-current-value {
    font-family: var(--font-mono);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--brand-cyan);
    line-height: 1;
    margin-bottom: var(--space-2);
    transition: color var(--duration-fast);
}

.bid-current-value.flash { color: var(--brand-emerald); }

.bid-trend {
    font-size: var(--text-sm);
    color: var(--brand-emerald);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: var(--space-4);
}

.bid-countdown {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
    margin: var(--space-4) 0;
}

.bid-countdown-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: 4px;
}

.bid-countdown-value {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-gold);
}

.bid-meta {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-soft);
    margin-top: var(--space-4);
}

/* ====================== CTA BAND ====================== */

.cta-band {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-8);
    text-align: center;
    color: var(--text-inverse);
    margin: var(--space-12) 0;
}

.cta-band h2 {
    color: var(--text-inverse);
    margin-bottom: var(--space-3);
}

.cta-band p {
    color: rgba(10, 15, 30, 0.85);
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
}

/* ====================== ICON CIRCLE ====================== */

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 20px;
}

.icon-circle-cyan    { background: rgba(34, 211, 238, 0.15); color: var(--brand-cyan); }
.icon-circle-purple  { background: rgba(168, 85, 247, 0.15); color: var(--brand-purple); }
.icon-circle-gold    { background: rgba(251, 191, 36, 0.15); color: var(--brand-gold); }
.icon-circle-emerald { background: rgba(16, 185, 129, 0.15); color: var(--brand-emerald); }
.icon-circle-rose    { background: rgba(244, 63, 94, 0.15); color: var(--brand-rose); }
.icon-circle-orange  { background: rgba(249, 115, 22, 0.15); color: var(--brand-orange); }

/* ====================== SKELETON LOADER ====================== */

.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-surface) 50%, var(--bg-elevated) 100%);
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    animation: skeletonShine 1.5s ease-in-out infinite;
}

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

/* ====================== SHIMMER (for new bid notifications) ====================== */

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

/* ====================== UTILITY: TEXT COLORS ====================== */

.text-cyan    { color: var(--brand-cyan); }
.text-purple  { color: var(--brand-purple); }
.text-gold    { color: var(--brand-gold); }
.text-emerald { color: var(--brand-emerald); }
.text-rose    { color: var(--brand-rose); }
.text-orange  { color: var(--brand-orange); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }

/* ====================== UTILITY: TEXT SIZES ====================== */

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-md   { font-size: var(--text-md); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }

.font-mono { font-family: var(--font-mono); font-weight: 700; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
