/* Universal Box-Sizing */
*,
:root {
	--primary:  #007bff;
	--primary-dark: #0056b3;
	--success:  #28a745;
	--danger:   #dc3545;
	--warning:  #ff9800;
	--accent:   #6f42c1;
}

*::before,
*::after {
	box-sizing: border-box;
}

.profile-area {
	display: block;
}

.lister-modal-overlay:focus {
	outline: none;
}

.lister-modal-container:focus {
	outline: 2px solid #00dbde;
	outline-offset: 4px;
}

.lister-modal-container {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	border-radius: 20px;
	width: 90%;
	max-width: 800px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	animation: slideUp 0.4s ease;
}

.lister-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 25px 30px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.3);
	border-radius: 20px 20px 0 0;
}

.lister-modal-header h2 {
	margin: 0;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	background: linear-gradient(90deg, #00dbde, #fc00ff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.lister-modal-close {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: white;
	font-size: 32px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.lister-modal-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

.lister-modal-body {
	padding: 30px;
	color: #e0e0e0;
}

.lister-loading {
	text-align: center;
	padding: 40px;
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(255, 255, 255, 0.1);
	border-top-color: #00dbde;
	border-radius: 50%;
	margin: 0 auto 20px;
	animation: spin 1s linear infinite;
}

/* Seller Profile Content */
.seller-profile-content {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 30px;
}

.seller-info-section {
	background: rgba(255, 255, 255, 0.05);
	padding: 25px;
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.seller-info-item {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seller-info-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.seller-info-label {
	color: #aaa;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 5px;
}

.seller-info-value {
	color: #fff;
	font-size: 18px;
	font-weight: 500;
}

.seller-facebook-link {
	color: #00dbde;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.seller-facebook-link:hover {
	color: #fc00ff;
	transform: translateX(5px);
}

.seller-items-section {
	background: rgba(255, 255, 255, 0.05);
	padding: 25px;
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.seller-items-title {
	color: #fff;
	font-size: 22px;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid rgba(0, 219, 222, 0.3);
}

.other-bids-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

/* Focused bid feedback */
.highlight-bid {
  outline: 3px solid #00c853;
  outline-offset: 4px;
  animation: bidPulse 1.2s ease-out;
}

@keyframes bidPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(0, 200, 83, 0); }
  100% { box-shadow: none; }
}


.seller-bid-item {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.1);
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.seller-bid-item:hover {
	transform: translateY(-5px);
	border-color: #00dbde;
	box-shadow: 0 10px 25px rgba(0, 219, 222, 0.2);
	background: rgba(255, 255, 255, 0.12);
}

.seller-bid-item img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.seller-bid-meta {
	padding: 15px;
}

.seller-bid-title {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 8px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.seller-bid-price {
	color: #00dbde;
	font-size: 16px;
	font-weight: 700;
	margin: 0;
}

.no-items-message {
	text-align: center;
	color: #aaa;
	padding: 40px;
	font-size: 16px;
}

/* Seller Stats */
.seller-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------
   SELLER MODAL GRID FIX (ANTI-CRAMPING)
-------------------------------------------------- */

.other-bids-grid {
  align-items: stretch; /* Ensures equal-height rows */
}

.seller-bid-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;          /* KEY: prevents vertical collapse */
}

.seller-bid-item img {
  flex-shrink: 0;
}

.seller-bid-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;                   /* Restores breathing space */
}

/* Allow titles to wrap to 2 lines instead of forcing 1 */
.seller-bid-title {
  white-space: normal;        /* FIX */
  line-height: 1.3;
  max-height: 2.6em;          /* 2 lines */
}


.stat-item {
	text-align: center;
	padding: 15px;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 10px;
}

.stat-value {
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 5px;
}

.stat-label {
	color: #aaa;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
	.seller-profile-content {
		grid-template-columns: 1fr;
	}
	
	.lister-modal-container {
		width: 95%;
		max-height: 85vh;
	}
	
	.lister-modal-header {
		padding: 20px;
	}
	
	.lister-modal-header h2 {
		font-size: 22px;
	}
	
	.lister-modal-body {
		padding: 20px;
	}
	
	.other-bids-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}
	
	.seller-stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Base body styling with subtle gradient and bg image support */
body {
	font-family: 'Segoe UI Light', 'Arial', sans-serif;
	margin: 0;
	padding: 20px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #333;
	background: linear-gradient(135deg, rgba(245,247,250,0.2), rgba(230,233,239,0.2)), url('../image/1.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	
	/* Ensure content is readable over background */
	position: relative;
}

.app-container {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

/* ============================================
	BID GRID LAYOUT - UPDATED
	Surgical grid implementation
============================================ */
#bid-items {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
    margin: 20px 0;
    width: 100%;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease;
}

/* Individual bid wrapper in grid */
.bid-wrapper {
    display: block;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

/* Add to existing #bid-items rule */
#bid-items {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
    margin: 20px 0;
    width: 100%;
    /* ADD THESE: */
    box-sizing: border-box;
    max-width: 100%;
    overflow: visible; /* Or hidden if you don't want scroll */
}

/* Ensure all child elements use border-box */
.bid-wrapper, .bid-container, .bid-wrapper * {
    box-sizing: border-box;
}

/* Featured item - stays in grid but has special styling */
.bid-wrapper.featured-frame {
    position: relative; /* Needed for ::before positioning */
    border: 3px solid;
    border-image: linear-gradient(135deg, #ffb703, #fb8500, #ff6b35) 1;
    border-radius: 20px;
    padding: 8px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.7);
    /* Removed: grid-column: 1 / -1; */
    /* Removed: max-width: 100%; */
}

.featured-frame::before {
    content: "🌟 Featured Demo";
    position: absolute;
    top: -10px;
    left: 15px;
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

/* Bid container/card in grid */
.bid-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 25px;
    margin: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#bid-items {
    align-items: start;
}

.bid-container {
    height: auto;
    align-self: start;
}

.bid-wrapper {
    contain: layout paint;
}

.bid-container:hover {
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Default card collapsed height in grid */
.bid-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    margin: 0;
    padding: 0;
    /* IMPORTANT: Each details section is independent */
}

/* Expanded details inside the card in grid */
.bid-container.expanded .bid-details {
    max-height: 1000px; /* Fixed value instead of 2000px */
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
	}
    to {
        opacity: 1;
        transform: translateY(0);
	}
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
	}
    to {
        opacity: 1;
        transform: translateY(0);
	}
}

/* Bid header within grid */
.bid-header {
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
    overflow: visible;
}

/* Header image in grid */
.header-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.bid-container:hover .header-image {
    transform: scale(1.02);
}

/* Title in grid view */
.bid-title {
    font-size: 1.3rem; /* Reduced from 1.4rem */
    font-weight: 600;
    color: #004080;
    margin: 10px 0;
    line-height: 1.3;
    height: 3.2em; /* Fixed height instead of min-height */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Category badge in grid */
.bid-category {
    margin: 10px 0;
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #dfe6e9;
    color: #2d3436;
    margin-bottom: 6px;
}

/* Lister tag in grid */
.lister-tag {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,165,0,0.2));
    padding: 8px 12px; /* Reduced from 10px 15px */
    border-radius: 20px;
    font-size: 0.85rem; /* Reduced from 0.9rem */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,165,0,0.3);
    margin: 8px 0; /* Reduced from 5px 0 */
    text-align: center;
    display: block;
}

