/* Button Components */
.button,
.button-alt,
.button-gold {
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 200ms ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.button {
  background: var(--primary);
  color: #090B10; /* Dark text on bright accent for high contrast */
  box-shadow: 0 0 20px rgba(46, 186, 198, 0.25);
}

.button:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 30px rgba(46, 186, 198, 0.4);
  transform: translateY(-1px);
}

.button-alt {
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  border: 1px solid var(--border);
}

.button-alt:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.button-gold {
  background: var(--gold);
  color: #090B10;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.button-gold:hover {
  background: #E5C354;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

/* Eyebrow Pill Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  background: rgba(46, 186, 198, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(46, 186, 198, 0.2);
}

/* Modal Backdrops & Dialog Containers */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 11, 16, 0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 200ms ease;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  transform: scale(1.05);
}

.modal h3 {
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  font-weight: 500;
  line-height: 1.5;
}

.modal-switch-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.modal-switch-footer a {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

/* Forms & Inputs */
.auth-form,
.calculator-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cream);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 500;
  outline: none;
  transition: all 200ms ease;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(46, 186, 198, 0.15);
}

/* Success Card Notification */
.success-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(46, 186, 198, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 186, 198, 0.2);
}

.success-card h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.success-card p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Calculator Payout Display Card */
.payout-result-card {
  background: rgba(46, 186, 198, 0.05);
  border: 1px solid rgba(46, 186, 198, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 8px;
}

.payout-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

/* Seller Dashboard Components */
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.stat-box label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.stat-box .stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.1;
}

.dashboard-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dashboard-header-bar h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cream);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.watch-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.watch-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.watch-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.watch-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.watch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.watch-title h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
}

.watch-title span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.watch-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.watch-meta-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  font-weight: 600;
}

.watch-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--muted);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-badge.active {
  background: rgba(46, 186, 198, 0.1);
  color: var(--primary);
  border-color: rgba(46, 186, 198, 0.2);
}

.status-badge.draft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.1);
}

.status-badge.sold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.2);
}

/* Action Controls Bar */
.watch-actions-bar {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.action-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 150ms ease;
  background: rgba(255, 255, 255, 0.02);
  color: var(--cream);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.action-btn.btn-sold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.3);
}

.action-btn.btn-sold:hover {
  background: rgba(212, 175, 55, 0.2);
}

.action-btn.btn-delete {
  background: rgba(220, 38, 38, 0.1);
  color: #ef4444;
  border-color: rgba(220, 38, 38, 0.3);
}

.action-btn.btn-delete:hover {
  background: rgba(220, 38, 38, 0.2);
}

/* Empty State Card */
.empty-inventory-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-inventory-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}

.empty-inventory-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
}

.empty-inventory-card p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 400px;
}

/* File Dropzone & Image Preview Grid */
.file-dropzone {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.file-dropzone:hover,
.file-dropzone.active {
  background: rgba(46, 186, 198, 0.05);
  border-color: var(--primary);
  border-style: solid;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

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

.thumb-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 900;
  transition: transform 150ms ease;
}

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

/* ==========================================================================
   FEATURE 1: TOAST NOTIFICATION CONTAINER & STYLES
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 48px);
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(9, 11, 16, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 200ms ease;
  opacity: 0;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast.success { border-color: rgba(46, 213, 115, 0.4); }
.toast.success .toast-icon { background: rgba(46, 213, 115, 0.1); color: #2ED573; }

.toast.error { border-color: rgba(255, 71, 87, 0.4); }
.toast.error .toast-icon { background: rgba(255, 71, 87, 0.1); color: #FF4757; }

.toast.info { border-color: rgba(212, 175, 55, 0.4); }
.toast.info .toast-icon { background: rgba(212, 175, 55, 0.1); color: var(--gold); }

.toast-message {
  flex: 1;
  line-height: 1.4;
}

/* ==========================================================================
   FEATURE 2: FAVORITE HEART BUTTON & BADGES
   ========================================================================== */
.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(9, 11, 16, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 200ms ease;
}

.favorite-btn:hover,
.favorite-btn.active {
  background: rgba(255, 71, 87, 0.1);
  border-color: rgba(255, 71, 87, 0.4);
  color: #FF4757;
  transform: scale(1.1);
}

/* ==========================================================================
   FEATURE 4 & 5: MESSAGING & OFFERS UI
   ========================================================================== */
.chat-thread-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}

.chat-bubble.sender {
  align-self: flex-end;
  background: rgba(46, 186, 198, 0.1);
  color: var(--primary);
  border: 1px solid rgba(46, 186, 198, 0.2);
  border-bottom-right-radius: 2px;
}

.chat-bubble.receiver {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.offer-card-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FEATURE 6: REVIEWS & RATING STARS
   ========================================================================== */
.star-rating-box {
  display: flex;
  gap: 4px;
  color: #FFC107;
}

.star-interactive i {
  cursor: pointer;
  transition: transform 150ms ease;
}
.star-interactive i:hover {
  transform: scale(1.2);
}

.review-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

/* ==========================================================================
   FEATURE 7: SHARE BUTTON
   ========================================================================== */
.share-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 200ms ease;
}
.share-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

/* ==========================================================================
   FEATURE: ULTRA-PREMIUM OAUTH & MODAL LAYOUT STYLING
   ========================================================================== */
.google-auth-btn {
  width: 100%;
  margin-top: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 200ms ease;
}

.google-auth-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   SHADCN LOGIN-03 STYLE MODAL
   ========================================================================== */
.shadcn-backdrop {
  background: rgba(9, 11, 16, 0.8) !important;
  backdrop-filter: blur(16px) !important; -webkit-backdrop-filter: blur(16px) !important;
  opacity: 1 !important;
  display: none;
}
.shadcn-backdrop.active {
  display: flex !important;
}
.shadcn-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 384px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 101;
}
.shadcn-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cream);
}
.shadcn-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--primary);
  color: #090B10;
  border-radius: 6px;
}
.shadcn-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  position: relative;
}
.shadcn-close {
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 200ms;
}
.shadcn-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
}
.shadcn-close i {
  width: 16px;
  height: 16px;
}
.shadcn-header {
  padding: 24px 24px 0 24px;
  text-align: center;
}
.shadcn-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 6px;
}
.shadcn-header p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}
.shadcn-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.shadcn-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}
.shadcn-btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
.shadcn-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shadcn-line {
  flex: 1;
  height: 1px;
  background-color: var(--border);
}
.shadcn-divider-text {
  font-size: 0.75rem;
  color: var(--muted);
}
.shadcn-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.shadcn-form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
}
.shadcn-form-group input {
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 0.9rem;
  width: 100%;
  color: var(--cream);
  font-weight: 400;
  background: rgba(255, 255, 255, 0.03);
  transition: all 200ms ease;
}
.shadcn-form-group input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}
.shadcn-form-group input::placeholder {
  color: var(--muted);
}
.shadcn-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shadcn-forgot {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
}
.shadcn-forgot:hover {
  text-decoration: underline;
}
.shadcn-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 6px;
  background: var(--primary);
  color: #090B10;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-top: 8px;
  transition: background 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 0 15px rgba(46, 186, 198, 0.2);
}
.shadcn-btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 25px rgba(46, 186, 198, 0.4);
}
.shadcn-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.shadcn-footer a {
  color: var(--cream);
  text-decoration: underline;
  cursor: pointer;
}
.shadcn-terms {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 24px;
}
.shadcn-terms a {
  color: var(--cream);
  text-decoration: underline;
}
