/* wp-content/themes/tahn-core/assets/css/theme.css */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;600;700&display=swap');

:root{
  --purple:#6C3DF4;
  --purple-light:#E7DDFF;
  --purple-dark:#5028D0;
  --border:#E3D4FF;
  --gray-50:#F9FAFB;
  --gray-100:#F3F4F6;
  --gray-200:#E5E7EB;
  --gray-700:#374151;
  --gray-900:#111827;
  --shadow-sm:0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font-heading:'Instrument Sans',sans-serif;
  --font-body:'Roboto',sans-serif;
}

*{
  box-sizing:border-box;
  font-family: var(--font-body);
}

body{
  margin:0;
  font:16px/1.5 var(--font-body);
  color:var(--gray-900);
  background:var(--gray-50);
  font-family: var(--font-body);
}

h1,h2,h3,h4,h5,h6{
  font-family:var(--font-heading);
  font-weight:600;
}

.wrap{
  max-width:1280px;
  margin:0 auto;
  padding:0 1.5rem;
}

/* ===== HEADER ===== */
.site-header{
  background:#0E1937;
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  position:sticky;
  top:0;
  z-index:100;
}

.site-header li a {
  font-family: Instrument Sans, sans-serif;
  font-size: 1.3rem;
}

.site-header .wrap{
  display:flex;
  gap:1.5rem;
  align-items:center;
  justify-content:space-between;
  min-height:90px;
}

.header-left{
  flex-shrink:0;
}

.brand{
  display:flex;
  align-items:center;
  gap:0.75rem;
  font-weight:700;
  font-size:1.125rem;
  text-decoration:none;
  color:#ffffff;
  transition:opacity 0.2s;
}

.brand:hover{
  opacity:0.9;
}

.brand-icon{
  flex-shrink:0;
}

.brand-text{
  white-space:nowrap;
}

.header-center{
  flex:1;
  display:flex;
  justify-content:center;
}

.primary-nav{
  display:flex;
}

.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:0.5rem;
  align-items:center;
}

.menu a{
  text-decoration:none;
  color:#ffffff;
  padding:0.625rem 1rem;
  border-radius:8px;
  font-weight:500;
  transition:all 0.2s;
  display:block;
}

.menu a:hover{
  background:rgba(255,255,255,0.1);
  color:#ffffff;
}

.menu a.current-menu-item,
.menu a[aria-current="page"]{
  background:rgba(255,255,255,0.2);
  color:#ffffff;
}

.header-right{
  flex-shrink:0;
}

/* User Menu */
.user-menu{
  position:relative;
}

.user-menu-toggle{
  display:flex;
  align-items:center;
  gap:0.75rem;
  padding:0.5rem 1rem;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  transition:all 0.2s;
}

.user-menu-toggle:hover{
  border-color:var(--purple);
  box-shadow:var(--shadow);
}

.user-avatar{
  display:flex;
  align-items:center;
  border-radius:50%;
  overflow:hidden;
}

.user-avatar img{
  display:block;
  width:32px;
  height:32px;
}

.user-info{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0.125rem;
  color:var(--gray-700);
}

.dropdown-icon{
  transition:transform 0.2s;
  color:var(--gray-700);
}

.user-menu-toggle[aria-expanded="true"] .dropdown-icon{
  transform:rotate(180deg);
}

.user-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 0.5rem);
  min-width:200px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow-lg);
  padding:0.5rem;
  z-index:1000;
}

.user-dropdown a{
  display:block;
  padding:0.625rem 1rem;
  color:var(--gray-700);
  text-decoration:none;
  border-radius:8px;
  transition:background 0.2s;
}

.user-dropdown a:hover{
  background:var(--gray-100);
}

.user-dropdown hr{
  margin:0.5rem 0;
  border:0;
  border-top:1px solid var(--border);
}

/* Auth Links */
.auth-links{
  display:flex;
  gap:0.75rem;
  align-items:center;
}

.btn-login{
  padding:0.625rem 1.5rem;
  text-decoration:none;
  color:#ffffff;
  font-weight:500;
  border-radius:8px;
  border:2px solid #ffffff;
  background:transparent;
  transition:all 0.2s;
  white-space:nowrap;
}