.lister-tag:hover {
    background: linear-gradient(135deg, rgba(255,215,0,0.4), rgba(255,165,0,0.4));
    transform: translateY(-2px);
}

/* Price display in grid */
.bid-container h3 {
    font-size: 1.2rem; /* Reduced from 1.3rem */
    color: #d63031;
    margin: 12px 0; /* Reduced from 15px 0 */
    font-weight: 700;
    text-align: center;
}

/* Timer in grid view */
.timer {
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 600;
    color: #00c853;
    margin: 12px 0; /* Reduced from 15px 0 */
    padding: 8px; /* Reduced from 10px */
    background: rgba(0, 200, 83, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: color 0.5s ease, transform 0.2s ease;
}

[data-end-time]:hover {
    transform: scale(1.05);
}

/* Floating Content Elements - Keep existing */
.bid-item, .admin-area, #new-bid-form, 
.review-section,
.reviews-panel, .modal-content {
	background-color: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.4);
	padding: 25px;
	margin-bottom: 25px;
}

/* Hover effects for floating elements */
.bid-item:hover, .admin-area:hover, #new-bid-form:hover,
.review-section:hover,
.reviews-panel:hover {
	background-color: rgba(255, 255, 255, 0.6);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
	transform: translateY(-3px);
}

h1 {
	font-size: 32px;
	font-weight: 700;
	color: #f5f2f2;
	margin: 15px 0;
}

h2 {
	font-size: 28px;
	font-weight: 600;
	color: #333;
}

h3 {
	font-size: 24px;
	font-weight: 600;
	color: #004080;
}

/* Form Elements */
.form-group {
	margin-bottom: 20px;
}

input, button, select, textarea, 
.bid-input, .admin-input {
	width: 100%;
	padding: 12px;
	border: 1px solid rgba(224, 224, 224, 0.5);
	border-radius: 12px;
	font-size: 16px;
	background-color: rgba(255, 255, 255, 0.7);
	transition: all 0.3s ease;
	font-family: inherit;
	outline: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input:focus, select:focus, textarea:focus,
.bid-input:focus, .admin-input:focus {
	border-color: #007bff;
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 12px rgba(0, 123, 255, 0.3);
}

/* Floating Buttons */
button, .admin-button, .auth-button,
.delete-button, .edit-button, .review-button {
	padding: 12px 24px;
	color: #fff;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
	margin-right: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* Button Gradients */
.admin-button {
	background: linear-gradient(135deg, rgba(0,123,255,0.9), rgba(0,86,179,0.9));
}

.auth-button {
	background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(33, 136, 56, 0.9));
}

.delete-button {
	background: linear-gradient(135deg, rgba(255,77,77,0.9), rgba(204,0,0,0.9));
}

.edit-button {
	background: linear-gradient(135deg, rgba(0,204,102,0.9), rgba(0,153,77,0.9));
}

.review-button {
	background: linear-gradient(135deg, rgba(243,156,18,0.9), rgba(230,126,34,0.9));
}

/* Button Hover Effects */
button:hover, .admin-button:hover, .auth-button:hover,
.delete-button:hover, .edit-button:hover, .review-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	opacity: 0.95;
}

/* Images and Media - Updated for grid */
.bid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); /* Reduced from 80px */
    gap: 8px; /* Reduced from 10px */
    margin: 12px 0; /* Reduced from 15px 0 */
}

.bid-gallery img {
    max-width: 100%;
    max-height: 70px; /* Reduced from 100px */
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.bid-gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 1000;
}

.modal-content {
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 20px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
	animation: fadeIn 0.4s ease-out;
	border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Floating Animations */
@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-8px); }
	100% { transform: translateY(0px); }
}

/* Keep existing animations for other elements */
.admin-area, #new-bid-form {
	animation: float 6s ease-in-out infinite;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(15px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	body {
		padding: 15px;
	}
	
	.bid-item, .admin-area, #new-bid-form {
		padding: 20px;
		margin-bottom: 20px;
		animation: none;
	}
    
    /* Responsive grid adjustments */
    #bid-items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px 0;
	}
    
    .bid-container {
        padding: 20px;
        margin-bottom: 20px;
	}
    
    .header-image {
        height: 180px;
	}
    
    .bid-title {
        font-size: 1.2rem;
        min-height: 3.2em;
	}
}

@media (max-width: 480px) {
	body {
		padding: 10px;
	}
	
	button, .admin-button, .auth-button {
		padding: 10px 18px;
		margin-bottom: 8px;
	}
    
    #bid-items {
        grid-template-columns: 1fr;
        gap: 12px;
	}
    
    .bid-container {
        padding: 15px;
        margin-bottom: 15px;
	}
    
    .header-image {
        height: 160px;
	}
    
    .featured-frame {
        grid-column: 1;
	}
}

