/**
 * CareToBid - Clean Professional Design
 * Minimal, modern styling focused on usability
 */

:root {
  --primary: #217ec2;
  --primary-dark: #1b689f;
  --secondary: #059669;
  --accent: #10b981;
  --text: #1f2937;
  --text-light: #3e4148;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --brand-green: #7fe266;
  --brand-green-glow: #7fe266;
}

/* === Modern Header Navigation === */
.modern-header {
  background-color: #282b33;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.header-logo .logo-img {
  height: 90px;
  width: auto;
  display: block;
}


.user-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.user-menu .nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.user-menu .nav-link:hover {
  color: var(--accent);
}

.dashboard-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.dashboard-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 auto;
}

.dashboard-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0 auto;
}

/* Streak Counter in Header */
.streak-cta {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.streak-cta:hover {
  background: linear-gradient(135deg, #ff8787 0%, #ff6b8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
  color: white !important;
}

.user-balance {
  background: var(--secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Credits CTA Button */
.credits-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  white-space: nowrap;
}

.credits-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.credits-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.credits-label {
  font-size: 0.7rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credits-amount {
  font-size: 1rem;
  font-weight: 700;
}

.credits-plus {
  font-size: 1rem;
  font-weight: 700;
  margin-left: 0rem;
  opacity: 0.9;
  padding-bottom: .75rem;
}

.btn-get-started {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: inline-block;
  white-space: nowrap;
}

.btn-get-started:hover {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  color: white;
}

/* Header Login Form */
.header-login-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  min-width: 140px;
  transition: all 0.2s;
  margin-bottom:10px;
}

.header-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-header-login {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-header-login:hover {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-header-signup {
  padding: 0.5rem 1rem;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-header-signup:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  text-decoration: none;
}

/* === Clean Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* === Container === */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  background: var(--gray-50);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem 0;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

strong {
  font-weight: 600;
  color: var(--text);
}

/* Override inline styles */
p[style] {
  color: var(--text) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* === Links === */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

/* === Header === */
.row:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0;
}

.row:first-child .col:first-child {
  flex: 0 0 auto;
}

.row:first-child .col:last-child {
  flex: 1;
}

/* === Logo === */
img[alt*="Logo"] {
  display: block;
  max-width: 400px;
  height: auto;
}

/* === Login Area === */
.row:first-child .col:last-child {
  font-size: 0.95rem;
}

form[name="loginForm"] {
  display: inline-block;
  background: transparent;
  padding: 0;
  margin: 0;
}

form[name="loginForm"] .row {
  margin: 0;
  gap: 0.5rem;
}

form[name="loginForm"] .col-md-5,
form[name="loginForm"] .col-md-2 {
  flex: 0 0 auto;
  width: auto;
  padding: 0;
}

form[name="loginForm"] .form-label {
  display: none;
}

form[name="loginForm"] .form-control {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  min-width: 150px;
}

form[name="loginForm"] input[type="submit"] {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

form[name="loginForm"] input[type="submit"]:hover {
  background: var(--primary-dark);
}

/* === Content Sections === */
.row:not(:first-child) {
  margin-bottom: 2rem;
}

.col-5, .col-8 {
  background: white;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.col-2 {
  background: var(--gray-50);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  text-align: center;
}

/* === User Balance === */
.userBalance {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0.5rem 0;
}

/* === Buttons & CTAs === */
.btn,
input[type="submit"],
input[type="button"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  color: white;
}

/* === Forms === */
.form-control,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

/* === Carousel/Auction Items === */
.carousel {
  margin: 2rem 0;
}

.carousel-item {
  padding: 1rem;
}

.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin: 0;
  padding: 1rem;
  background: var(--primary-dark);
}

.card-body {
  padding: 1.5rem;
}

.card-text {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Auction Card Header */
.card-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1rem 0;;
}

.header-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.auction-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.auction-title:hover {
  color: var(--primary);
  text-decoration: underline;
}

.header-title-row .dropdown button {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.header-title-row .dropdown button:hover {
  color: var(--primary);
}

/* Burger Menu Icon */
.burger-menu .burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger-menu:hover .burger-line {
  background-color: var(--primary);
}

/* Fundraising Progress Bar */
.fundraising-progress {
  margin-top: 0.75rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.raised-amount {
  font-weight: 600;
  color: var(--secondary);
}

.goal-amount {
  color: var(--text-light);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-percentage {
  text-align: right;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  position: relative;
  top: -20px;
  margin-bottom: -14px;
}

/* === Footer === */
.row:last-child {
  border-top: 1px solid var(--gray-200);
  padding-top: 0;
  margin-top: 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.site-footer {
  background-color: #282b33;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  color: rgba(255, 255, 255, 0.7);
  padding: 1rem 0 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

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

.site-footer a:hover {
  color: var(--accent);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.heartbeat {
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  pointer-events: none;
  opacity: 0.1;
}

.heartbeat svg {
  width: 100%;
  height: 100%;
}

.glow {
  filter: drop-shadow(0 0 6px var(--brand-green-glow)) drop-shadow(0 0 18px rgba(127, 226, 102, 0.35));
}

/* === Alerts === */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.alert-danger,
.errorMsg {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
}

/* === Utility === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-light); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* === Signup Page Styles === */
.signup-container {
  max-width: 1000px;
  margin: 1rem auto;
}

/* Hide header actions on signup, confirm, and login error pages */
.page-signup .header-actions,
.page-confirm-email .header-actions,
.page-login-error .header-actions {
  display: none;
}

.page-confirm-email .container {
  padding: 0 1rem;
}
.page-confirm-email .confirm-card {
  padding: 1rem 2rem;
}

.page-signup .container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.signup-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.signup-benefits {
  background: var(--primary-dark);
  padding: 3rem 2.5rem;
  color: white;
}

.signup-benefits h2 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.signup-benefits > p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.benefit-item {
  margin-bottom: 1.5rem;
}

.benefit-item h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
}

.signup-security {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.signup-security p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.85;
}

.signup-form-area {
  padding: 3rem 2.5rem;
}

.signup-form-area h3 {
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.signup-form-area > p {
  color: #6b7280;
  margin-bottom: 2rem;
}

.signup-form .form-label {
  font-weight: 600;
  color: #374151;
}

.signup-form .form-control {
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.signup-form small {
  color: #6b7280;
  font-size: 0.875rem;
  display: block;
  margin-top: 0.5rem;
}

.signup-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  background: var(--primary-dark);
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.signup-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.signup-signin-link {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.signup-signin-link a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

/* === Confirm Email Page Styles === */
.confirm-email-container {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.confirm-card {
  background: white;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.confirm-icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  color: var(--primary);
}

.confirm-icon.success {
  color: var(--secondary);
}

.confirm-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  border: none;
  padding: 0;
}

.confirm-card p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.confirm-note {
  background: var(--gray-100);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  text-align: left;
  border-radius: 4px;
}

.confirm-note strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.btn-continue {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-continue:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  color: white;
}

/* === Login Error Page Styles === */
.login-error-container {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.confirm-card.error {
  border-top: 4px solid #dc2626;
}

.confirm-icon.error {
  color: #dc2626;
}

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

.btn-primary-action {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  color: white;
}

.btn-secondary-action {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: white;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid var(--primary);
  transition: all 0.2s;
}

.btn-secondary-action:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.login-error-help {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.login-error-help p {
  font-size: 0.95rem;
  margin: 0;
}

.login-error-help a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.login-error-help a:hover {
  text-decoration: underline;
}

/* === Content Pages (Privacy, Terms, etc) === */
.content-page {
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.content-header {
  background: var(--primary);
  color: white;
  padding: 2.5rem 3rem;
  text-align: center;
}

.content-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.content-body {
  padding: 3rem;
  line-height: 1.8;
}

.content-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.content-body h3:first-child {
  margin-top: 0;
}

.content-body p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
  font-size: 1rem;
}

.content-body a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.content-body a:hover {
  text-decoration: underline;
}

.content-body ul {
  margin: 1rem 0 1.5rem 0;
  padding-left: 2rem;
}

.content-body li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

.content-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Info callout box */
.info-callout {
  background: rgba(37, 99, 235, 0.08);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.info-callout strong {
  color: var(--primary);
}

/* Warning note */
.warning-note {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.warning-note strong {
  color: #f59e0b;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 12px;
  border: 2px solid var(--gray-200);
}

.btn-apply {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s;
  margin-bottom: 1rem;
}
.page-fundraiser-info .btn-apply {
  color: white;
}
.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  color: white;
  text-decoration: none;
}

.cta-note {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.cta-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.cta-note a:hover {
  text-decoration: underline;
}

/* === Auto Bidder Page === */

/* Success message */
.success-message {
  background: rgba(5, 150, 105, 0.1);
  border-left: 4px solid var(--secondary);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.success-message strong {
  color: var(--secondary);
}

/* Auto bid form */
.auto-bid-form {
  margin-bottom: 3rem;
}

.form-section {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  border: 2px solid var(--gray-200);
}

.form-section h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-200);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-group .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
  max-width: 400px;
}

.form-group .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-help {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* Bid status box */
.bid-status {
  background: rgba(37, 99, 235, 0.05);
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.bid-status h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.bid-status p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.bid-status strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-200);
}

.btn-submit {
  padding: 0.875rem 2.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-cancel {
  padding: 0.875rem 2rem;
  background: white;
  color: var(--text-light);
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-cancel:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--text-dark);
  text-decoration: none;
}

/* Info section */
.info-section {
  margin-top: 3rem;
}

.info-section h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.7;
  color: var(--text-light);
}

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

.info-list li strong {
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

/* === Purchase Bid Credits Page === */
.purchase-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.purchase-header {
  text-align: center;
  margin-bottom: 3rem;
}

.purchase-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.purchase-header p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.current-balance {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.125rem;
}

.balance-amount {
  font-size: 1.25rem;
  margin-left: 0.5rem;
}

.pricing-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.price {
  margin-bottom: 1.5rem;
}

.price-amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.price-per {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.pricing-body {
  margin-bottom: 2rem;
}

.credits-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
}

.pricing-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.btn-purchase {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-purchase:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-purchase:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.purchase-info {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
}

.purchase-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.purchase-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.purchase-info li {
  padding: 0.75rem 0;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

.purchase-success {
  max-width: 600px;
  margin: 4rem auto;
  background: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.purchase-success h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 1rem 0;
}

.purchase-success p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin: 0.75rem 0;
}

/* Hide login form on specific pages */
.hide-login-form form[name="loginForm"], 
.hide-login-form .row:first-child .col:last-child, 
.hide-login-form .row:first-child .col:last-child > *:not(a) {
  display: none !important;
}


/* === Responsive === */
/* Default (phones) */
.credits-cta {
    position: absolute;
    top:50px;
    right:20px;
  }
  .btn-header-login, .btn-header-signup {
    display: inline-block;
    max-width: 49%;
    text-align: center;
  }
  
/* Small devices */
@media (min-width: 480px) { 
   .credits-cta {
    position: relative;;
    top:0;
    right:0;
  }
 }

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .row:first-child {
    flex-direction: column;
    text-align: center;
  }

  .row:first-child .col:last-child {
    text-align: center;
    margin-top: 1rem;
  }

  img[alt*="Logo"] {
    max-width: 300px;
    margin: 0 auto;
  }

  .col-5, .col-8, .col-2 {
    width: 100%;
    margin-bottom: 1rem;
  }

  .signup-benefits {
    padding: 2rem 1.5rem;
  }

  .signup-form-area {
    padding: 2rem 1.5rem;
  }

  /* Modern header responsive */
  .header-container {
    padding: 0 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .header-logo .logo-img {
    height: 70px;
  }

  /* Credits CTA responsive */
  .credits-cta {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .credits-label {
    font-size: 0.65rem;
  }

  .credits-amount {
    font-size: 0.9rem;
  }


  /* Header login form responsive */
  .header-login-form {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
  }

  .header-input {
    width: 100%;
    min-width: auto;
  }

  .btn-header-login,
  .btn-header-signup {
    width: 100%;
  }

  .heartbeat {
    height: 140px;
  }

  /* Content pages responsive */
  .content-page {
    margin: 1rem;
  }

  .content-header {
    padding: 2rem 1.5rem;
  }

  .content-header h1 {
    font-size: 1.5rem;
  }

  .content-body {
    padding: 1.5rem;
  }

  .content-body h3 {
    font-size: 1.1rem;
  }

  /* Purchase page responsive */
  .purchase-page {
    padding: 1rem;
  }

  .purchase-header h1 {
    font-size: 1.75rem;
  }

  .purchase-header p {
    font-size: 0.95rem;
  }

  .current-balance {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pricing-card {
    padding: 1.75rem 1.25rem;
  }

  .pricing-header h3 {
    font-size: 1.25rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .credits-amount {
    font-size: 1.75rem;
  }

  .purchase-info {
    padding: 1.5rem;
  }

  .purchase-info h3 {
    font-size: 1.15rem;
  }

  .confirm-email-container,
  .login-error-container,
  .purchase-success {
    padding: 1rem;
  }

  .confirm-card {
    padding: 2rem 1.5rem;
  }

  /* Index page responsive */
  .login-card {
    padding: 2rem 1.5rem;
  }

  .login-card h2 {
    font-size: 1.5rem;
  }

  .landing-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .landing-card {
    padding: 1.25rem;
  }

  .landing-card h3 {
    font-size: 1.15rem;
  }

  .landing-card p {
    font-size: 0.85rem;
    display: none;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
}



/* === Index Page Styles === */

/* Login Section */
.page-index .container {
    padding-top: 2rem;
  }
@media (max-width: 768px) {
  .page-index .container {
    padding-top: 1rem;
  }
}
.login-section {
  max-width: 500px;
  margin: 0 auto 3rem;
}

.login-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-card h2 {
  color: var(--text-dark);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-card .form-group {
  margin-bottom: 1.25rem;
}

.login-card label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.login-card .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.login-card .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-login {
  width: 100%;
  padding: 0.875rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.signup-prompt {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.signup-prompt a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.signup-prompt a:hover {
  text-decoration: underline;
}

/* Landing Cards */
.landing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.landing-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s;
}

.landing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.landing-card h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.landing-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.btn-card-cta {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-card-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  color: white;
  text-decoration: none;
}

.btn-learn-more {
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-learn-more:hover {
  background: var(--primary);
  color: white;
}

/* Info Modals */
.info-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

#reminderModal .modal-content {
  padding: 0;
}

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

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-content h3 {
  color: var(--text-dark);
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.modal-intro {
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.modal-content p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.modal-actions {
  margin-top: 2rem;
  text-align: center;
}

.btn-modal-action {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-modal-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  color: white;
  text-decoration: none;
}

/* === My Account Page === */
.page-my-account .account-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.summary-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.summary-info {
  flex: 1;
}

.summary-info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.25rem 0;
}

.summary-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.summary-action {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.summary-action:hover {
  background: var(--secondary);
  color: white;
  text-decoration: none;
}

.account-tabs {
  border-bottom: 2px solid var(--gray-200);
  margin: 2rem 0 0 0;
}

.account-tabs .nav-link {
  color: var(--text-light);
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.account-tabs .nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--gray-300);
}

.account-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}

.account-content {
  padding: 2rem 0;
}

.account-content h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0 0 1.5rem 0;
}

.no-data {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

.no-data a {
  color: var(--primary);
  font-weight: 600;
}

/* Won Items */
.won-items {
  display: grid;
  gap: 1.5rem;
}

.won-item-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.won-item-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.won-item-details h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 0 0 0.75rem 0;
}

.won-price {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0.5rem 0;
}

.won-price strong {
  color: var(--secondary);
  font-size: 1.3rem;
}

.won-bids {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem 0;
}

.btn-checkout {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-checkout:hover {
  background: var(--secondary);
}

/* Credit History */
.credit-section {
  margin: 2rem 0;
}

.credit-section h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
}

.credit-table {
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.credit-table thead {
  background: var(--primary);
  color: white;
}

.credit-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.credit-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--text);
}

.credit-table tbody tr:last-child td {
  border-bottom: none;
}

.credit-table tbody tr:hover {
  background: var(--gray-100);
}

.package-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.free-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--secondary);
  color: white;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Profile Section */
.profile-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-info {
  max-width: 600px;
}

.info-row {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.info-row label {
  font-weight: 600;
  color: var(--text-dark);
  width: 150px;
  flex-shrink: 0;
}

.info-row span {
  color: var(--text);
}

.account-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.profile-actions {
  margin-top: 2rem;
}

.info-note {
  color: var(--text-light);
  font-style: italic;
}

/* Auto-Bidders Tab */
.autobidders-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.autobidder-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.5rem;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.autobidder-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.autobidder-card.inactive {
  opacity: 0.6;
  background: #f8f9fa;
}

.autobidder-image {
  width: 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

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

.autobidder-image .no-image {
  color: var(--text-light);
  font-size: 0.9rem;
}

.autobidder-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.autobidder-details h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary);
}

.autobidder-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.status-active {
  background: #10b981;
  color: white;
}

.status-badge.status-ended,
.status-badge.status-inactive {
  background: #e5e7eb;
  color: #6b7280;
}

.autobidder-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.stat-item span {
  font-size: 1rem;
  color: var(--text-dark);
}

.strategy-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.strategy-badge.strategy-aggressive {
  background: #ef4444;
  color: white;
}

.strategy-badge.strategy-passive {
  background: #3b82f6;
  color: white;
}

.autobidder-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: flex-end;
}

.btn-edit-autobidder,
.btn-delete-autobidder {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
}

.btn-edit-autobidder {
  background: var(--primary);
  color: white;
}

.btn-edit-autobidder:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-delete-autobidder {
  background: white;
  color: #dc2626;
  border: 2px solid #dc2626;
}

.btn-delete-autobidder:hover {
  background: #dc2626;
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .won-item-card {
    grid-template-columns: 1fr;
  }

  .credit-table {
    font-size: 0.85rem;
  }

  .credit-table th,
  .credit-table td {
    padding: 0.75rem 0.5rem;
  }

  .info-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .info-row label {
    width: 100%;
  }

  .account-summary {
    grid-template-columns: 1fr;
  }

  .autobidder-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .autobidder-image {
    width: 100%;
    height: 200px;
  }

  .autobidder-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .autobidder-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .btn-edit-autobidder,
  .btn-delete-autobidder {
    min-width: auto;
    flex: 1;
  }
}

/* No Credits Modal */
#noCreditsModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding:0;
}

#noCreditsModal .modal-header {
  background: var(--primary);
  color: white;
  border-radius: 12px 12px 0 0;
  border: none;
  padding: 1.5rem;
}

#noCreditsModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
}

#noCreditsModal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

#noCreditsModal .btn-close:hover {
  opacity: 1;
}

#noCreditsModal .modal-body {
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

#noCreditsModal .modal-body p {
  margin-bottom: 1rem;
}

#noCreditsModal .modal-body p:last-child {
  margin-bottom: 0;
  color: var(--text-light);
}

#noCreditsModal .modal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.25rem 2rem;
}

#noCreditsModal .btn-primary {
  background: var(--primary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#noCreditsModal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#noCreditsModal .btn-secondary {
  border: 2px solid var(--gray-300);
  background: white;
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
}

#noCreditsModal .btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

/* === Auction Grid Layout === */
.auction-grid-container {
  width: 100%;
  padding: 2rem 0 0;
}

.auction-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.auction-card {
  flex: 0 0 calc(26% - 1.34rem);
  max-width: calc(26% - 1.34rem);
  min-height: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.auction-management .auction-card{
  max-width: unset;
}
.auction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.auction-card .card {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Card Title with fixed height and expand on hover */
.auction-card .card-title {
  height: 4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  margin-bottom: 1rem;
  cursor: help;
  position: relative;
  z-index: 1;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease,
              padding 0.3s ease;
}

.auction-card .card-title:hover {
  height: auto;
  max-height: 500px;
  overflow: visible;
  display: block;
  padding: 0.7rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  z-index: 100;
  transform: scale(1.02);
}

/* Card body needs relative positioning and overflow visible for tooltip */
.auction-card .card-body {
  position: relative;
  overflow: visible;
}

/* Timer styling */
.auction-card .timeLeft {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0.75rem 0;
  line-height: 1.2;
}

/* High bidder message styling */
.high-bidder-message {
  font-size: 0.95rem;
  color: #666;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
}

.high-bidder-message .bidder-name {
  font-weight: 700;
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

/* Animation when bidder changes */
@keyframes bidderPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.high-bidder-message.bidder-update {
  animation: bidderPulse 0.6s ease-in-out;
}

.high-bidder-message.bidder-update .bidder-name {
  color: #48bb78;
  font-weight: 700;
}

/* Retail cost badge in card title */
.retail-cost-badge {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.5rem;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .auction-card {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }

  .auction-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .auction-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .auction-grid {
    gap: 1rem;
  }

  .auction-grid-container {
    padding: 1rem 0;
  }

  /* Show full title on mobile without clamp or hover effect */
  .auction-card .card-title {
    height: auto;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    cursor: default;
  }

  .auction-card .card-title:hover {
    transform: none;
    box-shadow: none;
    padding: 0.25rem;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Ensure cards maintain aspect ratio */
.auction-card .img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
}
/* Make "Buy Credits" text smaller on mobile */
  @media (max-width: 768px) {
      .buy-credits-text {
          font-size: 0.75em;
      }
  }
.auction-card .img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Bid Status Flags */
.bid-status-flag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

.bid-status-flag.winning {
  background: #28a745;
  color: white;
}

.bid-status-flag.outbid {
  background: #dc3545;
  color: white;
}

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

