/* ===== Root Colors ===== */
:root {
  --primary-dark: #1a2b3d;
  --primary-light: #2c3e50;
  --accent-red: #ff6b5a;
  --accent-red-dark: #e85d4f;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-medium: #d0d0d0;
  --text-dark: #333333;
  --text-light: #666666;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* ===== Navigation ===== */
.navbar {
  background-color: var(--primary-dark);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-menu {
  flex: 1;
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-red);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.find-funding-btn {
  background: linear-gradient(90deg, #f96c34, #f2217b);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.find-funding-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 90, 0.3);
}

.login-btn {
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.5rem 1.3rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.login-btn:hover {
  background: var(--white);
  color: var(--primary-dark);
}

/* ===== User Profile Dropdown ===== */
.user-profile-dropdown {
  position: relative;
}

.user-profile-header {
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--white);
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
}

.user-profile-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.company-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  color: var(--white);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.user-profile-header.active .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 300;
  overflow: hidden;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background-color: var(--gray-light);
  color: var(--accent-red);
  border-left-color: var(--accent-red);
  padding-left: 1.25rem;
}

.dropdown-item svg {
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-medium);
  border: none;
  margin: 0.5rem 0;
}

.logout-link {
  color: var(--accent-red);
}

.logout-link:hover {
  background-color: rgba(255, 107, 90, 0.1);
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo svg {
  width: 35px;
  height: 35px;
}

/* ===== Funding Section ===== */
.funding-section {
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
  padding: 2rem;
  padding-top: 120px;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
}

.vector {
  position: absolute;
  z-index: 2;
}

.vector-ribbon {
  top: -60px;
  right: -100px;
  width: 450px;
  height: auto;
  opacity: 0.9;
}

.vector-star {
  bottom: 50px;
  left: 30px;
  width: 150px;
  height: auto;
  opacity: 0.9;
}

/* Decorative Vectors */
.decor-vector {
  display: none;
}

.decor-1 {
  top: 80px;
  right: -50px;
  width: 450px;
  height: auto;
  animation:
    float 8s ease-in-out infinite,
    rotate-slow 20s linear infinite;
}

.decor-2 {
  bottom: 220px;
  left: 20px;
  width: 140px;
  height: auto;
  animation:
    float 7s ease-in-out infinite reverse,
    rotate-slow 15s linear infinite reverse;
}

.decor-3 {
  top: 350px;
  right: 50px;
  width: 240px;
  height: auto;
  opacity: 0.75;
  animation: float 9s ease-in-out infinite;
}

.decor-4 {
  bottom: 80px;
  right: 80px;
  width: 160px;
  height: auto;
  opacity: 0.85;
  animation:
    float 6.5s ease-in-out infinite reverse,
    rotate-slow 18s linear infinite;
}

.funding-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: stretch;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* ===== Funding Left Content ===== */
.funding-left h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.3px;
  opacity: 0;
  animation: slideInUp 0.7s ease-out forwards;
}

.features-list {
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: slideInUp 0.7s ease-out forwards;
  animation-delay: 0.1s;
}

.feature {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  align-items: flex-start;
  opacity: 0;
  animation: slideInUp 0.6s ease-out forwards;
}

.feature:nth-child(1) {
  animation-delay: 0.2s;
}

.feature:nth-child(2) {
  animation-delay: 0.3s;
}

.feature:nth-child(3) {
  animation-delay: 0.4s;
}

.feature:nth-child(4) {
  animation-delay: 0.5s;
}

.feature:hover {
  transform: translateX(8px);
}

.feature-arrow {
  color: var(--accent-red);
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature:hover .feature-arrow {
  transform: translateX(6px);
  font-size: 1.4rem;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
}

.trust-badges {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  margin-top: 1rem;
  opacity: 0;
  animation: slideInUp 0.7s ease-out forwards;
  animation-delay: 0.4s;
}

.trust-badges img {
  height: 35px;
  object-fit: contain;
}

.award-badge {
  height: 50px !important;
  width: auto;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  animation: slideInUp 0.6s ease-out forwards;
  animation-delay: 0.6s;
}

.award-badge:hover {
  transform: scale(1.12) rotateY(10deg);
  filter: drop-shadow(0 8px 16px rgba(255, 107, 90, 0.3));
}

.bbb-badge {
  height: 50px !important;
  width: auto;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  animation: slideInUp 0.6s ease-out forwards;
  animation-delay: 0.7s;
}

.bbb-badge:hover {
  transform: scale(1.12) rotateY(-10deg);
  filter: drop-shadow(0 8px 16px rgba(255, 107, 90, 0.3));
}

.contact-info {
  background-color: var(--white);
  padding: 1.2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-red);
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 500;
  opacity: 0;
  animation: slideInUp 0.7s ease-out forwards;
  animation-delay: 0.5s;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-info:hover {
  border-left-color: #0066cc;
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.15);
  transform: translateX(4px);
}

.contact-info strong {
  color: var(--primary-dark);
}

.email-link {
  text-decoration: underline;
  color: #0066cc;
  font-weight: 600;
  transition: all 0.3s ease;
}

.email-link:hover {
  color: #0052a3;
}

/* ===== Funding Form ===== */
.funding-form {
  background-color: var(--white);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: slideUp 0.7s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: slideInUp 0.6s ease-out 0s forwards;
}

.form-step:nth-child(1) .form-group:nth-child(1) {
  animation-delay: 0.1s;
}

.form-step:nth-child(1) .form-group:nth-child(2) {
  animation-delay: 0.2s;
}

.form-step:nth-child(1) .form-group:nth-child(3) {
  animation-delay: 0.3s;
}

.form-step:nth-child(1) .form-group:nth-child(4) {
  animation-delay: 0.4s;
}

.form-step:nth-child(1) .form-group:nth-child(5) {
  animation-delay: 0.5s;
}

.form-group:hover {
  border-color: var(--accent-red);
  box-shadow: 0 8px 24px rgba(255, 107, 90, 0.25);
  transform: translateY(-4px);
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 107, 90, 0.02) 100%
  );
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.input-group {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-medium);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: white;
  position: relative;
}

