/* ============================================
   COMMON DESIGN SYSTEM - HEADER, FOOTER, SCROLLBAR, TEXT SELECTION
   ============================================ */

/* Text Selection Color */
*::selection {
  background-color: #1884dc34;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #edf1f7;
}

::-webkit-scrollbar-thumb {
  background: #b1b7be;
  border-radius: 5px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #929dac;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #a1a8b0 #edf1f7;
}

/* ============================================
   HEADER / ACTION BAR
   ============================================ */

.gradient-bar {
  background: linear-gradient(84.06deg, #0088FF -28.62%, #A033FF 36.39%);
  width: 100%;
  max-width: 100vw;
  height: 5px;
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  z-index: 1000;
  overflow: hidden;
}

.action-bar {
  background: #ffffff;
  width: 100%;
  max-width: 100vw;
  height: 65px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 5px;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0px 0px 20px #e7e7e7;
  overflow: hidden;
}

.action-bar-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ab-logo {
  width: auto;
  height: 28px;
  margin-left: 24px;
  user-select: none;
}

.header-login-btn {
  padding: 10px 24px;
  background: transparent;
  color: #667eea;
  border: 1.5px solid #667eea;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  margin-right: 24px;
  text-decoration: none;
  display: inline-block;
}

.header-login-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.header-login-btn:active {
  transform: translateY(0px);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.header-login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: #ffffff;
  border-top: 1px solid #e7e7e7;
  padding: 64px 24px;
  width: 100%;
  max-width: 100vw;
  position: relative;
  margin-top: auto;
  overflow-x: hidden;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-main-section {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 120px;
  width: 100%;
}

.footer-brand-column {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  height: auto;
  width: auto;
  user-select: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.whatsapi-logo {
  max-height: 28px;
  align-self: flex-start;
  opacity: 1;
}

.footer-by-section {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  align-self: flex-start;
}

.finitechat-logo {
  max-height: 14px;
}

.footer-by-text {
  color: #7b7e89;
  font-size: 11px;
  font-weight: 400;
}

.footer-tagline {
  font-family: 'Comfortaa';
  color: #7b7e89;
  font-size: 14px;
  line-height: 1.5;
  margin: 20px 0 0 0;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-top: 32px;
  width: fit-content;
  user-select: none;
  cursor: pointer;
  transition: 0.2s;
}

.footer-status-badge:hover {
  transition: 0.2s;
  background-color: #0088ff09;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.status-text {
  font-family: 'Nunito';
  color: #374151;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.social-link {
  color: #7b7e89;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: #667eea;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: repeat(2, auto);
  gap: 40px 80px;
  margin: 32px 28px 0px auto;
  justify-items: start;
}

.footer-nav-column {
  display: flex;
  flex-direction: column;
}

.footer-nav-heading {
  color: #22242d;
  font-size: 16px;
  font-family: 'Tilt Warp';
  font-weight: 500;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  cursor: default;
}

.footer-nav-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.footer-nav-section:last-child {
  margin-bottom: 0;
}

.footer-nav-link {
  color: #7b7e89;
  font-size: 14px;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
  line-height: 1.6;
  white-space: nowrap;
}

.footer-nav-link:hover {
  color: #667eea;
}

.new-badge {
  display: inline-block;
  background: #d1fae5;
  color: #059669;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 10px 10px 10px 5px;
  margin-left: 3px;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.live-badge {
  display: inline-block;
  background: #dbeafe;
  color: #2563eb;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 10px 10px 10px 5px;
  margin-left: 3px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.footer-bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 40px;
  margin-top: 48px;
  border-top: 1px solid #e7e7e7;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-copyright p {
  color: #7b7e89;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.footer-copyright p a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-copyright p a:hover {
  color: #764ba2;
}

.footer-subtext {
  line-height: 1.8;
  margin: 0;
  padding-top: 5px;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-legal-links a {
  font-family: 'Baloo 2';
  color: #7b7e89;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #667eea;
}

.heart {
  width: 15px;
  height: 15px;
  margin: 0 4px;
  vertical-align: middle;
  display: inline-block;
}

.flag {
  width: 20px;
  margin: 0px 0px 0px 4px;
  vertical-align: middle;
  display: inline-block;
}

/* ============================================
   FOOTER RESPONSIVE STYLES
   ============================================ */

/* Large screens */
@media (max-width: 1280px) {
  .action-bar-container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .ab-logo {
    margin-left: 0;
  }
  
  .header-login-btn {
    margin-right: 0;
    padding: 9px 18px;
    font-size: 14px;
    border-width: 1.5px;
  }
  
  .footer-content {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .footer-main-section {
    gap: 80px;
  }
  
  .footer-nav-columns {
    gap: 40px 60px;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .action-bar-container {
    padding: 0 20px;
  }
  
  .ab-logo {
    margin-left: 0;
  }
  
  .header-login-btn {
    margin-right: 0;
    padding: 9px 18px;
    font-size: 14px;
    border-width: 1.5px;
  }
  
  .footer {
    padding: 56px 20px;
  }
  
  .footer-content {
    gap: 40px;
  }
  
  .footer-main-section {
    gap: 60px;
  }
  
  .footer-brand-column {
    flex: 0 0 240px;
  }
  
  .footer-tagline {
    max-width: 240px;
  }
  
  .footer-nav-columns {
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, auto);
    gap: 32px 60px;
    margin: 12px 0 0 0;
    justify-items: start;
    width: 100%;
  }
  
  .footer-social {
    gap: 14px;
  }
  
  .social-link svg {
    width: 19px;
    height: 19px;
  }
}

/* Small tablets */
@media (max-width: 768px) {
  .action-bar-container {
    padding: 0 20px;
  }
  
  .ab-logo {
    margin-left: 0;
    height: 26px;
  }
  
  .header-login-btn {
    margin-right: 0;
    padding: 8px 16px;
    font-size: 13px;
    border-width: 1.5px;
  }
  
  .footer {
    padding: 48px 20px;
  }
  
  .footer-content {
    gap: 36px;
  }
  
  .footer-main-section {
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
  }
  
  .footer-brand-column {
    flex: 1;
    max-width: 100%;
    gap: 14px;
  }
  
  .footer-tagline {
    max-width: 100%;
    line-height: 1.5;
  }
  
  .footer-social {
    margin-top: 16px;
    gap: 12px;
  }
  
  .footer-status-badge {
    margin-top: 20px;
  }
  
  .footer-nav-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
    width: 100%;
    margin: 20px 0 0 0;
    justify-items: start;
  }
  
  .footer-nav-heading {
    font-size: 15px;
    margin: 0 0 10px 0;
  }
  
  .footer-nav-link {
    font-size: 13px;
    white-space: normal;
  }
  
  .footer-bottom-section {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 28px;
    margin-top: 36px;
    gap: 32px;
  }
  
  .footer-copyright {
    gap: 10px;
  }
  
  .footer-copyright p {
    font-size: 13px;
  }
  
  .footer-legal-links {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .footer-legal-links a {
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .action-bar-container {
    padding: 0 16px;
  }
  
  .ab-logo {
    margin-left: 0;
    height: 24px;
  }
  
  .header-login-btn {
    margin-right: 0;
    padding: 8px 14px;
    font-size: 12px;
    border-width: 1.5px;
  }
  
  .footer {
    padding: 40px 16px;
  }
  
  .footer-content {
    gap: 32px;
  }
  
  .footer-main-section {
    gap: 32px;
  }
  
  .whatsapi-logo {
    max-height: 26px;
  }
  
  .finitechat-logo {
    max-height: 13px;
  }
  
  .footer-by-text {
    font-size: 10px;
  }
  
  .footer-by-section {
    margin-top: 8px;
  }
  
  .footer-tagline {
    font-size: 13px;
    margin: 0;
  }
  
  .footer-social {
    margin-top: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .social-link svg {
    width: 18px;
    height: 18px;
  }
  
  .footer-status-badge {
    margin-top: 16px;
    padding: 5px 9px;
  }
  
  .status-text {
    font-size: 12px;
  }
  
  .status-dot {
    width: 7px;
    height: 7px;
  }
  
  .footer-nav-columns {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px 16px;
    width: 100%;
    margin: 20px 0 0 0;
  }
  
  .footer-nav-heading {
    font-size: 14px;
    margin: 0 0 6px 0;
  }
  
  .footer-nav-section {
    gap: 8px;
    margin-bottom: 0;
  }
  
  .footer-nav-link {
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
  }
  
  .new-badge,
  .live-badge {
    font-size: 9px;
    padding: 1px 4px;
    margin-left: 2px;
  }
  
  .footer-bottom-section {
    padding-top: 24px;
    margin-top: 32px;
    gap: 28px;
  }
  
  .footer-copyright {
    gap: 10px;
  }
  
  .footer-copyright p {
    font-size: 12px;
    line-height: 1.5;
  }
  
  .footer-subtext {
    font-size: 11px;
    padding-top: 4px;
  }
  
  .footer-legal-links {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .footer-legal-links a {
    font-size: 12px;
  }
  
  .heart {
    width: 13px;
    height: 13px;
    margin: 0 3px;
  }
  
  .flag {
    width: 18px;
    margin: 0px 0px 0px 3px;
  }
}

/* Very small mobile - keep 2x2 grid */
@media (max-width: 360px) {
  .action-bar-container {
    padding: 0 12px;
  }
  
  .ab-logo {
    margin-left: 0;
    height: 22px;
  }
  
  .footer {
    padding: 32px 12px;
  }
  
  .footer-content {
    gap: 28px;
  }
  
  .footer-main-section {
    gap: 28px;
  }
  
  .whatsapi-logo {
    max-height: 24px;
  }
  
  .finitechat-logo {
    max-height: 12px;
  }
  
  .footer-tagline {
    font-size: 12px;
  }
  
  .footer-social {
    gap: 8px;
  }
  
  .social-link svg {
    width: 16px;
    height: 16px;
  }
  
  .footer-nav-columns {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 18px 12px;
  }
  
  .footer-nav-heading {
    font-size: 13px;
    margin: 0 0 5px 0;
  }
  
  .footer-nav-section {
    gap: 6px;
  }
  
  .footer-nav-link {
    font-size: 11px;
    line-height: 1.3;
  }
  
  .new-badge,
  .live-badge {
    font-size: 8px;
    padding: 1px 3px;
    margin-left: 1px;
  }
  
  .footer-copyright p {
    font-size: 11px;
  }
  
  .footer-legal-links {
    gap: 8px;
  }
  
  .footer-legal-links a {
    font-size: 11px;
  }
}

/* Extra small mobile - single column only when absolutely necessary */
@media (max-width: 320px) {
  .action-bar-container {
    padding: 0 10px;
  }
  
  .ab-logo {
    margin-left: 0;
    height: 20px;
  }
  
  .footer {
    padding: 28px 10px;
  }
  
  .footer-nav-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-nav-heading {
    font-size: 13px;
  }
  
  .footer-nav-link {
    font-size: 12px;
  }
  
  .footer-bottom-section {
    gap: 24px;
  }
  
  .footer-copyright {
    gap: 8px;
  }
  
  .footer-copyright p {
    font-size: 10px;
  }
  
  .footer-legal-links {
    gap: 8px;
  }
  
  .footer-legal-links a {
    font-size: 10px;
  }
}

