/**************************************************************
* Clearfix
***************************************************************/
.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    clear: both;
    *zoom: 1;
}

/**************************************************************
* Base
***************************************************************/
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Times New Roman', sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  background: linear-gradient(135deg, #1A1B3A 0%, #2D1B69 50%, #0F0F23 100%);
}

body:has(.auction-page) {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  /* border: 2px solid red; */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { 
  font-size: 2.5rem;
}
h2 { 
  font-size: 2rem;
}
h3 { 
  font-size: 1.5rem; 
}
h4 { 
  font-size: 1.25rem; 
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: 	#F2F2F2;
  border: 2px solid red;
}
/**************************************************************
* Flash
***************************************************************/
:root { 
  --header-h: 60px; 
}

.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  right: 24px;
  width: min(92%, 420px);
  z-index: 2001;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flash { 
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: slideInRight 0.3s ease-out;
  backdrop-filter: blur(8px);
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.flash-success {
  background: rgba(209, 231, 221, 0.95);
  border: 1px solid #badbcc;
  color: #0f5132;
}

.flash-error {
  background: rgba(248, 215, 218, 0.95);
  border: 1px solid #f5c2c7;
  color: #842029;
}

.flash-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.flash-success .flash-icon {
  color: #0f5132;
}

.flash-error .flash-icon {
  color: #842029;
}

.flash-message {
  flex: 1;
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.flash-close {
  position: relative;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.flash-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.flash-close:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
/**************************************************************
* Accessibility
***************************************************************/
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  .skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100;
    background: #fff;
    color: black;
    padding: 0.5em 1em;
    border-radius: 4px;
  }
  .skip-link:focus {
    left: 1em;
    top: 1em;
    width: auto;
    height: auto;
    outline: 2px solid #fff;
  }
  .is-hidden {
    display: none !important;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  
  }

/**************************************************************
* Utility
***************************************************************/
.center-align {
  text-align: center;
}

.margin {
  margin: 1rem 0;
}

.bold {
  font-weight: 600;
}

.z-depth-1 {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.12);
}

.z-depth-2 {
  box-shadow: 0 8px 17px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
}

.responsive-img {
  max-width: 100%;
  height: auto;
}

.circle {
  border-radius: 50%;
}
/**************************************************************
* Header
***************************************************************/
.header {
  background: rgba(26, 27, 58, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  /* border: 2px solid red; */
}

.navbar {
  padding: .5rem 0;
  /* border: 2px solid red; */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 1rem;
  /* border: 2px solid red; */
}

.nav-brand #logo-anchor {
  text-decoration: none;
  color: #E8E9F3;
  margin: 0;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  /* border: 2px solid red; */
  padding-left: 1rem;

}

.nav-brand i {
  color: #A855F7;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* border: 2px solid red; */
}

.nav-actions .btn {
  padding: 10px 16px;
  /* border: 2px solid red; */
}

.user-email {
  color: #B8C5D6;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.header-auction {
  /* border: 2px solid red; */
  /* min-height: 225px; */
  background-image: url('/images/astrologo.webp');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: 150px -600px;
  border-bottom: none;
  box-shadow: none;
}

.header-auction .header-overlay {
  /* border: 2px solid gold; */
  min-height: 225px;
  background: linear-gradient(90deg,#000000f0,#000c,#00000073 50%,#0000001a);
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  padding: 0px 1rem .5rem 1rem;
}

.header-auction .header-overlay .header-overlay-text {
  /* border: 2px solid red; */
  color: #E8E9F3;
  padding: .5rem 0 0 .5rem;
  border-top: 1px solid #444;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-auction .header-overlay .header-overlay-text i {
color: #A855F7;
}

/**************************************************************
* Hero
***************************************************************/
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100vh;
  /* border: 2px solid red; */
}

.hero strong {
  color: #A855F7;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  background: linear-gradient(135deg, #A855F7, #00D9FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content {
  padding: 0 2rem;
  /* border: 2px solid red; */
}

.hero-title {
  font-size: 3rem;
  color: #E8E9F3;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #B8C5D6;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
  /* border: 2px solid red; */
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  /* border: 2px solid red; */
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  /* border: 2px solid red; */
}

.btn-primary {
  background: transparent;
  color: #E8E9F3;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  border: 2px solid #A855F7;
  /* color: #A855F7;   */
}

.btn-secondary {
  background: transparent;
  color: #E8E9F3;
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
  border: 2px solid #00D9FF;  
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: #A855F7;
  border: 2px solid #A855F7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.hero-image {
  display: flex;
  justify-content: space-evenly;
}
.hero-image img {
  width: 75%;
  height: 75%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: scale(1.02);
}

/**************************************************************
* Login/Signup
***************************************************************/

.page-header {
  background: linear-gradient(135deg, #1A1B3A 0%, #2D1B69 50%, #A855F7 100%);
  color: #E8E9F3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 1rem 1rem;
  position: relative;
  /* border: 2px solid green; */
  height: 100vh;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23A855F7" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="2s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="0.5" fill="%2300D9FF" opacity="0.4"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="3s" repeatCount="indefinite"/></circle><circle cx="30" cy="70" r="0.8" fill="%23E879F9" opacity="0.3"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="2.5s" repeatCount="indefinite"/></circle></svg>');
  /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,45 52,50 58,50 53,53 55,58 50,55 45,58 47,53 42,50 48,50" fill="%23A855F7" opacity="0.3"><animate attributeName="opacity" values="0.2;0.3;0.2" dur="2.5s" repeatCount="indefinite"/></polygon><polygon points="20,15 21,18 24,18 22,20 23,23 20,21 17,23 18,20 16,18 19,18" fill="%2300D9FF" opacity="0.5"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="3s" repeatCount="indefinite"/></polygon><polygon points="80,35 81,38 84,38 82,40 83,43 80,41 77,43 78,40 76,38 79,38" fill="%23E879F9" opacity="0.4"><animate attributeName="opacity" values="0.2;0.7;0.2" dur="2s" repeatCount="indefinite"/></polygon></svg>'); */
  background: url('/images/login2.svg');
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(17, 17, 39, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(8px);
  /* border: 2px solid red; */
}

.auth-card-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  /* border: 2px solid red; */
}

.auth-card-subtitle {
  margin: 0 0 1.25rem 0;
  color: #B8C5D6;
  font-size: 0.95rem;
  /* border: 2px solid red; */

}

.auth-form .form-group {
  margin-bottom: 1rem;
  text-align: left;
  /* border: 2px solid red; */

}

.auth-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #D7DBE7;
  /* border: 2px solid red; */

}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(184, 197, 214, 0.25);
  background: rgba(12, 12, 28, 0.6);
  color: #E8E9F3;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  /* border: 2px solid red !important; */
}

.auth-form input::placeholder {
  color: #9AA8BA;

}

.auth-form input:focus {
  border-color: #A855F7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.auth-form .form-actions {
  margin-top: 1rem;
  /* border: 2px solid red; */

}

.helper-text {
  margin-top: 0.75rem;
  color: #B8C5D6;
  font-size: 0.9rem;
  /* border: 2px solid red; */

}
.auth-form .helper-text a:hover {
  /* border: 2px solid red; */
  color: #0284C7;
}

.auth-form .form-actions .btn {
  width: 100%;
}

.checkbox {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.checkbox label {
  gap: 0.25rem;
  margin: 0;
  cursor: pointer;
}

/**************************************************************
* Auction
***************************************************************/
.auction-page {
  height: calc(100vh - 225px);
  margin-top: 225px;
  display: flex;
  flex-direction: column;
  /* border: 2px solid red; */
}

.auction-hero {
  text-align: center;
  padding: 1.5rem 2rem 1rem 2rem;
  /* border: 2px solid red; */

}

.auction-title {
  color: #E8E9F3;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  /* border: 2px solid red; */

}

.auction-subtitle {
  margin: 0;
  color: #B8C5D6;
  font-size: 1.125rem;
  /* border: 2px solid red;  */
}

.auction-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  min-height: 0;
  /* border: 2px solid red; */

}

.auction-sidebar {
  /* border: 2px solid gold; */
  padding: 1.5rem;
}


.auction-sidebar::-webkit-scrollbar {
  width: 8px;
}

.auction-sidebar::-webkit-scrollbar-track {
  background: rgba(12, 12, 28, 0.3);
}

.auction-sidebar::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 4px;
}