.input-group:focus-within {
  border-color: var(--accent-red);
  box-shadow: 0 6px 20px rgba(255, 107, 90, 0.2);
  transform: scale(1.02);
}

.currency {
  padding: 0 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  background-color: var(--gray-light);
  transition: all 0.3s ease;
}

.input-group:focus-within .currency {
  background: linear-gradient(
    135deg,
    var(--gray-light),
    rgba(255, 107, 90, 0.1)
  );
  color: var(--accent-red);
}

.input-group input {
  flex: 1;
  border: none;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  background: transparent;
}

.input-group input::placeholder {
  color: var(--gray-medium);
  transition: color 0.3s ease;
}

.input-group:focus-within input::placeholder {
  color: rgba(255, 107, 90, 0.3);
}

/* ===== Radio Options ===== */
.radio-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.radio-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border: 2px solid transparent;
}

.radio-item:hover {
  background-color: rgba(255, 107, 90, 0.1);
  border-color: rgba(255, 107, 90, 0.3);
  transform: translateX(4px);
}

.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-right: 0.8rem;
  accent-color: var(--accent-red);
  transition: all 0.3s ease;
  transform: scale(1);
}

.radio-item input[type="radio"]:hover {
  transform: scale(1.2);
}

.radio-item input[type="radio"]:checked + .radio-label {
  color: var(--accent-red);
  font-weight: 600;
}

.radio-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ===== Form Steps ===== */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
  align-items: center;
}

.back-button {
  flex: 0 0 auto;
  width: 100px;
  background-color: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
  padding: 0;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.back-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  transition: left 0.4s ease;
  z-index: -1;
}

.back-button:hover::before {
  left: 0;
}

.back-button:hover {
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(26, 43, 61, 0.3);
  border-color: var(--primary-dark);
}

.back-button:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(26, 43, 61, 0.2);
}

.continue-button {
  flex: 1;
  width: 100%;
  background: linear-gradient(90deg, #f96c34, #f2217b);
  color: var(--white);
  border: none;
  padding: 0;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 6px 20px rgba(255, 107, 90, 0.35);
  position: relative;
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.continue-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.continue-button:hover::before {
  width: 300px;
  height: 300px;
}

.continue-button:hover {
  background: linear-gradient(90deg, #e85d2f, #d91a6a);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 107, 90, 0.5);
  letter-spacing: 0.5px;
}

.continue-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 107, 90, 0.3);
}

.results-button {
  flex: 1;
  background: linear-gradient(90deg, #f96c34, #f2217b);
  color: var(--text-dark);
  border: none;
  padding: 0.85rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(212, 181, 224, 0.3);
}

.results-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.results-button:hover {
  background: linear-gradient(135deg, #c9a3d8, #d5b5e5);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(212, 181, 224, 0.4);
}

.results-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 181, 224, 0.3);
}

/* ===== Progress Bars ===== */
.progress-bars {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.progress-bar {
  flex: 1;
  height: 5px;
  background-color: var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), #ff8a7f);
  border-radius: 10px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  box-shadow: 0 0 10px rgba(255, 107, 90, 0.5);
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 107, 90, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 107, 90, 0.8);
  }
}

/* ===== Keyframe Animations ===== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(inherit);
  }
  50% {
    transform: translateY(-20px) rotate(inherit);
  }
}

@keyframes rotate-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ===== Footer ===== */
.footer {
  background-color: var(--primary-dark);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
  .funding-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .funding-section {
    min-height: auto;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .funding-form {
    padding: 1.2rem;
  }

  .funding-left h2 {
    font-size: 1.2rem;
  }

  .feature {
    margin-bottom: 0.7rem;
  }

  .funding-section {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .funding-section {
    padding: 1rem;
    min-height: auto;
  }

  .funding-left h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .funding-form {
    padding: 1rem;
  }

  .feature-arrow {
    font-size: 1rem;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  .vector-star {
    font-size: 2rem;
  }

  .vector-star.top-right {
    right: 20px;
  }

  .vector-star.bottom-left {
    left: 20px;
  }
}

/* ===== Authentication Pages ===== */
.auth-section-new {
  min-height: calc(100vh - 80px);
  display: flex;
  overflow: hidden;
  background: #f8f9fc;
  margin-top: 80px;
}

/* ===== Left Panel ===== */
.auth-left {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 100%;
  overflow: hidden;
}

.auth-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 43, 61, 0.35) 0%,
    rgba(26, 43, 61, 0.92) 100%
  );
  z-index: 1;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  color: #fff;
  max-width: 480px;
}