.buy-now-button {
	background: linear-gradient(135deg, #ff5e62, #ff9966);
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 25px;
	font-weight: bold;
	animation: pulse 2s infinite;
	margin-top: 10px;
	cursor: pointer;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(255, 105, 135, 0.4);
	}
	70% {
		transform: scale(1.05);
		box-shadow: 0 0 0 10px rgba(255, 105, 135, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(255, 105, 135, 0);
	}
}

.review-button {
	background-color: #f39c12;
	color: white;
	padding: 10px 20px;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	margin-top: 10px;
	font-size: 16px;
}

.review-button:hover {
	background-color: #e67e22;
}

.star-rating {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 10px;
}

.star-rating span {
	font-size: 30px;
	cursor: pointer;
	color: #ddd;
	transition: color 0.3s ease;
}

.star-rating span.active {
	color: #f39c12;
}

.star-rating span:hover,
.star-rating span:hover ~ span {
	color: #f39c12;
}

.reviews-panel {
	border: 1px solid #ddd;
	border-radius: 8px;
	margin: 10px 0;
	overflow: hidden;
}

.reviews-header {
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.reviews-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	padding: 0 15px;
}

.reviews-content.expanded {
	max-height: 1000px;
	transition: max-height 0.5s ease-in;
}

.toggle-icon::after {
	content: '\25BC';
	display: inline-block;
	margin-left: 10px;
	transition: transform 0.3s;
}

.toggle-icon.expanded::after {
	transform: rotate(180deg);
}

#search-bids {
	border: none;
	border-bottom: 2px solid #007bff;
	background: transparent;
	padding: 10px;
	font-size: 16px;
	width: 250px;
	text-align: center;
	margin-bottom: 20px;
	transition: all 0.3s ease;
	box-shadow: none;
}

#search-bids:focus {
	outline: none;
	border-bottom: 2px solid #0056b3;
	background-color: rgba(255, 255, 255, 0.4);
}