.auction-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

.auction-main {
  padding: 1.5rem;
  /* border: 2px solid green; */
}

.auction-main::-webkit-scrollbar {
  width: 10px;
}

.auction-main::-webkit-scrollbar-track {
  background: rgba(12, 12, 28, 0.3);
}

.auction-main::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 5px;
}

.auction-main::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.6);
}

.auction-card {
  background: rgba(17, 17, 39, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(8px);
  /* border: 2px solid red; */
}

.auction-card-list {
  display: flex;
  flex-direction: column;
  /* border: 2px solid red; */
}

.auction-card-title {
  margin: 0 0 1rem 0;
  color: #E8E9F3;
  font-size: 1.25rem;
  /* border: 2px solid red; */
}

.auction-form-group {
  margin-bottom: 0.9rem;
  /* border: 2px solid red; */
}

.auction-form-group label {
  /* border: 2px solid red; */
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #D7DBE7;
  font-weight: 500;
}

.auction-form-group small {
  color: #999;
  display: block;
  /* border: 2px solid red; */

}

.auction-form-group .required {
  color: #E879F9;
}

.auction-form input[type="text"],
.auction-form input[type="url"],
.auction-form input[type="file"],
.auction-form select,
.auction-form textarea {
  width: 100%;
  background: rgba(12, 12, 28, 0.6);
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(184, 197, 214, 0.25);
  border-radius: 10px;
  color: #E8E9F3;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  /* border: 2px solid yellow; */
}

.auction-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A855F7' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

.auction-form select option,
.auction-form select:focus {
  background: #1A1B3A;
  color: #E8E9F3;
  padding: 0.5rem;
}

.auction-form select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.auction-form input::placeholder,
.auction-form textarea::placeholder {
  color: #9AA8BA;
  /* color: cyan; */
  /* border: 2px solid red; */
}

.auction-form input:focus,
.auction-form textarea:focus {
  border-color: #A855F7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
  /* border: 2px solid red; */
}

.auction-form-actions .btn {
  width: 100%;
  /* border: 2px solid red; */
}

.auction-list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  /* border: 2px solid red; */
}