.auth-left-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.auth-left-content h1 span {
  background: linear-gradient(135deg, #ff6b5a, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-left-content > p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.auth-left-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.auth-feature-icon svg {
  color: #ff8c42;
}

.auth-feature span {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

/* ===== Right Panel ===== */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: #f8f9fc;
  overflow-y: auto;
}

.form-container {
  width: 100%;
  max-width: 440px;
  max-height: 100%;
}

/* ===== Tab Switcher ===== */
.auth-tab-switcher {
  display: flex;
  position: relative;
  background: #eef0f5;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 1.2rem;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  border-radius: 11px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.auth-tab.active {
  color: var(--text-dark);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===== Form Subtitle ===== */
.form-subtitle {
  font-size: 0.88rem;
  color: #888;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* ===== Form Title ===== */
.form-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-align: left;
}

.auth-form-new {
  display: none;
}

.auth-form-new.active {
  display: block;
  animation: fadeSlideUp 0.35s ease;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Form Groups ===== */
.form-group-new {
  margin-bottom: 0.85rem;
}

.form-row-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label-new {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #b0b5c0;
  pointer-events: none;
  transition: color 0.25s;
}

.input-wrapper:focus-within .input-icon {
  color: var(--accent-red);
}

.form-group-new input[type="text"],
.form-group-new input[type="email"],
.form-group-new input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.75rem;
  border: 1.5px solid #e0e3ea;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text-dark);
  transition: all 0.25s ease;
  background: #fff;
}

.form-group-new input[type="text"]::placeholder,
.form-group-new input[type="email"]::placeholder,
.form-group-new input[type="password"]::placeholder {
  color: #c0c4cc;
}

.form-group-new input[type="text"]:focus,
.form-group-new input[type="email"]:focus,
.form-group-new input[type="password"]:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 107, 90, 0.1);
}

/* Toggle Password */
.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #b0b5c0;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.toggle-password-btn:hover {
  color: var(--text-dark);
}

/* CRN Lookup Styles */
.crn-lookup-wrapper {
  position: relative;
}

.crn-lookup-wrapper input {
  padding-right: 3rem !important;
}

.crn-lookup-btn {
  position: absolute;
  right: 8px;
  background: var(--accent-red);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.crn-lookup-btn:hover {
  background: var(--accent-red-dark);
  transform: scale(1.05);
}

.crn-lookup-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.crn-lookup-btn.loading {
  background: var(--accent-red);
}

.crn-lookup-btn.loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.crn-hint {
  font-size: 0.72rem;
  color: #888;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.crn-status {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  display: none;
}

.crn-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.crn-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

.crn-status.loading {
  display: block;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #2563eb;
}

.crn-company-info {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #666;
}

.crn-company-info strong {
  color: #333;
}

/* Company Search Results Dropdown */
.company-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255, 107, 90, 0.3);
  border-radius: 8px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-top: 4px;
}

.form-group-new {
  position: relative;
}

.company-result-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.company-result-item:last-child {
  border-bottom: none;
}

.company-result-item:hover {
  background: rgba(255, 107, 90, 0.1);
}

.company-result-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.company-result-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crn-badge {
  background: rgba(255, 107, 90, 0.2);
  color: #ff6b5a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: monospace;
}

.company-result-info span {
  font-size: 0.7rem;
  color: #888;
}

.company-result-info .status-active {
  color: #10b981;
}

.company-result-info .status-dissolved {
  color: #ef4444;
}

.crn-status.info {
  display: block;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* Company Verify Status (Mock verification) */
.company-verify-status {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.company-verify-status.checking {
  display: flex;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.company-verify-status.verified {
  display: flex;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.verify-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: verify-spin 0.8s linear infinite;
}

@keyframes verify-spin {
  to {
    transform: rotate(360deg);
  }
}

.verify-check {
  color: #10b981;
  font-weight: bold;
  font-size: 1rem;
}

.forgot-password-link {
  font-size: 0.78rem;
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: var(--accent-red-dark);
  text-decoration: underline;
}

.password-strength {
  margin-top: 0.3rem;
  height: 3px;
  background-color: #eef0f5;
  border-radius: 4px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-red), #ff8c42);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.password-hint {
  font-size: 0.72rem;
  color: #a0a5b0;
  margin-top: 0.2rem;
}

/* ===== Continue Button ===== */
.auth-continue-button {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.8rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-red), #ff8c42);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(255, 107, 90, 0.25);
}

.auth-continue-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 90, 0.35);
}

.auth-continue-button:active {
  transform: translateY(0);
}

/* ===== Social Divider ===== */
.social-divider {
  text-align: center;
  margin: 1rem 0 0.7rem;
  position: relative;
  color: #b0b5c0;
  font-size: 0.82rem;
}