.paused-notice {
	background-color: #fff3cd;
	border-left: 5px solid #ffc107;
	padding: 15px;
	margin: 15px 0;
	border-radius: 4px;
}
.paused-notice h3 {
	color: #856404;
	margin-top: 0;
	margin-bottom: 10px;
}
.confirm-payment-btn {
	background-color: #28a745;
	color: white;
	padding: 8px 16px;
	margin-right: 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
.resume-auction-btn {
	background-color: #dc3545;
	color: white;
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
.confirm-payment-btn:hover {
	background-color: #218838;
}
.resume-auction-btn:hover {
	background-color: #c82333;
}

/* Add to CSS section */
button[onclick^="reAuctionBid"] {
    background-color: #ff9800;
    color: white;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
button[onclick^="reAuctionBid"]:hover:not([disabled]) {
    background-color: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
button[onclick^="reAuctionBid"][disabled] {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Added Lister Tag and Profile Status CSS */
.profile-status {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.6);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Profile Modal Specific Styles */
.profile-details {
	background: rgba(255, 255, 255, 0.6);
	padding: 15px;
	border-radius: 10px;
	margin: 15px 0;
}

.profile-details p {
	margin: 10px 0;
	padding: 8px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 5px;
}

#profile-view-only .admin-button {
	width: 100%;
	margin-top: 15px;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Disabled form state */
#profile-builder-form.disabled {
	opacity: 0.6;
	pointer-events: none;
}

/* Archived bids specific styling */
.archived-bid-item {
	background-color: rgba(255, 255, 255, 0.4);
	border-radius: 12px;
	padding: 15px;
	margin-bottom: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: background 0.3s;
}

.archived-bid-item:hover {
	background-color: rgba(255, 255, 255, 0.6);
}

.archived-header h3 {
	margin: 0;
	color: #004080;
}

/* ============================================
	GLOBAL BUTTON TEXT VISIBILITY
	Ensures all functional buttons use white text
============================================ */
button,
.admin-button,
.auth-button,
.delete-button,
.edit-button,
.review-button,
.buy-now-button,
.confirm-payment-btn,
.resume-auction-btn {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ============================================
	WHITE / LIGHT BUTTON VARIANTS
	Overrides the global rule safely
============================================ */
.white-button,
button.white-button {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    color: #333 !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-shadow: none;
}

/* ============================================
	HIGH-PRIORITY ADMIN/AUTH BUTTON RULES
============================================ */
.admin-button,
.auth-button {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hover states for all buttons */
button:hover,
.admin-button:hover,
.auth-button:hover,
.delete-button:hover,
.edit-button:hover,
.review-button:hover,
.buy-now-button:hover,
.confirm-payment-btn:hover,
.resume-auction-btn:hover {
	opacity: 0.95;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* SHARE BUTTON STYLES */
.share-button {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
}

.share-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	opacity: 0.9;
}

.share-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 15px;
}

/* Superuser Notifications Styles */
.notification-item {
	background: rgba(255, 255, 255, 0.7);
	border-radius: 12px;
	padding: 15px;
	margin: 10px 0;
	border-left: 5px solid #007bff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.notification-item.unread {
	background: rgba(255, 255, 255, 0.9);
	border-left: 5px solid #28a745;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-item.read {
	background: rgba(255, 255, 255, 0.5);
	border-left: 5px solid #6c757d;
}

.notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.notification-title {
	font-weight: bold;
	color: #333;
	font-size: 16px;
}

.notification-time {
	font-size: 12px;
	color: #666;
}

.notification-buttons {
	margin-top: 10px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.notification-badge {
	background: #dc3545;
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 12px;
	margin-left: 5px;
}

/* Add to your existing CSS */
@media (max-width: 768px) {
	/* Larger touch targets */
	button, .admin-button, .auth-button, .delete-button, 
	.edit-button, .review-button, .buy-now-button {
		min-height: 44px;
		min-width: 44px;
		padding: 12px 20px;
		font-size: 16px; /* Prevents zoom on iOS */
	}
	
	/* Larger text for mobile */
	body {
		font-size: 16px;
		line-height: 1.5;
	}
	
	h1 {
		font-size: 24px;
	}
	
	h2 {
		font-size: 20px;
	}
	
	h3 {
		font-size: 18px;
	}
	
	/* Better modal for mobile */
	.modal-content {
		width: 95%;
		margin: 10% auto;
		padding: 20px;
		max-height: 80vh;
		overflow-y: auto;
	}
	
	/* Mobile-optimized image gallery */
	.bid-gallery {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
	
	.bid-gallery img {
		max-width: 100%;
		height: 80px;
		cursor: pointer;
	}
	
	/* Improved mobile form inputs */
	input, select, textarea {
		font-size: 16px; /* Prevents zoom */
		padding: 12px;
		min-height: 44px;
	}
	
}

@media (max-width: 480px) {
	.bid-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.share-buttons {
		flex-direction: column;
	}
	
	.share-buttons button {
		width: 100%;
		margin: 5px 0;
	}
}

/* Larger close buttons for mobile */
.modal .close {
	font-size: 28px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Admin Dashboard Styles */
#admin-dashboard {
	display: none;
}

.dashboard-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.dashboard-tab {
	display: none;
}

.dashboard-tab.active {
	display: block;
}

.dashboard-tabs button.active {
	background: linear-gradient(135deg, rgba(0,86,179,0.9), rgba(0,123,255,0.9));
}

.admin-section {
	background: rgba(255, 255, 255, 0.3);
	padding: 15px;
	border-radius: 10px;
	margin-bottom: 15px;
}

.analytics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin-bottom: 20px;
}

.analytics-card {
	background: rgba(255, 255, 255, 0.5);
	padding: 15px;
	border-radius: 10px;
	text-align: center;
	border-left: 4px solid #007bff;
}

.analytics-card h4 {
	margin: 0 0 10px 0;
	color: #333;
	font-size: 14px;
}

.analytics-card p {
	margin: 0;
	font-size: 24px;
	font-weight: bold;
	color: #007bff;
}

.user-list-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	margin: 8px 0;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 8px;
	border-left: 4px solid #28a745;
}

.user-list-item.superuser {
	border-left-color: #ffc107;
}

.user-list-item.admin {
	border-left-color: #dc3545;
}

.user-actions {
	display: flex;
	gap: 8px;
}

.user-actions button {
	padding: 6px 12px;
	font-size: 12px;
}

@media (max-width: 768px) {
	.dashboard-tabs {
		flex-direction: column;
	}
	
	.analytics-grid {
		grid-template-columns: 1fr;
	}
	
	.user-list-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.user-actions {
		width: 100%;
		justify-content: flex-end;
	}
}

.receipt-section {
	margin-top: 10px;
	text-align: right;
}
.print-receipt-btn {
	background-color: #2196F3;
	color: white;
	padding: 6px 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
.print-receipt-btn:hover {
	background-color: #0b7dda;
}

.bid-details.open {
	display: block;
	animation: fadeIn 0.3s ease;
}

html, body {
	scroll-behavior: smooth;
	overscroll-behavior: none;
}

#bid-container, #bid-items {
	will-change: transform;
	transform: translateZ(0);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.notification-item,
.bid-container {
	contain: layout paint;
	backface-visibility: hidden;
}

.btn-green { background: linear-gradient(135deg, #28a745, #218838); }     /* Success / confirm */
.btn-red { background: linear-gradient(135deg, #dc3545, #b52a37); }       /* Delete / danger */
.btn-orange { background: linear-gradient(135deg, #ff9800, #f57c00); }    /* Warning / re-auction */
.btn-yellow { background: linear-gradient(135deg, #f1c40f, #f39c12); color: #333 !important; } /* Highlight */
.btn-purple { background: linear-gradient(135deg, #6f42c1, #512da8); }    /* Special */
.btn-brown { background: linear-gradient(135deg, #8d6e63, #6d4c41); }     /* Archive */
.btn-blue { background: linear-gradient(135deg, #007bff, #0056b3); }      /* Default / admin */

/* Archived Bids Section Styling */
#archived-bids-section {
	margin-top: 30px;
	padding: 25px;
	background-color: rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.4);
	animation: fadeIn 0.6s ease;
}

#archived-bids-section h2 {
	color: #004080;
	margin-bottom: 10px;
}

#archived-bids {
	margin-top: 10px;
}

.archives-section {
	background-color: rgba(255, 255, 255, 0.4);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.4);
	transition: all 0.3s ease;
}

.archives-section:hover {
	background-color: rgba(255, 255, 255, 0.6);
	transform: translateY(-3px);
}

/* Smooth expand/collapse for archived bids content */
#archived-bids-content {
	overflow-y: auto;
	max-height: 0;
	transition: max-height 0.5s ease-in-out;
}

#archived-bids-content.expanded {
	max-height: 1000px; /* Adjust based on your content size */
}

/* =======================================================
	🌟 MODERN VISIBILITY SYSTEM (for all toggleable elements)
======================================================= */
.hidden {
	display: none !important;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.visible {
	display: block;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Add to styles.css */
#lister-profile-view {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

#lister-profile-view .modal-content {
	background: rgba(255, 255, 255, 0.95);
	padding: 25px;
	border-radius: 15px;
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
}
/* =========================================================
   ✅ MINIMAL LISTER MODAL - NO CONTAINER, CLICK-POSITIONED
========================================================= */

/* REMOVE ALL overlay/container styles - just the modal itself */
.lister-modal-container {
    /* Position at click location */
    position: fixed !important;
    top: var(--click-y, 50vh) !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    /* Size for small screens */
    width: 90% !important;
    max-width: 500px !important;
    max-height: 85vh !important;
    
    /* Visual styling - KEEP THE ORIGINAL STYLES FROM LINE 33-41 */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow-y: auto !important;
    
    /* Animation - NEW ANIMATION TO MATCH POSITIONING */
    animation: modalSlideIn 0.4s ease !important;
    
    /* High z-index to appear above everything */
    z-index: 10000 !important;
    
    /* Ensure it's visible */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Remove any overlay styles that might hide it */
#lister-profile-view,
.lister-modal-overlay {
    /* Don't hide - these should not affect modal visibility */
    background: none !important;
    backdrop-filter: none !important;
}

/* Remove the problematic overlay that's hiding everything */
.modal {
    /* This was setting display: none on the modal */
    display: none !important;
}

/* Make sure .modal doesn't affect our lister modal */
.lister-modal-container:not(.modal) {
    display: block !important;
}

/* Simple slide-in animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lister-modal-container {
        width: 95% !important;
        max-height: 90vh !important;
    }
    
    .lister-modal-header {
        padding: 20px !important;
    }
    
    .lister-modal-header h2 {
        font-size: 22px !important;
    }
    
    .lister-modal-body {
        padding: 20px !important;
    }
    
    .seller-profile-content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .lister-modal-container {
        width: 98% !important;
        max-height: 95vh !important;
        border-radius: 15px !important;
    }
    
    .lister-modal-header {
        padding: 15px !important;
    }
    
    .lister-modal-body {
        padding: 15px !important;
    }
    
    .other-bids-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }
}

/* Ensure modal content fits */
.lister-modal-body {
    padding: 30px !important;
    color: #e0e0e0 !important;
}

.lister-modal-header {
    padding: 25px 30px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 20px 20px 0 0 !important;
}
/* ============================================================
	✅ Initial Visibility States for Dynamic UI Elements
============================================================ */

/* Ensure proper initial state */
#bid-container,
#global-review-section,
.admin-area,
#admin-dashboard,
#superuser-notifications,
#profile-builder-form-container,
#new-bid-form {
	display: none;
}

/* Floating Search Styles */
.floating-search-container {
	position: fixed;
	top: 100px;
	right: 20px;
	z-index: 1000;
	transition: all 0.3s ease;
}

.floating-search-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	border: 2px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
	font-size: 24px;
}

.floating-search-icon:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-search-expanded {
	position: absolute;
	top: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 30px;
	padding: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 300px;
	backdrop-filter: blur(10px);
}

.floating-search-input {
	border: none;
	background: transparent;
	padding: 8px 12px;
	font-size: 14px;
	width: 200px;
	outline: none;
	color: #333;
}

.floating-search-filter {
	border: none;
	background: rgba(0, 0, 0, 0.1);
	padding: 8px;
	border-radius: 15px;
	font-size: 12px;
	cursor: pointer;
	outline: none;
}

.search-categories {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	margin-top: 5px;
	max-height: 200px;
	overflow-y: auto;
	display: none;
}

.search-category-item {
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
}

.search-category-item:hover {
	background: #f5f5f5;
}

.search-category-item:last-child {
	border-bottom: none;
}

/* ================================
	PROFILE BUILDER CONTAINER
================================ */
#profile-builder-form-container {
	width: 100%;
	max-width: 900px;
	margin: 30px auto;
}

/* Main card */
.profile-area {
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	
	border-radius: 22px;
	padding: 30px;
	
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.5);
	
	animation: fadeIn 0.35s ease;
}

.profile-area h2 {
	margin-top: 0;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(0, 123, 255, 0.25);
}

/* Archived bids specific styling */
#archived-bids-content:not(.hidden) {
	display: block;
	max-height: 1000px;
	transition: max-height 0.5s ease-in-out;
}

/* Profile Toast Notification */
#profile-toast {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 10000;
	animation: slideInRight 0.3s ease;
}

.toast-content {
	background: linear-gradient(135deg, #fff3cd, #ffeaa7);
	border: 1px solid #ffc107;
	border-radius: 12px;
	padding: 15px;
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
	backdrop-filter: blur(10px);
	max-width: 350px;
}

.toast-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.toast-message {
	flex: 1;
}

.toast-message strong {
	color: #856404;
	display: block;
	margin-bottom: 4px;
}

.toast-message p {
	color: #856404;
	margin: 0;
	font-size: 14px;
}

.toast-close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #856404;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* =======================================================
	🚀 PERFORMANCE OPTIMIZATIONS
======================================================= */

/* Hardware acceleration for smooth scrolling */
.app-container {
	transform: translateZ(0);
	will-change: transform;
	backface-visibility: hidden;
	perspective: 1000;
}

/* Optimize bid items container */
#bid-items {
	contain: layout style paint;
	transform: translateZ(0);
	will-change: transform;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* Individual bid items with hardware acceleration */
.bid-item {
	transform: translateZ(0);
	will-change: transform;
	contain: layout style paint;
	backface-visibility: hidden;
}

/* Optimize image rendering */
.bid-gallery img,
.header-image {
	transform: translateZ(0);
	backface-visibility: hidden;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

/* Smooth scrolling for the entire app */
html, body {
	scroll-behavior: smooth;
	overscroll-behavior: none;
	-webkit-overflow-scrolling: touch;
}

/* Virtual scrolling optimization for large lists */
#bid-items {
	content-visibility: auto;
	contain-intrinsic-size: 1px 5000px;
}

/*
	.bid-item {
	content-visibility: auto;
	contain-intrinsic-size: 1px 300px;
}*/

/* Reduce repaints during animations */
.bid-item,
.admin-area,
.modal-content {
	transform: translateZ(0);
	backface-visibility: hidden;
}

/* ============================================
	ADMIN AREA - IMPROVED COLLAPSE BEHAVIOR
============================================ */

/* Admin Area Container */
.admin-area {
    position: relative;
    transition: padding 0.3s ease, background-color 0.3s ease;
    overflow: visible; /* Allow content to be visible */
    min-height: auto; /* Don't force a height */
    padding: 20px; /* Consistent padding */
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Collapsed State - Only affects dashboard content */
.admin-area.collapsed {
    padding-bottom: 20px; /* Reduce bottom padding when collapsed */
    background-color: rgba(255, 255, 255, 0.3); /* Slightly lighter when collapsed */
}

/* Hide dashboard content when collapsed */
.admin-area.collapsed #admin-dashboard {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Show dashboard content when not collapsed */
.admin-area:not(.collapsed) #admin-dashboard {
    display: block;
    visibility: visible;
    opacity: 1;
    animation: fadeInSlide 0.4s ease;
}

/* Admin Dashboard Container */
#admin-dashboard {
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-top: 15px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hide dashboard with hidden class (for JavaScript control) */
#admin-dashboard.hidden {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Show dashboard when not hidden */
#admin-dashboard:not(.hidden) {
    display: block;
    visibility: visible;
    opacity: 1;
    animation: fadeInSlide 0.4s ease;
}

/* Button Styling - Visual Feedback */
#admin-dashboard-btn {
    position: relative;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

/* Button when dashboard is expanded/visible */
#admin-dashboard-btn[aria-expanded="true"] {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    border-color: rgba(46, 125, 50, 0.3);
}

/* Button when dashboard is collapsed/hidden */
#admin-dashboard-btn[aria-expanded="false"] {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: white;
    border-color: rgba(30, 136, 229, 0.3);
}

/* Button hover effects */
#admin-dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Button with indicator icon */
#admin-dashboard-btn::after {
    content: " ";
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Rotate indicator when expanded */
#admin-dashboard-btn[aria-expanded="true"]::after {
    transform: rotate(180deg);
    content: " ";
}

/* Animation for dashboard appearance */
@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(-10px);
	}
    100% {
        opacity: 1;
        transform: translateY(0);
	}
}

/* Ensure the admin area button is always visible */
.admin-area .admin-button-container {
    position: relative;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-area {
        padding: 15px;
        margin-bottom: 15px;
	}
    
    #admin-dashboard {
        padding: 15px;
        margin-top: 10px;
	}
    
    #admin-dashboard-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%; /* Full width on mobile */
	}
}

/* Optimize archived bids rendering */
#archived-bids-content {
	transform: translateZ(0);
	will-change: transform;
	contain: layout style paint;
}

.archived-bid-item {
	transform: translateZ(0);
	contain: layout style paint;
	backface-visibility: hidden;
}

/* GPU-accelerated animations */
@keyframes fadeIn {
	from { 
		opacity: 0;
		transform: translate3d(0, 20px, 0);
	}
	to { 
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

/* Optimize modal rendering */
.modal {
	transform: translateZ(0);
	will-change: transform;
}

.modal-content {
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
}

#create-bid[disabled] {
	background-color: #ccc;
	color: #666;
	border: 1px solid #aaa;
	cursor: not-allowed;
}

/* Pulsing effect */
.pulse-rotate {
    animation: pulseButton 2s infinite ease-in-out;
}

/* Pulse keyframes */
@keyframes pulseButton {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 120, 60, 0.4); }
    50% { transform: scale(1.07); box-shadow: 0 0 12px 6px rgba(255, 120, 60, 0.1); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 120, 60, 0); }
}