.auction-list-meta {
  margin: 0;
  color: #B8C5D6;
  font-size: 0.95rem;
  /* border: 2px solid red; */
}

.auction-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  /* border: 2px solid red; */
}

.listing-card {
  border: 1px solid rgba(0, 217, 255, 0.14);
  border-radius: 14px;
  background: rgba(12, 12, 28, 0.55);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  /* border: 2px solid red; */
}

.listing-card-media {
  position: relative;
  background: rgba(168, 85, 247, 0.08);
  /* border: 2px solid red; */
}

.listing-card-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px 14px 0 0 ;
  /* border: 2px solid red; */
}


.listing-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* border: 2px solid red; */
}

.listing-card-title {
  margin: 0 0 0.4rem 0;
  color: #E8E9F3;
  font-size: 1.1rem;
  /* border: 2px solid red; */
}

.listing-card-seller {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(168, 85, 247, 0.08);
  border-radius: 8px;
}


.seller-avatar {
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.3);
  flex-shrink: 0;
}

.seller-name {
  color: #B8C5D6;
  font-size: 0.9rem;
}

.listing-card-actions {
  /* border: 2px solid red; */
  display: flex;
  gap: 0.75rem;
  margin-top: auto;

}

.listing-card-actions .btn {
  flex: 1;
}
.deleteForm {
  flex: 1;
  margin: 0;

}
.deleteForm .btn {
  width: 100%;
  color: #E8E9F3;
}

/* .auction-empty {
  border: 1px dashed rgba(184, 197, 214, 0.28);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  border: 2px solid red;
}

.auction-empty-title {
  margin: 0 0 0.35rem 0;
  color: #E8E9F3;
  border: 2px solid red;
}

.auction-empty-text {
  margin: 0;
  color: #B8C5D6;
  border: 2px solid red;

} */

/**************************************************************
* Onboard
***************************************************************/
.onboarding-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #1A1B3A 0%, #2D1B69 50%, #0F0F23 100%);
}

.onboarding-page .container {
  max-width: 480px;
}

.onboarding-card {
  background: rgba(17, 17, 39, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(8px);
}

.onboarding-header {
  text-align: center;
  margin-bottom: 2rem;
}

.onboarding-header h1 {
  color: #E8E9F3;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.onboarding-header p {
  color: #B8C5D6;
  font-size: 1rem;
  margin: 0;
}

.onboarding-form .form-group {
  margin-bottom: 1.5rem;
}

.onboarding-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #D7DBE7;
  font-weight: 500;
}

.onboarding-form .required {
  color: #E879F9;
}