.social-divider span {
  position: relative;
  z-index: 1;
  background: #f8f9fc;
  padding: 0 14px;
  display: inline-block;
}

.social-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e3ea;
}

.social-divider::after {
  display: none;
}

/* ===== Social Buttons ===== */
.social-buttons {
  display: flex;
  gap: 0.6rem;
  margin-top: 0;
}

.social-btn {
  flex: 1;
  padding: 0.72rem 0.5rem;
  border: 1.5px solid #e0e3ea;
  border-radius: 12px;
  background: #fff;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.social-btn:hover {
  border-color: #c0c4cc;
  background: #fafbfd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.twitter-btn,
.facebook-btn,
.google-btn {
  background: #fff;
}

.twitter-btn:hover {
  border-color: #1da1f2;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.12);
}

.facebook-btn:hover {
  border-color: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.12);
}

.google-btn:hover {
  border-color: #ea4335;
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.12);
}

/* ===== Auth Toggle (removed — now using tabs) ===== */
.auth-toggle {
  display: none;
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.toggle-btn:hover {
  color: var(--accent-red-dark);
  text-decoration: underline;
}

/* ===== Guest / Get Started ===== */
.auth-guest-section {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e0e3ea;
}

.auth-guest-section p {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.get-started-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1.5rem;
  background: transparent;
  color: var(--accent-red);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--accent-red);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.get-started-btn:hover {
  background: var(--accent-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 90, 0.25);
}

/* ===== Checkbox ===== */
.checkbox-new {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.checkbox-new input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent-red);
  border-radius: 4px;
}

.checkbox-new label {
  font-size: 0.82rem;
  color: #888;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-new a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-new a:hover {
  text-decoration: underline;
}

/* ===== Auth Message ===== */
.auth-message {
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  text-align: center;
  display: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.auth-message.success {
  display: block;
  background-color: #e8f8ee;
  color: #1a8a4a;
  border: 1px solid #c8ecd5;
}

.auth-message.error {
  display: block;
  background-color: #fef0f0;
  color: #d32f2f;
  border: 1px solid #fccaca;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .auth-section-new {
    flex-direction: column;
  }

  .auth-left {
    min-height: 280px;
  }

  .auth-left-content {
    padding: 2rem;
  }

  .auth-left-content h1 {
    font-size: 1.6rem;
  }

  .auth-right {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .form-container {
    max-width: 100%;
  }

  .form-row-new {
    grid-template-columns: 1fr;
  }

  .auth-left {
    min-height: 220px;
  }

  .auth-left-features {
    display: none;
  }

  .social-buttons {
    flex-direction: column;
  }
}

/* ===== Dashboard Styles ===== */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 70px);
  margin-top: 70px;
  background-color: var(--gray-light);
}

.dashboard-sidebar {
  width: 280px;
  background: var(--white);
  padding: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  left: 0;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar-item:hover {
  background: var(--gray-light);
  color: var(--accent-red);
}

.sidebar-item.active {
  background: var(--gray-light);
  color: var(--accent-red);
  border-left-color: var(--accent-red);
}

.sidebar-item svg {
  flex-shrink: 0;
}

.dashboard-main {
  margin-left: 280px;
  flex: 1;
  padding: 2rem;
}

.dashboard-main h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 700;
}

.dashboard-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.dashboard-section h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.applications-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-medium);
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--accent-red);
}

.tab-btn.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

.applications-list {
  min-height: 200px;
  display: block;
}

.no-applications,
.no-documents {
  color: var(--text-light);
  font-size: 1rem;
}

.applications-list > .no-applications {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.application-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e7eaef;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #edf0f4;
}

.application-info h3 {
  margin: 0;
  font-size: 1.1rem;
}

.application-id {
  color: #475467;
  font-size: 0.92rem;
}

.application-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(243, 156, 18, 0.15);
  color: #d68910;
  text-transform: uppercase;
}

.application-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.application-details .detail-row {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.application-details .detail-label {
  color: #667085;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.application-details .detail-value {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
}

.application-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-view-results,
.btn-edit-application {
  border: none;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-view-results {
  background: linear-gradient(90deg, #f96c34, #f2217b);
  color: #fff;
}

.btn-edit-application {
  background: #eef2f6;
  color: #1f2937;
}

.section-info {
  color: var(--text-light);
  font-size: 0.95rem;
}

.search-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-box input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-medium);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-red);
}

.search-btn {
  background: linear-gradient(90deg, #f96c34, #f2217b);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 90, 0.3);
}

.dashboard-footer {
  margin-left: 280px;
  padding: 2rem;
  background: var(--white);
  border-top: 2px solid var(--gray-medium);
}

.sidebar-user-info {
  padding: 1.5rem;
  border-top: 2px solid var(--gray-medium);
  text-align: center;
}

.user-avatar-small {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), #f2217b);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 50%;
}

.user-avatar-small:hover .avatar-upload-overlay {
  opacity: 1;
}

#userAvatarInitials {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  pointer-events: none;
}

.sidebar-user-info h3 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0 0 0.25rem 0;
  font-weight: 600;
}