.btn-login:hover{
  background:rgba(255,255,255,0.1);
  border-color:#ffffff;
}

.btn-register{
  padding:0.625rem 1.5rem;
  text-decoration:none;
  background:#ffffff;
  color:#0E1937;
  font-weight:600;
  border-radius:8px;
  border:2px solid #ffffff;
  transition:all 0.2s;
  white-space:nowrap;
}

.btn-register:hover{
  background:rgba(255,255,255,0.9);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(255,255,255,0.2);
}

/* ===== MAIN CONTENT ===== */
.site-main{
  padding:2rem 0;
  min-height:60vh;
}

/* ===== PORTAL LAYOUT ===== */
.portal-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:0;
  min-height:calc(100vh - 72px);
  background:var(--bg);
}

.portal-sidebar{
  background:#fff;
  border-right:1px solid var(--border);
  padding:2rem 0;
  position:sticky;
  top:72px;
  height:calc(100vh - 72px);
  overflow-y:auto;
}

.portal-nav{
  display:flex;
  flex-direction:column;
  gap:0.5rem;
  padding:0 1rem;
}

.portal-nav-item{
  display:flex;
  align-items:center;
  gap:0.875rem;
  padding:0.875rem 1rem;
  text-decoration:none;
  color:var(--gray-700);
  font-family:var(--font-heading);
  font-weight:500;
  font-size:0.9375rem;
  border-radius:8px;
  transition:all 0.2s;
}

.portal-nav-item:hover{
  background:var(--purple-light);
  color:var(--purple-dark);
}

.portal-nav-item.active{
  background:var(--purple);
  color:#fff;
}

.portal-nav-item svg{
  width:20px;
  height:20px;
  flex-shrink:0;
}

.portal-main-content{
  padding:2rem 3rem;
  overflow-x:hidden;
}

/* Responsive Portal Layout */
@media (max-width: 1024px){
  .portal-layout{
    grid-template-columns:240px 1fr;
  }
  
  .portal-main-content{
    padding:2rem 2rem;
  }
}

@media (max-width: 768px){
  .portal-layout{
    grid-template-columns:1fr;
  }
  
  .portal-sidebar{
    display:none;
  }
  
  .portal-main-content{
    padding:1.5rem 1rem;
  }
}

/* ===== FOOTER ===== */
.site-footer{
  background:var(--gray-900);
  color:#fff;
  padding:3rem 0 1.5rem;
  margin-top:4rem;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.5fr;
  gap:2rem;
  margin-bottom:2rem;
  padding-bottom:2rem;
  border-bottom:1px solid rgba(255,255,255,0.1);
}

.footer-col h3{
  margin:0 0 0.75rem;
  font-size:1.25rem;
}

.footer-col h4{
  margin:0 0 1rem;
  font-size:0.875rem;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:rgba(255,255,255,0.7);
}

.footer-col p{
  margin:0 0 1rem;
  color:rgba(255,255,255,0.8);
  font-size:0.875rem;
}

.footer-menu{
  display:flex;
  flex-direction:column;
  gap:0.5rem;
  list-style:none;
  margin:0;
  padding:0;
}

.footer-menu a{
  color:rgba(255,255,255,0.8);
  text-decoration:none;
  font-size:0.875rem;
  transition:color 0.2s;
}

.footer-menu a:hover{
  color:#fff;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:1rem;
  padding-top:1.5rem;
  color:rgba(255,255,255,0.6);
  font-size:0.875rem;
}

.footer-legal{
  display:flex;
  gap:1.5rem;
}

.footer-legal a{
  color:rgba(255,255,255,0.6);
  text-decoration:none;
  transition:color 0.2s;
}

.footer-legal a:hover{
  color:#fff;
}

/* ===== CARDS ===== */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:1.5rem;
}

.card{
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow-sm);
  transition:all 0.2s;
}

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

.card img{
  width:100%;
  height:auto;
  display:block;
}

.card h2{
  margin:1rem;
  font-size:1.125rem;
  line-height:1.4;
}

.card a{
  color:inherit;
  text-decoration:none;
}

/* ===== SINGLE DEAL ===== */
.single-deal{
  max-width:900px;
  margin:0 auto;
}

.deal-header{
  margin-bottom:2rem;
}