.onboarding-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(184, 197, 214, 0.25);
  background: rgba(12, 12, 28, 0.6);
  color: #E8E9F3;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
}

.onboarding-form input::placeholder {
  color: #9AA8BA;
}

.onboarding-form input:focus {
  border-color: #A855F7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.onboarding-form input:invalid:not(:placeholder-shown) {
  border-color: #E879F9;
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  color: #9AA8BA;
  font-size: 0.875rem;
  line-height: 1.4;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.header-minimal {
  background: rgba(26, 27, 58, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-minimal .nav-container {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
}

.header-minimal .nav-brand a {
  text-decoration: none;
  color: #E8E9F3;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.header-minimal .nav-brand i {
  color: #A855F7;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

/**************************************************************
* Profile Page
***************************************************************/
.profile-main {
  padding-top: calc(var(--header-h) + 24px);
  min-height: 100vh;
  padding-bottom: 3rem;
  /* border: 2px solid red !important; */
}

.profile-main .container {
  max-width: 640px;
  /* border: 2px solid red; */
}

.card-panel {
  background: rgba(17, 17, 39, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(8px);
  /* border: 2px solid red; */
}

.card-panel header h1 {
  color: #E8E9F3;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  /* border: 2px solid red; */

}

.profile-avatar {
  margin: 0 0 1.5rem 0;
  /* border: 2px solid red; */

}

.profile-avatar img {
  display: inline-block;
  border: 3px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
  width: 120px;
  height: 120px;
  object-fit: cover;
  /* border: 2px solid red; */

}

.file-field {
  margin-bottom: 1rem;
}

.file-field label {
  cursor: pointer;
  position: relative;
  /* border: 2px solid red; */
}

.file-field input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
  /* border: 2px solid red !important; */
  /* opacity: 1; */
}

.profile-info-section {
  margin-top: 2rem;
  /* border: 2px solid red; */
}

.profile-info-card {
  background: rgba(12, 12, 28, 0.4);
  border: 1px solid rgba(184, 197, 214, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  /* border: 2px solid red; */
}

.profile-info-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  /* border: 2px solid red; */
}

.profile-info-item:last-child {
  margin-bottom: 0;
  /* border: 2px solid red; */
}

.profile-info-card dt {
  color: #B8C5D6;
  font-weight: 500;
  /* border: 2px solid red; */
}

.profile-info-card dd {
  color: #E8E9F3;
  margin: 0;
  /* border: 2px solid red; */
}

.profile-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  /* border: 2px solid red; */
}

.profile-actions .btn {
  min-width: 140px;
  color: black;
  /* border: 2px solid red; */
}

.blue-grey {
  background: linear-gradient(135deg, #546E7A 0%, #455A64 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  /* border: 2px solid red; */
}

.blue-grey:hover {
  background: linear-gradient(135deg, #607D8B 0%, #546E7A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
  /* border: 2px solid red; */
}

.btn.red {
  background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
  border: 1px solid rgba(229, 57, 53, 0.3);
  border: 2px solid red;
}

.btn.red:hover {
  background: linear-gradient(135deg, #EF5350 0%, #E53935 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

/**************************************************************
* Edit Profile 
***************************************************************/
.card-panel header {
  margin-bottom: 2rem;
  /* border: 2px solid red; */
}

.section-description {
  color: #B8C5D6;
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
  /* border: 2px solid red; */
}

.edit-profile-form .form-group {
  margin-bottom: 1.5rem;
  /* border: 2px solid red; */

}

.edit-profile-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #D7DBE7;
  font-weight: 500;
  /* border: 2px solid red; */
}

.edit-profile-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(184, 197, 214, 0.25);
  background: rgba(12, 12, 28, 0.6);
  color: #E8E9F3;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
  /* border: 2px solid red; */

}

.edit-profile-form input::placeholder {
  color: #9AA8BA;
}

.edit-profile-form input:focus {
  border-color: #A855F7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.form-help {
  display: block;
  margin-top: 0.5rem;
  color: #9AA8BA;
  font-size: 0.875rem;
  /* border: 2px solid red; */

}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  /* border: 2px solid red; */
}

.form-actions .btn {
  min-width: 120px;
  /* border: 2px solid red; */
}
/**************************************************************
* Error Pages (404, 403, 500)
***************************************************************/
.error-page {
  padding-top: calc(var(--header-h) + 40px);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  text-align: center;
  max-width: 600px;
  background: rgba(17, 17, 39, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(8px);
}

.error-icon {
  font-size: 4rem;
  color: #A855F7;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
}

.error-title {
  color: #E8E9F3;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.error-message {
  color: #B8C5D6;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-submessage {
  color: #9AA8BA;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .btn {
  min-width: 140px;
}
/**************************************************************
* Terms & Privacy
***************************************************************/
.legal-page {
  padding-top: calc(var(--header-h) + 24px);
  min-height: 100vh;
  padding-bottom: 3rem;
}

.legal-document {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(17, 17, 39, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(8px);
  color: #E8E9F3;
  line-height: 1.7;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.legal-header h1 {
  color: #E8E9F3;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.legal-meta {
  color: #B8C5D6;
  font-size: 0.95rem;
  margin: 0;
}

.legal-document section {
  margin-bottom: 3rem;
}

.legal-document h2 {
  color: #A855F7;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.legal-document h3 {
  color: #B8C5D6;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.legal-document p {
  margin-bottom: 1.25rem;
  color: #B8C5D6;
}

.legal-document ul,
.legal-document ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: #B8C5D6;
}

.legal-document li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.legal-document dl {
  margin-bottom: 2rem;
}

.legal-document dt {
  font-weight: 600;
  color: #E8E9F3;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-document dd {
  margin-left: 0;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  border-left: 3px solid rgba(168, 85, 247, 0.3);
  color: #B8C5D6;
}

.legal-document a {
  color: #A855F7;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.legal-document a:hover {
  color: #00D9FF;
  border-bottom-color: #00D9FF;
}

.legal-document a:focus {
  outline: 2px solid #A855F7;
  outline-offset: 2px;
  border-radius: 2px;
}

.legal-document strong {
  color: #E8E9F3;
}

/**************************************************************
* Detailed Auction Page
***************************************************************/
.detailed-auction-page {
  padding-top: calc(var(--header-h) + 24px);
  min-height: 100vh;
  padding-bottom: 3rem;
  /* border: 2px solid red; */
}

.detailed-nav {
  margin-bottom: 1.5rem;
  /* border: 2px solid red; */
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(17, 17, 39, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 10px;
  color: #E8E9F3;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.btn-back:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #A855F7;
  transform: translateX(-3px);
}

.btn-back i {
  color: #A855F7;
  transition: transform 0.2s ease;
}

.btn-back:hover i {
  transform: translateX(-3px);
}

.detailed-auction-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
  /* border: 2px solid red; */
}

.detailed-auction-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* border: 2px solid red; */
}

.detailed-image-container {
  /* border: 2px solid red; */
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(17, 17, 39, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.12);
}

.detailed-image {
  /* border: 2px solid red; */
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
  background: rgba(12, 12, 28, 0.4);
}

.detailed-image-placeholder {
  /* border: 2px solid red; */
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #B8C5D6;
  gap: 1rem;
}

.detailed-image-placeholder i {
  font-size: 4rem;
  color: rgba(168, 85, 247, 0.3);
}

.detailed-image-placeholder p {
  margin: 0;
  font-size: 1.1rem;
}

.detailed-card {
  /* border: 2px solid red; */
  background: rgba(17, 17, 39, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(8px);
}

.detailed-category-badge {
  /* border: 2px solid red; */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  color: #A855F7;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.detailed-category-badge i {
  font-size: 0.85rem;
}

.detailed-title {
  color: #E8E9F3;
  font-size: 2.25rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.detailed-description-section {
  /* border: 2px solid red; */
  margin-bottom: 2rem;
}

.section-title {
  /* border: 2px solid red; */
  color: #E8E9F3;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.detailed-description {
  /* border: 2px solid red; */
  color: #B8C5D6;
  line-height: 1.7;
  font-size: 1rem;
  white-space: pre-wrap;
  margin: 0;
}

.info-list {
  /* border: 2px solid red; */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  /* border: 2px solid red; */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

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

.info-label {
  color: #9AA8BA;
  font-size: 0.9rem;
  font-weight: 500;
  /* border: 2px solid red; */
}

.info-value {
  color: #E8E9F3;
  font-size: 0.95rem;
  font-weight: 500;
}

.seller-card {
  padding: 1.5rem;
  margin-top: 1rem;
}

.seller-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.seller-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.seller-details {
  flex: 1;
}

.seller-joined {
  color: #9AA8BA;
  font-size: 0.85rem;
  margin: 0;
}
/**************************************************************
* Footer todo
***************************************************************/
/* .auction-footer {
  flex-shrink: 0;
  padding: 1rem 2rem;
  background: rgba(12, 12, 28, 0.6);
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #B8C5D6;
}

.auction-footer nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.auction-footer a {
  text-decoration: none;
}

.auction-footer a:hover {
  transform: translateY(-2px);
}

.auction-footer .helpIcon {
  border: 2px solid #A855F7;
  border-radius: 6px;
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
}
.helpIcon i {
  color: #A855F7;
} */
/**************************************************************
* Media queries
***************************************************************/
@media (max-width: 1024px) {
   
  body:has(.auction-page) {
    overflow: auto;
    /* border: 2px solid red; */
  }

  .detailed-auction-layout {
    /* border: 2px solid red; */
    grid-template-columns: 1fr;
  }

  .detailed-auction-sidebar {
    /* border: 2px solid red; */
    position: static;
  }

}

@media (max-width: 768px) {

  /* nav partial */
    .nav-actions a {
      /* border: 2px solid red; */
      font-size: .75rem;
      padding: 7.5px 12px !important;
    }

    .nav-brand i, .nav-brand span{
      /* border: 2px solid red; */
      font-size: 1.25rem;
    }

    /* home */
    .hero {
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
      /* border: 2px solid red; */
  }

  .hero-title {
      font-size: 2rem;
      /* border: 2px solid red; */
  }

  .hero-image {
    display: none;
  }

    /* Flash */
  .error-content {
    padding: 2rem 1.5rem;
    border: 2px solid red;

  }
  .error-icon {
    font-size: 3rem;
  }
  
  .error-title {
    font-size: 1.5rem;
  }
  
  .error-actions {
    flex-direction: column;
  }
  
  .error-actions .btn {
    width: 100%;
  }

  .flash-stack {
    top: calc(var(--header-h) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
  }
  
  .flash {
    padding: 12px 16px;
  }

  /* signup/login */
  .checkbox label {
    font-size: .75rem;
  }

  .signup-page .page-header {
    padding: 5rem 1rem .5rem 1rem;
  }

  .signup-page .page-header .auth-card {
    padding: 1rem;
  }

  .signup-page .page-header .auth-card-subtitle {
    margin-bottom: .5rem;
  }

  .signup-page .page-header .form-group {
    margin-bottom: .5rem;
  }

  .signup-page .page-header .helper-text {
    margin: .5rem 0;
    /* border: 2px solid red; */
  }


  /* profile */
  .profile-main {
    padding-bottom: 0.5rem;
  }
  .profile-main .card-panel {
    padding: 1rem;
    /* border: 2px solid red; */
  }

  .profile-main .card-panel #upload-btn-text {
    color: black;
    /* border: 2px solid red; */
  }

  .profile-main .file-field {
    margin-bottom: .5rem;
  }
  
  .profile-main .container .card-panel section {
    /* border: 2px solid red; */
    margin: .5rem 0;
  }

  .profile-main .container .card-panel header h1 {
    /* border: 2px solid red; */
    margin: 0;
    font-size: 1.75rem;
  }

  .profile-main .container .card-panel figure {
    margin: 0;
  }

  /* onboard */
  .onboarding-card {
    padding: 2rem 1.5rem;
  }
  
  .onboarding-header h1 {
    font-size: 1.5rem;
  }

  .user-email {
    display: none;
  }

  /* header partial on /auction route */
  .header-overlay {
    min-height: 0px !important;
    background: none;
  }
  .header-overlay-text {
    display: none !important;
  } 

  .auction-hero {
    display: none;
  }

  .auction-page {
    height: calc(100vh - 60px);
    margin-top: 75px;
    /* border: 5px dashed green; */
  }
  
  .auction-sidebar,
  .auction-main {
    padding: 1rem;
    /* border: 2px solid red; */

  }
    
  .listing-card-actions {
    flex-direction: column;
    /* border: 2px solid red; */

  }

  .auction-layout {
    grid-template-columns: 1fr;
    /* grid-template-rows: auto 1fr; */
    /* border: 2px solid green; */
  }

  /* detailed auction */
  .detailed-auction-page {
    padding-top: calc(var(--header-h) + 16px);
    /* border: 2px solid red; */
  }

  .detailed-card {
    padding: 1.5rem;
  }

  .detailed-title {
    font-size: 1.75rem;
  }

}