/* Smooth text fade during label change */
.pulse-rotate.text-fade {
    transition: opacity 0.3s ease;
    opacity: 0.3;
}

.lister-overlay {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 320px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
    z-index: 99999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.lister-overlay.hidden {
    display: none !important;
}

/* Empty state for bid grid */
#bid-items:empty::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin: 60px auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    grid-column: 1 / -1;
}

/* Bid action row in grid */
.bid-action-row {
    display: flex;
    gap: 8px; /* Reduced from 10px */
    margin: 15px 0; /* Reduced from 20px 0 */
    flex-wrap: wrap;
}

.bid-action-row input {
    flex: 1;
    min-width: 120px;
}

/* Share row in grid */
.share-row {
    margin: 15px 0;
    text-align: center;
}

/* Admin controls in grid */
.admin-controls,
.owner-controls {
    display: flex;
    gap: 8px; /* Reduced from 10px */
    flex-wrap: wrap;
    margin: 15px 0; /* Reduced from 20px 0 */
    justify-content: center;
}

/* Paused notice in grid */
.paused-notice {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 243, 205, 0.8);
    border-left: 5px solid #ffc107;
    border-radius: 8px;
}

/* Receipt section in grid */
.receipt-section {
    margin: 20px 0;
    text-align: center;
}