.deal-header .entry-title{
  margin:0 0 0.5rem;
  font-size:2.5rem;
  line-height:1.2;
}

.deal-location{
  display:flex;
  align-items:center;
  gap:0.5rem;
  color:var(--gray-700);
  font-size:1.125rem;
  margin:0;
}

.deal-location svg{
  color:var(--purple);
}

.deal-image{
  border-radius:12px;
  overflow:hidden;
  margin-bottom:2rem;
  box-shadow:var(--shadow);
}

.deal-image img{
  width:100%;
  height:auto;
  display:block;
}

.deal-details{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:2rem;
  margin-bottom:2rem;
  box-shadow:var(--shadow-sm);
}

.deal-meta-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1.5rem;
}

.deal-meta-item{
  display:flex;
  flex-direction:column;
  gap:0.5rem;
}

.meta-label{
  font-size:0.875rem;
  font-weight:500;
  color:var(--gray-700);
  text-transform:uppercase;
  letter-spacing:0.05em;
}

.meta-value{
  font-size:1.125rem;
  font-weight:600;
  color:var(--gray-900);
}

.deal-actions{
  display:flex;
  gap:1rem;
  margin-top:2rem;
  padding-top:2rem;
  border-top:1px solid var(--border);
}

.btn{
  padding:0.875rem 1.75rem;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  font-family:var(--font-heading);
  transition:all 0.2s;
  display:inline-block;
  text-align:center;
  position:relative;
  border:2px solid transparent;
  background-origin:border-box;
  background-clip:padding-box, border-box;
}