.user-company {
  color: var(--accent-red);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.support-text {
  font-size: 0.75rem;
  color: var(--text-dark);
  margin: 0.5rem 0;
  line-height: 1.4;
}

.contact-info {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0.5rem 0;
}

.contact-info a {
  color: var(--accent-red);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.user-info-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 500px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), #f2217b);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
}

.user-details h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.user-title {
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.user-contact {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.user-email-footer {
  font-size: 0.85rem;
  color: var(--text-light);
}

.user-email-footer a {
  color: var(--accent-red);
  text-decoration: none;
}

.user-email-footer a:hover {
  text-decoration: underline;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 1rem 0;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-item {
    padding: 1rem;
    text-align: center;
    flex-direction: column;
    border-left: none;
    border-top: 4px solid transparent;
  }

  .sidebar-item.active {
    border-left: none;
    border-top-color: var(--accent-red);
  }

  .dashboard-main,
  .dashboard-footer {
    margin-left: 0;
  }

  .dashboard-main h1 {
    font-size: 1.8rem;
  }

  .applications-tabs {
    flex-direction: column;
  }

  .application-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .application-details {
    grid-template-columns: 1fr;
  }

  .application-actions {
    flex-direction: column;
  }

  .btn-view-results,
  .btn-edit-application {
    width: 100%;
  }
}



/* ===== Mobile Verification Popup Card ===== */
.phone-verify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

.phone-verify-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: slideInUp 0.35s ease;
  text-align: center;
}

.phone-verify-card h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.phone-verify-card .verify-subtitle {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1.8rem;
}

.phone-verify-group {
  text-align: left;
  margin-bottom: 1.3rem;
}

.phone-verify-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
}

.phone-verify-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
  box-sizing: border-box;
  background: #fafafa;
}

.phone-verify-group input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 107, 90, 0.12);
  background: #fff;
}

.phone-verify-group input::placeholder {
  color: #aaa;
}

.phone-verify-message {
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.phone-verify-message.error {
  color: #e74c3c;
}

.phone-verify-message.success {
  color: #10b981;
}

.phone-verify-btn {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffb6c1 0%, #ff69b4 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.phone-verify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.45);
}

.phone-verify-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.phone-verify-skip {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #999;
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.2s;
}

.phone-verify-skip:hover {
  color: #555;
  text-decoration: underline;
}

/* ===== Application Modal Styles ===== */
.application-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.application-modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 580px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.application-modal .modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.application-modal .modal-header h2 {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 600;
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: color 0.2s ease;
  border-radius: 4px;
}

.modal-close-btn:hover {
  color: var(--accent-red);
  background: rgba(0, 0, 0, 0.05);
}

.application-modal .modal-body {
  padding: 1.5rem 2rem;
}

.application-modal .modal-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.application-form .form-section {
  margin-bottom: 1.5rem;
}

.application-form .form-section h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0 0 1rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.application-form .form-row {
  margin-bottom: 1rem;
}

.application-form .form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.application-form .form-group {
  display: flex;
  flex-direction: column;
}

.application-form .form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.application-form .form-group input,
.application-form .form-group select {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--gray-medium);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.application-form .form-group input:focus,
.application-form .form-group select:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 107, 90, 0.1);
}

.application-form .form-group input::placeholder {
  color: var(--text-light);
}

.application-form .form-group .field-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  font-weight: normal;
}

.application-form .form-group label small {
  font-weight: normal;
  color: var(--text-light);
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.form-message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid #dc3545;
}

.form-message.success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid #28a745;
}

.form-consent {
  margin-top: 1rem;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

.consent-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent-red);
}

.application-modal .modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--gray-medium);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: var(--gray-light);
}

.btn-secondary,
.btn-primary {
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: var(--white);
  color: var(--text-dark);
  border: 1.5px solid var(--gray-medium);
}

.btn-secondary:hover {
  background: var(--gray-light);
  border-color: var(--text-light);
}

.btn-primary {
  background: linear-gradient(90deg, #f96c34, #f2217b);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 90, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Lender Details Modal */
.lender-details-modal .modal-body {
  padding: 1.5rem 2rem;
}

.lender-overview {
  margin-bottom: 1.5rem;
}

.lender-overview .funder-badge.verified {
  display: inline-block;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lender-description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.lender-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--gray-light);
  border-radius: 12px;
}

.lender-stats .stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lender-stats .stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}

.lender-stats .stat-value {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.lender-features,
.lender-eligibility {
  margin-bottom: 1.5rem;
}

.lender-features h3,
.lender-eligibility h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.lender-features ul,
.lender-eligibility ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lender-features li,
.lender-eligibility li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.feature-check {
  color: #28a745;
  font-weight: bold;
}

/* Success Modal */
.success-modal {
  text-align: center;
  max-width: 450px;
}

.success-icon {
  margin: 2rem 0 1rem;
}

.success-modal h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
}