/* Promote → Superuser */
button.promote-btn,
button[data-action="promote"] {
    background: linear-gradient(135deg, #7b2ff7, #512da8);
    color: #fff;
}

/* Demote → User */
button.promote-btn,
button[data-action="demote"] {
    background: linear-gradient(135deg, #7b2ff7, #512da8);
    color: #fff;
}

/* +1 Day */
button.add-day-btn,
button[data-action="add-day"] {
    background: linear-gradient(135deg, #2196f3, #1565c0);
    color: #fff;
}

/* +30 Days */
button.add-month-btn,
button[data-action="add-month"] {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
}

/* +1 Year (Premium) */
button.add-year-btn,
button[data-action="add-year"] {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #333 !important;
    text-shadow: none;
}

/* Delete User */
button.delete-user-btn,
button[data-action="delete"] {
    background: linear-gradient(135deg, #dc3545, #b52a37);
    color: #fff;
}

/* =========================================
   PROMO CAROUSEL - INTERACTIVE HINGE VERSION
   ========================================= */

/* Auth wrapper */
.promo-wrapper {
  width: 100%;
  margin: 32px 0;
}

/* 🔧 Interactive Carousel Container */
#promo-carousel {
  width: 100%;
  max-width: 1924px;          /* (467 × 4) + (16 × 3) = 1924px */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
  user-select: none;
  cursor: grab;
  transition: cursor 0.2s ease;
}

/* 🎡 HINGE EFFECT STYLES */
#promo-carousel.hinge-active {
  cursor: grabbing !important;
}

#promo-carousel.hinge-active .promo-track {
  transition: transform 0.05s linear !important;
  transform-origin: center center;
}

/* Subtle depth effect during drag */
#promo-carousel.dragging .promo-track {
  filter: brightness(0.97);
}

/* Momentum scrolling visual feedback */
#promo-carousel.inertia-scrolling .promo-track img {
  transition: transform 0.15s ease !important;
}

/* Glow effect on edges during momentum */
#promo-carousel.inertia-scrolling::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.1) 0%,
    transparent 10%,
    transparent 90%,
    rgba(255,255,255,0.1) 100%
  );
  pointer-events: none;
  z-index: 5;
  border-radius: 14px;
  opacity: 0;
  animation: edgeGlow 2s ease-in-out infinite;
}

@keyframes edgeGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Add a subtle blur during fast momentum */
#promo-carousel.high-speed .promo-track img {
  filter: blur(0.5px) brightness(0.95);
  transition: filter 0.2s ease;
}

/* 🖼️ Sliding Track - INTERACTIVE */
#promo-carousel .promo-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: max-content;
  animation-name: promoSlideSmooth;
  animation-duration: 20s;     /* Slower for interactive control */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
  touch-action: pan-y;
  backface-visibility: hidden;
  perspective: 1000px;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
}

/* Images - 4 total with enhanced interactions */
#promo-carousel .promo-track img {
  width: 467px;
  height: 461px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.3s ease,
              box-shadow 0.3s ease,
              opacity 0.2s ease;
  filter: brightness(0.95);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Interactive hover states */
#promo-carousel:not(.dragging):not(.inertia-scrolling) .promo-track img:hover {
  transform: scale(1.02) translateZ(0);
  filter: brightness(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 🎯 Active Drag State */
#promo-carousel.dragging {
  cursor: grabbing;
}

#promo-carousel.dragging .promo-track img {
  cursor: grabbing;
  filter: brightness(0.9);
  transition: none;
  transform: scale(0.995) translateZ(0);
}

/* 🔄 Reverse Direction */
#promo-carousel.reverse .promo-track {
  animation-direction: reverse;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ⏸️ Pause States */
#promo-carousel.paused .promo-track {
  animation-play-state: paused;
}