.btn-primary{
  background:#0E1937;
  color:#ffffff;
  border:2px solid transparent;
  background-image:
    linear-gradient(#0E1937, #0E1937),
    linear-gradient(135deg, #8C3EFA, #209DD9);
  background-origin:border-box;
  background-clip:padding-box, border-box;
}

.btn-primary:hover{
  background-image:
    linear-gradient(#1a2650, #1a2650),
    linear-gradient(135deg, #8C3EFA, #209DD9);
  box-shadow:0 4px 12px rgba(140, 62, 250, 0.3);
  transform:translateY(-1px);
}

.btn-secondary{
  background:#ffffff;
  color:#000000;
  border:2px solid transparent;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #8C3EFA, #209DD9);
  background-origin:border-box;
  background-clip:padding-box, border-box;
}

.btn-secondary:hover{
  background-image:
    linear-gradient(#f8f9fa, #f8f9fa),
    linear-gradient(135deg, #8C3EFA, #209DD9);
  transform:translateY(-1px);
}

/* ===== PORTAL / TABLES ===== */
.portal-content{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:2rem;
  box-shadow:var(--shadow-sm);
}

.page-title{
  margin:0 0 1.5rem;
  font-size:2rem;
}

/* ===== TABLES ===== */
.tahn-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:8px;
  overflow:hidden;
}

.tahn-table thead{
  background:var(--gray-50);
}

.tahn-table th,
.tahn-table td{
  border-top:1px solid var(--border);
  padding:0.875rem 1rem;
  text-align:left;
  font-size:0.875rem;
}

.tahn-table th{
  font-weight:600;
  color:var(--gray-700);
  text-transform:uppercase;
  font-size:0.75rem;
  letter-spacing:0.05em;
}

.tahn-table tbody tr{
  transition:background 0.15s;
}

.tahn-table tbody tr:hover{
  background:var(--gray-50);
}

/* ===== INVOICE STATS ===== */
.tahn-invoice-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1rem;
  margin-bottom:1.5rem;
}

.tahn-invoice-stats .stat{
  border:1px solid var(--border);
  border-radius:12px;
  padding:1.25rem;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.tahn-invoice-stats .stat span{
  display:block;
  font-size:0.875rem;
  color:var(--gray-700);
  margin-bottom:0.5rem;
}

.tahn-invoice-stats .stat strong{
  display:block;
  font-size:1.875rem;
  font-weight:700;
  color:var(--gray-900);
}

.tahn-invoice-filters{
  display:flex;
  gap:0.75rem;
  flex-wrap:wrap;
  margin:1rem 0 1.5rem;
}

.tahn-invoice-filters input,
.tahn-invoice-filters select{
  padding:0.625rem 1rem;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:0.875rem;
}

/* ===== SINGLE DEAL PAGE ===== */
.single-deal{
  max-width:1200px;
  margin:0 auto;
  padding:2rem 1.5rem;
}

.deal-featured-image{
  margin:2rem 0;
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.deal-featured-image img{
  width:100%;
  height:auto;
  display:block;
}

.deal-gallery{
  margin:2rem 0;
}

.deal-gallery h2{
  margin-bottom:1rem;
  color:var(--gray-900);
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:1rem;
}

.gallery-item{
  border-radius:8px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform 0.2s,box-shadow 0.2s;
}

.gallery-item:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

.gallery-item img{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
}

.deal-section{
  background:#fff;
  border-radius:12px;
  padding:1.5rem;
  margin:1.5rem 0;
  box-shadow:var(--shadow-sm);
  border:1px solid var(--border);
}

.deal-section h2{
  margin:0 0 1.25rem;
  font-size:1.5rem;
  color:var(--purple);
  font-weight:600;
  padding-bottom:0.75rem;
  border-bottom:2px solid var(--purple-light);
}

.address-block p{
  margin:0.25rem 0;
  color:var(--gray-700);
}

.tenures-table-wrapper,
.soa-table-wrapper{
  overflow-x:auto;
  margin-top:1rem;
}

.tenures-table,
.soa-table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:1rem;
}

.tenures-table th,
.tenures-table td,
.soa-table th,
.soa-table td{
  padding:0.75rem 1rem;
  text-align:left;
  border-bottom:1px solid var(--gray-200);
}

.tenures-table th,
.soa-table th{
  background:var(--purple-light);
  color:var(--purple-dark);
  font-weight:600;
  text-transform:uppercase;
  font-size:0.875rem;
}

.tenures-table tbody tr:hover,
.soa-table tbody tr:hover{
  background:var(--gray-50);
}

.tenure-note{
  margin-top:1rem;
  padding:0.75rem 1rem;
  background:var(--purple-light);
  border-left:4px solid var(--purple);
  border-radius:4px;
  font-size:0.875rem;
}

.documents-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:1rem;
}

.document-item{
  background:var(--gray-50);
  border:1px solid var(--border);
  border-radius:8px;
  transition:all 0.2s;
}

.document-item:hover{
  background:var(--purple-light);
  border-color:var(--purple);
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

.document-link{
  display:flex;
  align-items:center;
  gap:0.75rem;
  padding:1rem;
  text-decoration:none;
  color:var(--gray-900);
  font-weight:500;
}

.document-link svg{
  flex-shrink:0;
  color:var(--purple);
}

.additional-info-content{
  color:var(--gray-700);
  line-height:1.6;
}

/* ===== BID MODAL ===== */
.bid-modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bid-modal-overlay{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(4px);
}

.bid-modal-content{
  position:relative;
  background:#fff;
  border-radius:16px;
  box-shadow:0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04);
  max-width:600px;
  width:90%;
  max-height:90vh;
  overflow-y:auto;
  animation:modal-slide-in 0.3s ease-out;
}

@keyframes modal-slide-in{
  from{
    opacity:0;
    transform:translateY(-20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.bid-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.5rem 2rem;
  border-bottom:2px solid var(--purple-light);
  background:linear-gradient(to right,var(--purple-light),#fff);
}

.bid-modal-header h2{
  margin:0;
  font-size:1.5rem;
  color:var(--purple-dark);
}

.bid-modal-close{
  background:none;
  border:none;
  font-size:2rem;
  line-height:1;
  cursor:pointer;
  color:var(--gray-700);
  padding:0;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  transition:all 0.2s;
}

.bid-modal-close:hover{
  background:var(--purple-light);
  color:var(--purple);
  transform:rotate(90deg);
}

/* ===== MESSAGE MODAL ===== */
.tahn-modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tahn-modal-overlay{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(4px);
  z-index:1;
}

.tahn-modal-content{
  position:relative;
  z-index:2;
  background:#fff;
  border-radius:16px;
  box-shadow:0 25px 50px -12px rgba(0,0,0,0.25);
  width:90%;
  max-width:500px;
  max-height:90vh;
  overflow:auto;
  animation:modalSlideIn 0.2s ease-out;
  padding:2rem;
}

@keyframes modalSlideIn{
  from{
    opacity:0;
    transform:translateY(-20px) scale(0.95);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.tahn-modal-content h2{
  margin:0 0 1.5rem;
  font-size:1.5rem;
  color:var(--gray-900);
}

.tahn-modal-close{
  position:absolute;
  top:1rem;
  right:1rem;
  background:none;
  border:none;
  font-size:1.5rem;
  line-height:1;
  cursor:pointer;
  color:var(--gray-500);
  padding:0.5rem;
  width:2rem;
  height:2rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  transition:all 0.2s;
}

.tahn-modal-close:hover{
  background:var(--purple-light);
  color:var(--purple);
  transform:rotate(90deg);
}

.form-actions{
  display:flex;
  gap:0.75rem;
  margin-top:1.5rem;
  justify-content:flex-end;
}

.button-primary,
.button-secondary{
  padding:0.75rem 1.5rem;
  border-radius:8px;
  font-weight:600;
  font-size:0.9375rem;
  cursor:pointer;
  transition:all 0.2s;
  border:none;
  font-family:var(--font-heading);
}

.button-primary{
  background:var(--purple);
  color:#fff;
}

.button-primary:hover{
  background:var(--purple-dark);
  box-shadow:var(--shadow);
}

.button-secondary{
  background:var(--gray-100);
  color:var(--gray-700);
  border:1px solid var(--border);
}

.button-secondary:hover{
  background:var(--gray-200);
}

/* ===== FORMS ===== */
.bid-form{
  padding:2rem;
}

#tenure-bids-container{
  margin-bottom:1.5rem;
}

.tenure-bid-row{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:1.25rem;
  margin-bottom:1rem;
}

.tenure-bid-row:last-child{
  margin-bottom:0;
}

.tenure-bid-header h4{
  margin:0 0 1rem 0;
  font-size:1rem;
  color:#1f2937;
  font-weight:600;
}

.tenure-bid-input{
  font-size:1rem !important;
}

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

.form-group label{
  display:block;
  font-weight:600;
  margin-bottom:0.5rem;
  color:var(--gray-900);
  font-size:0.875rem;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.required{
  color:#dc2626;
}

.form-group input[type="number"],
.form-group input[type="text"],
.form-group textarea{
  width:100%;
  padding:0.75rem 1rem;
  border:2px solid var(--border);
  border-radius:8px;
  font-size:1rem;
  font-family:var(--font-body);
  transition:all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus{
  outline:none;
  border-color:var(--purple);
  box-shadow:0 0 0 3px var(--purple-light);
}

.form-group textarea{
  resize:vertical;
}

.bid-form-actions{
  display:flex;
  gap:1rem;
  justify-content:flex-end;
  margin-top:2rem;
  padding-top:1.5rem;
  border-top:1px solid #e5e7eb;
}

.bid-form-actions .btn{
  padding:0.875rem 1.75rem;
  font-size:0.9375rem;
  font-weight:600;
  border-radius:8px;
  cursor:pointer;
  transition:all 0.2s;
  border:none;
}

.bid-form-actions .btn-secondary{
  background:#f3f4f6;
  color:#4b5563;
  border:1px solid #d1d5db;
}

.bid-form-actions .btn-secondary:hover{
  background:#e5e7eb;
}

.bid-form-actions .btn-primary{
  background:linear-gradient(135deg,#8C3EFA 0%,#209DD9 100%);
  color:white;
}

.bid-form-actions .btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(140,62,250,0.3);
  filter:brightness(1.05);
}

.bid-form-message{
  margin-top:1rem;
  padding:1rem;
  border-radius:8px;
  font-weight:500;
}

.bid-form-message.success{
  background:#dcfce7;
  color:#166534;
  border:1px solid #86efac;
}

.bid-form-message.error{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fca5a5;
}

/* ===== ENHANCED BID FORM ===== */
.bid-form-page{
  display:none;
}

.bid-form-page.active{
  display:block;
}

.currency-input-wrapper{
  position:relative;
  display:flex;
  align-items:center;
}

.currency-symbol{
  position:absolute;
  left:1rem;
  font-size:1.125rem;
  font-weight:600;
  color:var(--gray-700);
  pointer-events:none;
}

.currency-input{
  padding-left:2rem !important;
  font-size:1.125rem !important;
  font-weight:600 !important;
  font-family:monospace !important;
}

.radio-group{
  display:flex;
  gap:1.5rem;
  margin-top:0.5rem;
}

.radio-label{
  display:flex;
  align-items:center;
  gap:0.5rem;
  cursor:pointer;
  font-weight:normal !important;
  text-transform:none !important;
  letter-spacing:normal !important;
  color:var(--gray-700) !important;
  margin-bottom:0 !important;
}

.radio-label input[type="radio"]{
  width:18px;
  height:18px;
  cursor:pointer;
}

.date-input{
  width:100%;
  padding:0.75rem 1rem;
  border:2px solid var(--border);
  border-radius:8px;
  font-size:1rem;
  font-family:var(--font-body);
  transition:all 0.2s;
}

.date-input:focus{
  outline:none;
  border-color:var(--purple);
  box-shadow:0 0 0 3px var(--purple-light);
}

.amended-bid-amount{
  background:var(--purple-light);
  border:2px solid var(--purple);
  border-radius:8px;
  padding:1rem 1.25rem;
  font-size:1.5rem;
  font-weight:700;
  color:var(--purple-dark);
  font-family:monospace;
}

.form-help{
  display:block;
  margin-top:0.5rem;
  font-size:0.875rem;
  color:var(--gray-600);
  font-style:italic;
}

.individual-tenure-option{
  background:var(--purple-light);
  border:2px solid var(--purple);
  border-radius:12px;
  padding:1.5rem;
  margin-top:2rem;
}

.form-section-header{
  margin-bottom:2rem;
  padding-bottom:1rem;
  border-bottom:2px solid var(--purple-light);
}

.form-section-header h3{
  margin:0 0 0.5rem 0;
  font-size:1.25rem;
  color:var(--purple-dark);
}

.form-section-header p{
  margin:0;
  color:var(--gray-600);
  font-size:0.875rem;
}

.tenure-mix-item{
  background:#f9fafb;
  border:2px solid #e5e7eb;
  border-radius:12px;
  padding:1.5rem;
  margin-bottom:1.5rem;
  position:relative;
}

.tenure-mix-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:1.25rem;
  padding-bottom:0.75rem;
  border-bottom:1px solid #d1d5db;
}

.tenure-mix-header h4{
  margin:0;
  font-size:1rem;
  color:#1f2937;
  font-weight:600;
}

.btn-remove-tenure{
  background:#fee2e2;
  color:#dc2626;
  border:1px solid #fca5a5;
  padding:0.5rem;
  border-radius:6px;
  cursor:pointer;
  transition:all 0.2s;
  display:flex;
  align-items:center;
  justify-content:center;
}

.btn-remove-tenure:hover{
  background:#fecaca;
  border-color:#f87171;
}

.btn-add-tenure{
  display:flex;
  align-items:center;
  gap:0.5rem;
  margin-bottom:2rem;
  padding:0.875rem 1.5rem;
  background:var(--purple-light);
  color:var(--purple-dark);
  border:2px dashed var(--purple);
  font-weight:600;
}

.btn-add-tenure:hover{
  background:var(--purple);
  color:white;
  border-style:solid;
}

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

.tenure-select,
.number-input{
  width:100%;
  padding:0.75rem 1rem;
  border:2px solid var(--border);
  border-radius:8px;
  font-size:1rem;
  font-family:var(--font-body);
  transition:all 0.2s;
}

.tenure-select:focus,
.number-input:focus{
  outline:none;
  border-color:var(--purple);
  box-shadow:0 0 0 3px var(--purple-light);
}

input[type="file"]{
  padding:0.75rem;
  border:2px dashed var(--border);
  border-radius:8px;
  cursor:pointer;
  transition:all 0.2s;
}

input[type="file"]:hover{
  border-color:var(--purple);
  background:var(--purple-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header .wrap{
    flex-wrap:wrap;
  }
  
  .header-center{
    order:3;
    width:100%;
    justify-content:flex-start;
  }
  
  .footer-grid{
    grid-template-columns:1fr;
  }
  
  .footer-bottom{
    flex-direction:column;
    text-align:center;
  }
}