.success-message {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.success-details {
  background: var(--gray-light);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 0 2rem 1rem;
}

.success-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.success-details .label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.success-details .value {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.next-steps {
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 0 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem 2rem 2rem;
}

/* Responsive Application Modal */
@media (max-width: 600px) {
  .application-modal {
    max-height: 100vh;
    border-radius: 0;
    width: 100%;
  }

  .application-form .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .lender-stats {
    grid-template-columns: 1fr;
  }

  .success-actions {
    flex-direction: column;
  }
}

/* ===== Search Results Section ===== */
.search-results-section {
  padding: 2rem;
  padding-top: 100px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.search-results-section .great-news-banner {
  margin-top: 0;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.results-info h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.results-info h1 span {
  color: var(--accent-red);
}

.edit-search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--text-dark);
  border-radius: 25px;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-search-btn:hover {
  background: var(--text-dark);
  color: var(--white);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-controls label {
  font-weight: 600;
  color: var(--text-dark);
}

.sort-select {
  padding: 0.6rem 1rem;
  border: 2px solid var(--text-dark);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-select:hover,
.sort-select:focus {
  outline: none;
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.funding-cards-container {
  display: grid;
  gap: 1.5rem;
}

.funding-cards-container.blurred {
  filter: blur(5px);
  pointer-events: none;
}

.funding-card {
  background: var(--white);
  border: 2px solid var(--gray-medium);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.funding-card:hover {
  border-color: var(--accent-red);
  box-shadow: 0 8px 24px rgba(255, 107, 90, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.funder-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.funder-badge {
  background: linear-gradient(135deg, var(--accent-red), #f2217b);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.detail-value.highlight {
  color: var(--accent-red);
  font-size: 1.2rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.more-details-btn {
  background: none;
  border: none;
  color: var(--accent-red);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.more-details-btn:hover {
  gap: 0.75rem;
}

.apply-btn {
  background: linear-gradient(90deg, #f96c34, #f2217b);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 90, 0.3);
}

/* Responsive Search Results */
@media (max-width: 768px) {
  .search-results-section {
    margin-top: 0;
    padding: 1rem;
    padding-top: 1rem;
  }

  .search-results-header {
    flex-direction: column;
    gap: 1rem;
  }

  .results-info h1 {
    font-size: 1.5rem;
  }

  .sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .modal-content {
    width: 95%;
  }

  .card-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Documents Page ===== */
.documents-section {
  margin-top: 70px;
  padding: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - 70px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--accent-red);
  transform: translateX(-5px);
}

.documents-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.documents-content h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.documents-intro {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.documentation-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-section {
  border-bottom: 2px solid var(--text-dark);
  padding: 1.5rem 0;
}

.doc-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.section-header:hover {
  color: var(--accent-red);
}

.section-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f96c34, #f2217b);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 600;
  flex: 1;
  text-align: left;
}

.section-toggle {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.section-header:hover .section-toggle {
  color: var(--accent-red);
}

.section-toggle.rotated {
  transform: rotate(180deg);
}

.section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 56px;
}

.section-content.active {
  max-height: 500px;
  padding: 1.5rem 0 0 56px;
}

.section-description {
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.upload-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--text-dark);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-button:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 90, 0.2);
}

/* Sidebar */
.documents-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.account-manager-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--gray-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.account-manager-card h3 {
  font-size: 0.95rem;
  color: var(--accent-red);
  margin: 0 0 1rem 0;
  font-weight: 600;
  text-transform: uppercase;
}

.manager-info {
  margin-bottom: 1rem;
}

.manager-name {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.manager-title {
  font-size: 0.9rem;
  color: var(--accent-red);
  font-weight: 500;
}

.help-text {
  font-size: 0.85rem;
  color: var(--text-dark);
  margin: 0.75rem 0;
}

.contact-details {
  font-size: 0.8rem;
  color: var(--text-light);
}

.contact-details a {
  color: var(--accent-red);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Footer */
.documents-footer {
  background: var(--white);
  padding: 2rem;
  border-top: 1px solid var(--gray-medium);
  margin-top: 3rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.footer-content a {
  color: var(--accent-red);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 1rem 0 0 0;
}

.rating-stars {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #2c7f7f;
  color: var(--white);
  font-size: 1.2rem;
  border-radius: 4px;
}

/* Responsive Documents */
@media (max-width: 1024px) {
  .documents-main {
    grid-template-columns: 1fr;
  }

  .documents-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .documents-section {
    padding: 1rem;
  }

  .documents-content h1 {
    font-size: 1.8rem;
  }

  .upload-options {
    grid-template-columns: 1fr;
  }

  .section-header {
    gap: 0.5rem;
  }

  .section-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .section-content.active {
    padding-left: 52px;
  }
}

/* ===== Admin Page Styles ===== */
.admin-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.admin-section h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin: 0 0 1.5rem 0;
  font-weight: 700;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.section-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1rem 0;
}

.reward-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  margin: 0.75rem 0;
}

.reward-item svg {
  color: #28a745;
  flex-shrink: 0;
  margin-top: 2px;
}

.reward-item.secondary svg {
  color: #c9d4e0;
}

.reward-item span {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.referral-link-card {
  background: #fed8b1;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.link-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.referral-link-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-family: "Courier New", monospace;
}

.referral-link-input:focus {
  outline: none;
}

.copy-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, #f96c34, #f2217b);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.copy-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 90, 0.3);
}

.copy-link-btn.copied {
  background: #28a745;
}

.company-input-box {
  background: var(--gray-light);
  border: 2px solid var(--gray-medium);
  border-radius: 12px;
  padding: 1rem;
}

.company-input {
  width: 100%;
  padding: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.company-input:focus {
  outline: none;
}

.company-input::placeholder {
  color: var(--text-light);
}

/* Responsive Admin Page */
@media (max-width: 768px) {
  .referral-link-card {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-link-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-section h2 {
    font-size: 1.4rem;
  }
}

/* ===== Great News Banner ===== */
.great-news-banner {
  background: linear-gradient(135deg, #1a2b3d 0%, #2c3e50 100%);
  border-radius: 16px;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  color: #fff;
}

.great-news-banner .banner-content {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
}

.great-news-banner .banner-text {
  flex: 1;
  padding: 2.5rem 2rem 2rem 2.5rem;
}

.great-news-banner .banner-text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.great-news-banner .banner-text h2 .funder-count-highlight {
  color: #ff6b5a;
  font-weight: 800;
}

.great-news-banner .banner-text > p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
}

.great-news-banner .base-rate-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.great-news-banner .base-rate-icon svg {
  display: block;
}

.great-news-banner .base-rate-label {
  font-size: 0.78rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
}

.great-news-banner .base-rate-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-left: 0.4rem;
}

.great-news-banner .base-rate-updated {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.great-news-banner .banner-image {
  flex: 0 0 320px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  margin: 0.75rem 0.75rem 0.75rem 0;
  border-radius: 12px;
}

.great-news-banner .banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .great-news-banner {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .great-news-banner .banner-content {
    flex-direction: column;
    gap: 0.65rem;
  }

  .great-news-banner .banner-text {
    padding: 1.5rem;
  }

  .great-news-banner .banner-image {
    flex: 0 0 200px;
    margin: 0 1rem 1rem;
  }
}

/* ===== Lender Submissions Section ===== */
.lender-submissions-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
}

.lender-submissions-section h4 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.lender-submissions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lender-submission-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #ccc;
  gap: 0.5rem;
}

.lender-submission-item.status-submitted {
  border-left-color: #3498db;
  background: rgba(52, 152, 219, 0.05);
}

.lender-submission-item.status-approved {
  border-left-color: #27ae60;
  background: rgba(39, 174, 96, 0.05);
}

.lender-submission-item.status-declined,
.lender-submission-item.status-rejected {
  border-left-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

.lender-submission-item.status-pending {
  border-left-color: #f39c12;
  background: rgba(243, 156, 18, 0.05);
}

.lender-submission-item.status-error {
  border-left-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

.lender-submission-item.status-funded {
  border-left-color: #2ecc71;
  background: rgba(46, 204, 113, 0.05);
}

.lender-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lender-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.lead-id {
  font-size: 0.8rem;
  color: var(--text-light);
  background: #e9ecef;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.submission-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-submitted {
  background: rgba(52, 152, 219, 0.15);
  color: #2980b9;
}

.status-badge.status-approved {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}

.status-badge.status-declined,
.status-badge.status-rejected {
  background: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

.status-badge.status-pending {
  background: rgba(243, 156, 18, 0.15);
  color: #d68910;
}

.status-badge.status-error {
  background: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

.status-badge.status-funded {
  background: rgba(46, 204, 113, 0.15);
  color: #1e8449;
}

.submission-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.submission-error {
  width: 100%;
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  color: #c0392b;
  padding: 0.5rem;
  background: rgba(231, 76, 60, 0.08);
  border-radius: 6px;
}

/* ===== Refresh Button ===== */
.application-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-refresh-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-light);
}

.btn-refresh-status:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(255, 107, 90, 0.05);
}

.btn-refresh-status:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-refresh-status.spinning svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== No Applications State ===== */
.no-applications-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

.no-applications-state svg {
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.no-applications-state h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.no-applications-state p {
  color: var(--text-light);
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

.no-applications-state .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  text-decoration: none;
}

/* ===== Loading State ===== */
.loading-applications {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-light);
}

.loading-applications p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.loading-applications p::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== Status Colors for Application Cards ===== */
.application-status.status-submitted_to_lenders {
  background: rgba(52, 152, 219, 0.15);
  color: #2980b9;
}

.application-status.status-reviewing {
  background: rgba(243, 156, 18, 0.15);
  color: #d68910;
}

.application-status.status-approved {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}

.application-status.status-declined,
.application-status.status-rejected {
  background: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

.application-status.status-funded {
  background: rgba(46, 204, 113, 0.15);
  color: #1e8449;
}

@media (max-width: 600px) {
  .lender-submission-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .submission-status {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .application-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* ===== Global Responsive Hardening ===== */
html,
body {
  width: 100%;
  max-width: 100%;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

.summary-item,
.detail-value,
.company-name,
.funder-name,
.manager-name,
.user-company,
.section-text,
.section-info,
.contact-detail a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mobile-options-bar {
  display: none;
}

.dashboard-options-toggle {
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1a2b3d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(26, 43, 61, 0.2);
}

.dashboard-options-toggle .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

@media (max-width: 1024px) {
  .mobile-options-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1rem 0;
    background: #f5f7f4;
  }

  .navbar {
    padding: 0.85rem 1rem;
  }

  .nav-container {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-actions {
    gap: 0.65rem;
    flex-wrap: wrap;
  }

  .dashboard-sidebar {
    display: none;
    width: 100%;
    position: relative;
    top: auto;
    height: auto;
    padding: 0.5rem;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-sidebar.menu-open {
    display: block;
  }

  .dashboard-main,
  .dashboard-footer {
    margin-left: 0;
  }

  .dashboard-container {
    display: block;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .sidebar-item {
    flex: 1 1 auto;
    border-left: none;
    border-top: 1px solid #edf0f4;
    border-radius: 0;
    background: #fff;
    padding: 0.75rem 0.85rem;
  }

  .sidebar-item:first-child {
    border-top: none;
  }

  .sidebar-item.active {
    border-left: none;
    border-top-color: var(--accent-red);
    background: #fff6f4;
  }

  .sidebar-user-info {
    display: none;
  }

  #section-connected-apps,
  #section-applications {
    overflow-x: hidden;
  }

  .documents-main,
  .results-content {
    gap: 1.25rem;
  }

  .search-results-section,
  .documents-section,
  .dashboard-main,
  .dashboard-footer,
  .results-section,
  .funding-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: static;
    padding: 0.75rem;
  }

  .nav-container {
    align-items: flex-start;
  }

  .nav-menu {
    width: 100%;
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .nav-link {
    display: block;
    padding: 0.45rem 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .find-funding-btn,
  .login-btn,
  .user-profile-header {
    padding: 0.55rem 0.9rem;
    font-size: 0.84rem;
  }

  .user-dropdown-menu {
    left: 0;
    right: auto;
    min-width: min(92vw, 280px);
  }

  .auth-section-new,
  .dashboard-container,
  .documents-section,
  .search-results-section,
  .results-section,
  .funding-section {
    margin-top: 0 !important;
  }

  .dashboard-container {
    min-height: auto;
  }

  .dashboard-sidebar {
    padding: 0.35rem;
  }

  .sidebar-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    border-top: none;
    border-left: 4px solid transparent;
    padding: 0.85rem 1rem;
  }

  .sidebar-item.active {
    border-top-color: transparent;
    border-left-color: var(--accent-red);
  }

  .dashboard-main,
  .dashboard-footer {
    margin-left: 0;
    padding: 1rem;
  }

  .dashboard-main h1,
  .documents-content h1,
  .results-info h1 {
    font-size: 1.55rem;
  }

  .dashboard-section,
  .admin-section,
  .account-manager-card,
  .contact-section,
  .contact-form-section,
  .results-message,
  .results-header {
    padding: 1.1rem;
  }

  .applications-tabs,
  .search-box,
  .card-footer,
  .matched-fund-card .card-header,
  .matched-fund-card .card-footer,
  .funding-card .card-header,
  .funding-card .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .search-btn,
  .apply-btn,
  .matched-fund-card .apply-btn,
  .results-button,
  .back-button {
    width: 100%;
  }

  /* Funding form step buttons: stack on mobile so Continue never gets pushed off-screen */
  .funding-form .form-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .funding-form .form-buttons .back-button,
  .funding-form .form-buttons .continue-button,
  .funding-form .form-buttons .results-button {
    width: 100%;
    flex: 0 0 auto;
  }

  .form-row,
  .summary-row,
  .card-details,
  .matched-fund-card .card-details,
  .upload-options {
    grid-template-columns: 1fr;
  }

  .section-content,
  .section-content.active {
    padding-left: 0;
  }

  .great-news-banner .banner-image {
    flex: 0 0 170px;
  }

  .documents-section,
  .search-results-section,
  .results-section,
  .funding-section {
    padding: 1rem;
  }

  .login-modal-card,
  .phone-verify-card {
    box-sizing: border-box;
    width: calc(100% - 1.5rem);
    margin: 0.75rem;
  }

  .matched-funds-header,
  .matched-funds-header .results-sort {
    align-items: flex-start;
    width: 100%;
  }

  .matched-funds-header .results-sort select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 36px;
  }

  .nav-menu {
    grid-template-columns: 1fr;
  }

  .dashboard-main h1,
  .documents-content h1,
  .results-header h1,
  .auth-left-content h1 {
    font-size: 1.3rem;
  }

  .dashboard-section,
  .admin-section,
  .account-manager-card,
  .contact-section,
  .contact-form-section,
  .results-message,
  .results-header,
  .matched-fund-card,
  .funding-card {
    padding: 0.9rem;
    border-radius: 10px;
  }

  .tab-btn,
  .auth-tab {
    width: 100%;
    text-align: center;
  }

  .application-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .no-applications-state {
    padding: 1.25rem 0.9rem;
  }

  .login-modal-card,
  .phone-verify-card {
    padding: 1.25rem 1rem 1rem;
    border-radius: 12px;
  }
}