#promo-carousel.paused:not(.dragging):not(.inertia-scrolling) .promo-track img:hover {
  transform: scale(1.03) translateZ(0);
  filter: brightness(1.1);
}

/* ✨ Enhanced Drag Feedback with Hinge Theme */
.drag-feedback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.03) 0%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.03) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  border-radius: 14px;
  backdrop-filter: blur(2px);
}

.drag-feedback.active {
  opacity: 1;
}

/* Updated drag feedback for hinge effect */
.drag-feedback span {
  background: linear-gradient(135deg, rgba(255,193,7,0.9), rgba(255,152,0,0.9)) !important;
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255,152,0,0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: spin-hint 2s ease-in-out infinite !important;
}

@keyframes spin-hint {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
    box-shadow: 0 4px 12px rgba(255,152,0,0.3);
  }
  50% { 
    transform: translateY(-5px) rotate(5deg); 
    box-shadow: 0 8px 20px rgba(255,152,0,0.5);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* 🔄 Smooth Animation for Interactive Control */
@keyframes promoSlideSmooth {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-483px); /* Slide one image + gap */
  }
}

/* 🎨 Enhanced Focus States for Accessibility */
#promo-carousel .promo-track img:focus-visible {
  outline: 3px solid #007bff;
  outline-offset: 4px;
  border-radius: 8px;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS - INTERACTIVE 4 IMAGES
   ========================================= */

/* Large Tablets (3 images visible) */
@media (max-width: 1400px) {
  #promo-carousel {
    max-width: 1453px; /* For 3 images: (467 × 3) + (16 × 2) */
  }
  
  #promo-carousel .promo-track img {
    width: 467px;
  }
}

/* Medium Screens (2 images visible) */
@media (max-width: 1100px) {
  #promo-carousel {
    max-width: 950px; /* For 2 images: (467 × 2) + (16 × 1) */
  }
  
  #promo-carousel .promo-track img {
    width: 467px;
  }
}

/* Small Tablets (scaled images, 2 visible) */
@media (max-width: 900px) {
  #promo-carousel .promo-track img {
    width: 400px;
    height: 395px;
  }
  
  #promo-carousel {
    max-width: 816px; /* (400 × 2) + (16 × 1) */
  }
  
  @keyframes promoSlideSmooth {
    from { transform: translateX(0); }
    to { transform: translateX(-416px); } /* 400 + 16 */
  }
}

/* Large Mobile (1 image visible) */
@media (max-width: 768px) {
  #promo-carousel {
    max-width: 467px; /* Single image */
    border-radius: 12px;
  }
  
  #promo-carousel .promo-track img {
    width: 467px;
    height: 461px;
  }
  
  @keyframes promoSlideSmooth {
    from { transform: translateX(0); }
    to { transform: translateX(-483px); }
  }
  
  .drag-feedback span {
    font-size: 13px;
    padding: 10px 20px;
    animation: spin-hint 3s ease-in-out infinite !important;
  }
  
  /* Adjust hinge effect for mobile */
  #promo-carousel .promo-track {
    transition: transform 0.15s ease-out;
  }
}

/* Small Mobile (scaled single image) */
@media (max-width: 480px) {
  #promo-carousel {
    max-width: 90vw;
    border-radius: 10px;
  }
  
  #promo-carousel .promo-track img {
    width: 90vw;
    height: auto;
    aspect-ratio: 467 / 461;
  }
  
  @keyframes promoSlideSmooth {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-90vw - 16px)); }
  }
  
  .drag-feedback span {
    font-size: 12px;
    padding: 8px 16px;
  }
  
  /* Mobile-specific hinge adjustments */
  #promo-carousel.dragging .promo-track img {
    transform: scale(0.98) translateZ(0);
  }
}

/* 📱 Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  #promo-carousel .promo-track img {
    filter: brightness(1);
  }
  
  #promo-carousel .promo-track img:active {
    transform: scale(0.98) translateZ(0);
    filter: brightness(0.95);
  }
  
  .drag-feedback span {
    padding: 16px 28px;
    font-size: 16px;
  }
  
  /* Better touch feedback */
  #promo-carousel {
    -webkit-tap-highlight-color: transparent;
  }
  
  #promo-carousel:active {
    cursor: grabbing;
  }
}

/* 🌙 Dark Mode Support */
@media (prefers-color-scheme: dark) {
  #promo-carousel .promo-track img {
    filter: brightness(0.85);
  }
  
  #promo-carousel .promo-track img:hover {
    filter: brightness(0.95);
  }
  
  .drag-feedback {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.05) 100%
    );
  }
  
  .drag-feedback span {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.9), rgba(21, 101, 192, 0.9)) !important;
  }
  
  /* Dark mode hinge effects */
  #promo-carousel.inertia-scrolling::before {
    background: linear-gradient(
      90deg,
      rgba(255,255,255,0.05) 0%,
      transparent 10%,
      transparent 90%,
      rgba(255,255,255,0.05) 100%
    );
  }
  
  #promo-carousel.dragging .promo-track {
    filter: brightness(1.03);
  }
}

/* 🎯 Performance Optimizations */
#promo-carousel .promo-track {
  contain: layout paint;
}

#promo-carousel .promo-track img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* 🚀 Smooth transitions for interactive elements */
#promo-carousel,
#promo-carousel .promo-track,
#promo-carousel .promo-track img {
  transition-property: transform, filter, box-shadow, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 📊 Visual indicators for interaction states */
#promo-carousel::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

#promo-carousel.paused::after {
  opacity: 0.7;
  background: #FF9800;
  animation: pulse 2s infinite;
}

#promo-carousel.dragging::after {
  opacity: 1;
  background: #F44336;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.promo-tooltip {
  position: fixed;
  max-width: 280px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 8px;

  white-space: normal;
  word-break: break-word;

  opacity: 0;
  pointer-events: none;
  z-index: 9999;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.promo-tooltip.visible {
  opacity: 1;
}



.user-info-container {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.user-main-info {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.user-name {
	font-weight: 500;
	font-size: 16px;
}

.user-role-badge {
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.user-role-badge.admin {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.user-role-badge.superuser {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: white;
}

.user-role-badge.user {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: white;
}

.user-subscription-info {
	display: flex;
	justify-content: flex-start;
}

.subscription-days {
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 500;
	display: inline-block;
}

.subscription-days.active {
	background: rgba(255, 255, 255, 1);
	color: #4caf50;
	border: 1px solid rgba(76, 175, 80, 0.3);
}

.subscription-days.warning {
	background: rgba(255, 255, 255, 1);
	color: #ff9800;
	border: 1px solid rgba(255, 152, 0, 0.3);
	animation: pulse 2s infinite;
}

.subscription-days.critical {
	background: rgba(255, 255, 255, 1);
	color: #f44336;
	border: 1px solid rgba(244, 67, 54, 0.3);
	animation: critical-pulse 1s infinite;
}

.subscription-days.expired {
	background: rgba(255, 255, 255, 1);
	color: #9e9e9e;
	border: 1px dashed rgba(158, 158, 158, 0.5);
}

@keyframes pulse {
	0% { opacity: 1; }
	50% { opacity: 0.7; }
	100% { opacity: 1; }
}

@keyframes critical-pulse {
	0% { opacity: 1; }
	50% { opacity: 0.5; }
	100% { opacity: 1; }
}

.buy-now-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(1);
}

#toggle-archived {
  position: relative;
}

#toggle-archived::after {
  content: attr(data-badge);
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-shake {
  animation: pulseShake 0.6s ease-in-out infinite;
}

@keyframes pulseShake {
  0% { transform: scale(1); }
  25% { transform: scale(1.1) rotate(-2deg); }
  50% { transform: scale(1.1) rotate(2deg); }
  75% { transform: scale(1.05) rotate(-1deg); }
  100% { transform: scale(1); }
}
.archived-print-btn {
	background: #4CAF50;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	margin-top: 10px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s;
}

.archived-print-btn:hover {
	background: #388E3C;
}

.archived-print-btn:active {
	transform: scale(0.98);
}

.archived-actions {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #ddd;
}

/* Seller Dashboard Styles */
.seller-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.stat-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #2196F3;
}

.seller-listings-section {
  margin-top: 30px;
}

.seller-bid-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: #f9f9f9;
}

.seller-item {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
}

.seller-item.paused {
  background: #fff8e1;
  border-color: #ffd54f;
}

.seller-item.active {
  background: #f1f8e9;
  border-color: #7cb342;
}

.seller-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.item-status {
  font-size: 0.9em;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  background: #e8f5e9;
}

.seller-item.paused .item-status {
  background: #fff3e0;
}

.seller-item-details p {
  margin: 5px 0;
  color: #555;
}

.view-listing-btn {
  margin-top: 10px;
  padding: 8px 15px;
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.view-listing-btn:hover {
  background: #1976D2;
}

.loading {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}

.no-items {
  text-align: center;
  color: #888;
  padding: 20px;
}

.error {
  color: #d32f2f;
  text-align: center;
  padding: 20px;
}

/* Highlight animation for when returning to a bid */
.highlight-bid {
  animation: highlight-pulse 2s ease-in-out;
  border-color: #4CAF50 !important;
}

@keyframes highlight-pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.user-notification {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 15px;
  margin: 10px 0;
  border-left: 5px solid #007bff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-notification.unread {
  border-left-color: #28a745;
  background: rgba(255, 255, 255, 0.9);
}

.user-notification.read {
  opacity: 0.7;
}

.user-dashboard {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 25px;
  margin-bottom: 25px;
  animation: fadeIn 0.6s ease;
}
.user-notification {
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.user-notification.read {
  opacity: 0.7;
  border-left-color: #6c757d;
}

.user-notification.unread {
  border-left-color: #28a745;
  font-weight: 500;
}

.user-notification.warning {
  border-left-color: #ffc107;
  background: #fff3cd;
}

.notification-message {
  margin: 0 0 4px 0;
}

.notification-time {
  color: #6c757d;
  font-size: 0.85em;
}

.notification-action {
  margin-top: 8px;
}

.view-auction-btn, .notification-link {
  background: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  cursor: pointer;
}

.loading-notifications {
  text-align: center;
  padding: 20px;
  color: #6c757d;
}

.notification-error {
  text-align: center;
  padding: 20px;
  color: #dc3545;
}

.retry-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  margin-top: 8px;
  cursor: pointer;
}

.notification-item.simple {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.notification-item.simple:hover {
  background: #f9f9f9;
}

.notification-title {
  font-weight: 600;
}

.notification-meta {
  font-size: 0.85em;
  color: #666;
}

.notification-time {
  font-size: 0.75em;
  color: #999;
}

#notification-count {
  background: #e53935;
  color: #fff;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 6px;
}

.bid-container.highlight {
  outline: 2px solid #00c853;
}

.highlight-archived-bid {
  outline: 3px solid #4caf50;
  background: rgba(76, 175, 80, 0.12);
  border-radius: 8px;
  animation: archivedPulse 1.2s ease-out;
}

@keyframes archivedPulse {
  0% {
    box-shadow: 0 0 0 rgba(76, 175, 80, 0.6);
  }
  100% {
    box-shadow: 0 0 25px rgba(76, 175, 80, 0);
  }
}

/* Private Access Toggle Styles */
.private-access-toggle {
    margin-bottom: 15px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.private-access-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.private-access-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    user-select: none;
}

.private-access-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50;
}

#privateAccessIndicator {
    font-size: 12px;
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Loading indicator for private access */
#private-access-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 1px solid #4CAF50;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Private Auctions Toggle Styles */
.private-auctions-section {
    background: linear-gradient(145deg, rgba(0,0,0,0.3), rgba(0,0,0,0.4));
    border: 1px solid rgba(255,215,0,0.2);
    transition: all 0.3s ease;
}

.private-auctions-section:hover {
    border-color: rgba(255,215,0,0.4);
    box-shadow: 0 0 15px rgba(255,215,0,0.1);
}

#private-auction-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
}

#private-auction-status .status-indicator {
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
}

#private-access-code-display {
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #FFD700;
    animation: slideDown 0.3s ease;
}

#private-access-code-display label {
    display: block;
    margin-bottom: 8px;
    color: #FFD700;
    font-weight: bold;
}

#access-code-value {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    background: #222 !important;
    border: 1px solid #444;
}

.copy-code-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.copy-code-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Disabled button state */
#private-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

#private-toggle-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  #admin-private-audit-tab,
  #admin-private-audit-tab * {
    visibility: visible;
  }

  #admin-private-audit-tab {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}