/* NeoFiber Captive Portal - Modern Premium Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --primary-color: #4f7df3;
  --primary-dark: #3d66d4;
  --primary-light: #6b93f7;
  --accent-color: #10b981;
  --accent-dark: #059669;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-surface: #334155;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --gradient-bg: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-primary: linear-gradient(135deg, #4f7df3 0%, #6366f1 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: var(--gradient-bg);
  min-height: 100vh;
  color: var(--text-dark);
}

body.auth-page header,
body.auth-page footer {
  display: none !important;
}

body.auth-page main {
  padding: 0 !important;
}

body.auth-page main > .container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ==================== PORTAL BACKGROUND SLIDER ==================== */
.portal-bg-slider {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.portal-bg-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03) translate3d(0, 0, 0);
  transition: opacity 1.4s ease-in-out;
  will-change: opacity, transform;
}

.portal-bg-slider .slide.is-active {
  opacity: 1;
  z-index: 2;
}

.portal-bg-slider .slide.is-leaving {
  opacity: 0;
  z-index: 1;
}

.portal-bg-slider .slide.is-active.motion-a,
.portal-bg-slider .slide.is-leaving.motion-a {
  animation: portalSliderKenBurnsA 7s ease-in-out forwards;
}

.portal-bg-slider .slide.is-active.motion-b,
.portal-bg-slider .slide.is-leaving.motion-b {
  animation: portalSliderKenBurnsB 7s ease-in-out forwards;
}

.portal-bg-slider.single-slide .slide {
  opacity: 1;
  z-index: 2;
  animation: portalSliderSingleDrift 18s ease-in-out infinite alternate;
}

@keyframes portalSliderKenBurnsA {
  0% {
    transform: scale(1.03) translate3d(-1.4%, -1%, 0);
  }
  100% {
    transform: scale(1.1) translate3d(1.4%, 1%, 0);
  }
}

@keyframes portalSliderKenBurnsB {
  0% {
    transform: scale(1.09) translate3d(1.2%, -1%, 0);
  }
  100% {
    transform: scale(1.035) translate3d(-1.2%, 1%, 0);
  }
}

@keyframes portalSliderSingleDrift {
  0% {
    transform: scale(1.04) translate3d(-1.2%, -0.8%, 0);
  }
  50% {
    transform: scale(1.09) translate3d(1%, 0.9%, 0);
  }
  100% {
    transform: scale(1.06) translate3d(-0.8%, 1.1%, 0);
  }
}

@media (max-width: 576px) {
  .portal-bg-slider .slide {
    background-position: center top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-bg-slider .slide {
    animation: none !important;
    transition: none !important;
  }

  .portal-bg-slider .slide.is-active {
    opacity: 1;
    transform: none;
  }
}

/* ==================== NeoFiber HEADER ==================== */
.NeoFiber-header {
  background: var(--gradient-dark);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-custom {
  padding: 0;
}

.iti--separate-dial-code {
  width: 100%;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.nav-brand .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--primary-light);
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-links .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-links .nav-link.active {
  background: var(--gradient-primary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.user-phone {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-nav-logout {
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-logout:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .user-menu-toggle {
    padding: 0.5rem;
  }

  .user-menu-toggle .user-phone {
    display: none;
  }

  .user-info {
    display: none;
  }
}

/* ==================== NeoFiber FOOTER ==================== */
.NeoFiber-footer {
  background: var(--gradient-dark);
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
}

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

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

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo-img {
  height: 45px;
  width: auto;
}

.footer-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 350px;
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact li svg {
  opacity: 0.6;
}

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

.footer-contact a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

/* ==================== PACKAGES PAGE ==================== */
.packages-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

.package-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.package-card.featured {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
}

.package-card.featured h3,
.package-card.featured .package-speed {
  color: white;
}

.package-card.featured .package-features li {
  color: rgba(255, 255, 255, 0.8);
}

.package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.package-card.featured .package-badge {
  background: var(--gradient-success);
}

.package-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
}

.package-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.package-speed {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  text-align: left;
  width: 100%;
}

.package-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.package-price {
  margin-bottom: 1.5rem;
}

.package-price .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.package-card.featured .package-price .price {
  color: white;
}

.package-price .currency {
  font-size: 1rem;
  color: var(--text-muted);
}

.package-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #f1f5f9;
  color: var(--text-dark);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
}

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

.package-btn.primary {
  background: var(--gradient-primary);
  color: white;
}

.package-btn.primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(79, 125, 243, 0.4);
}

.packages-cta {
  background: var(--gradient-dark);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  color: white;
}

.packages-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.packages-cta p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient-success);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  color: white;
}

/* Packages Info Section */
.packages-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .packages-info {
    grid-template-columns: 1fr;
  }
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.info-item svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.info-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==================== ABOUT PAGE ==================== */
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
}

.about-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.stat-box {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.about-features h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

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

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.about-contact h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.contact-item svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* ==================== PAYMENT PAGE ==================== */
.payment-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.payment-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.payment-methods h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

@media (max-width: 992px) {
  .methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .methods-grid {
    grid-template-columns: 1fr;
  }
}

.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.payment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.payment-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

.payment-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.payment-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
}

.payment-info {
  margin-bottom: 1rem;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 1.5rem;
}

.info-box svg {
  color: #0284c7;
  flex-shrink: 0;
}

.info-box h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0c4a6e;
  margin-bottom: 0.5rem;
}

.info-box p {
  font-size: 0.875rem;
  color: #075985;
  margin: 0;
  line-height: 1.6;
}

/* ==================== DASHBOARD MAIN ==================== */
body.dashboard-page main {
  padding-top: 100px;
  padding-bottom: 2rem;
}

body.dashboard-page main > .container {
  max-width: 1400px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.dashboard-main {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Welcome Hero Section */
.welcome-hero {
  background: var(--gradient-dark);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 125, 243, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-content {
  position: relative;
  z-index: 1;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-success);
  border-radius: 30px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.success-badge.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.success-badge.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.welcome-content h1 {
  color: white;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.welcome-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 450px;
}

/* WiFi Animation */
.welcome-illustration {
  position: relative;
  z-index: 1;
}

.wifi-animation {
  width: 180px;
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wifi-wave {
  position: absolute;
  border: 3px solid rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  animation: wifiPulse 2s ease-out infinite;
}

.wave-1 {
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.wave-2 {
  width: 120px;
  height: 120px;
  animation-delay: 0.4s;
}

.wave-3 {
  width: 160px;
  height: 160px;
  animation-delay: 0.8s;
}

@keyframes wifiPulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.wifi-center {
  width: 70px;
  height: 70px;
  background: var(--gradient-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.welcome-illustration.inactive .wifi-wave {
  border-color: rgba(239, 68, 68, 0.4);
}

.welcome-illustration.inactive .wifi-center {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

@media (max-width: 768px) {
  .welcome-hero {
    flex-direction: column;
    text-align: center;
  }

  .welcome-content h1 {
    font-size: 1.75rem;
  }

  .wifi-animation {
    width: 140px;
    height: 140px;
  }
}

/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-cards {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Info Section */
.info-section {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-section.is-single {
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  .info-section {
    grid-template-columns: 1fr;
  }
}

.user-details-card,
.connection-status-card {
  background: white;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.card-header-custom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.card-header-custom h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.card-body-custom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-value {
  font-weight: 600;
  color: var(--text-dark);
}

/* Connection Status Card */
.connection-status-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.status-indicator {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.25rem;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

.pulse-core {
  position: absolute;
  inset: 20px;
  background: var(--gradient-success);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.connection-status-card h3 {
  color: #065f46;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.connection-status-card p {
  color: #047857;
  font-size: 0.9rem;
  max-width: 300px;
  margin-bottom: 1.25rem;
}

.connection-speed {
  width: 100%;
  max-width: 250px;
}

.speed-bar {
  height: 8px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.speed-fill {
  height: 100%;
  width: 90%;
  background: var(--gradient-success);
  border-radius: 10px;
  animation: speedPulse 2s ease-in-out infinite;
}

@keyframes speedPulse {
  0%,
  100% {
    width: 85%;
  }

  50% {
    width: 95%;
  }
}

.connection-speed span {
  font-size: 0.8rem;
  color: #059669;
  font-weight: 500;
}

/* Quick Actions */
.quick-actions {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.quick-actions h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.action-card:hover {
  transform: translateY(-4px);
  background: white;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.action-card.logout-action:hover {
  border-color: #fca5a5;
  background: #fef2f2;
}

.action-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-card span {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* ==================== AUTH PAGES (SPLIT SCREEN) ==================== */
.split-container {
  display: flex;
  min-height: 100vh;
  max-width: 100%;
  margin: 0;
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .left-panel {
    display: none !important;
  }

  .right-panel {
    order: 1;
    flex: 1;
    padding: 2rem 1.5rem;
  }

  .left-panel .brand-logo {
    display: none;
  }

  .left-panel .hero-content {
    display: none;
  }

  .left-panel .dots-indicator {
    display: none;
  }

  .help-card {
    display: none;
  }
}

/* Left Panel - Dark */
.left-panel {
  flex: 1;
  background: var(--gradient-dark);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  color: var(--white);
  position: relative;
}

@media (min-width: 769px) {
  .left-panel {
    padding: 3rem;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}

.auth-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.brand-logo svg {
  width: 48px;
  height: 48px;
}

.brand-logo .brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-logo .brand-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 400px;
}

/* Testimonial Card */
.testimonial-card {
  background: var(--dark-card);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  font-family: serif;
  line-height: 1;
  opacity: 0.5;
}

/* Help Card */
.help-card {
  background: var(--dark-card);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.help-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.help-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.help-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.help-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.help-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.help-note strong {
  color: var(--primary-light);
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.testimonial-info span {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Dots indicator */
.dots-indicator {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.dot.active {
  background: var(--white);
}

/* Mobile Logo - only visible on mobile */
.mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 1.5rem;
}

.mobile-logo img {
  height: 50px;
  width: auto;
}

@media (max-width: 768px) {
  .mobile-logo {
    display: block;
  }
}

/* Right Panel - Light */
.right-panel {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(30, 41, 59, 0.65)),
    url('../img/login.jpg') center / cover no-repeat;
}

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

.form-container {
  width: 100%;
  max-width: 600px;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.auth-form-logo {
  height: 120px;
  width: auto;
  max-width: 100%;
  margin-bottom: 1.5rem;
  /* Darkens the white logo to make it visible on the white form background */
  filter: brightness(0) invert(0.15);
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* OTP Boxes */
.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.45rem, 2vw, 0.75rem);
  margin-bottom: 1rem;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.otp-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-width: 0;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  font-size: clamp(1.15rem, 5vw, 1.5rem);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dark);
  transition: all 0.2s ease;
  outline: none;
}

.otp-box:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 125, 243, 0.1);
}

.otp-box::placeholder {
  color: var(--text-light);
}

/* Phone Input */
.phone-input-wrapper {
  margin-bottom: 1.5rem;
}

.phone-input-wrapper label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.phone-input {
  width: 100%;
  height: 52px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 0 1rem;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
  outline: none;
}

.phone-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 125, 243, 0.1);
}

.phone-input::placeholder {
  color: var(--text-light);
}

/* Resend Link */
.resend-link {
  text-align: center;
  margin-bottom: 1.5rem;
}

.resend-link a {
  color: var(--primary-color);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.resend-link a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Primary Button */
.btn-primary-custom {
  width: 100%;
  height: 52px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 125, 243, 0.4);
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 1.25rem;
}

.back-link a {
  color: var(--primary-color);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Alert Styles */
.alert-debug {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.alert-debug .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alert-debug .code {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #78350f;
  margin-top: 0.25rem;
}

.alert-success {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #065f46;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  animation: slideInRight 0.3s ease;
}

.alert-error {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #991b1b;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Bootstrap Alert Override */
.alert.alert-success,
.alert.alert-danger,
.alert.alert-warning,
.alert.alert-info {
  position: fixed !important;
  top: 1rem;
  right: 1rem;
  left: auto;
  z-index: 9999;
  min-width: 350px;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease;
}

.alert.alert-success {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
  color: #065f46 !important;
}

.alert.alert-danger {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}

/* ==================== LEGACY DASHBOARD (Backup) ==================== */
.dashboard-container {
  min-height: 100vh;
  background: var(--gradient-bg);
  padding: 2rem;
}

.dashboard-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.dashboard-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
  padding: 3rem;
  text-align: center;
}

.dashboard-header .icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.dashboard-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.dashboard-header p {
  opacity: 0.9;
}

.dashboard-body {
  padding: 2rem;
}

.info-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.info-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0c4a6e;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.875rem;
  color: #075985;
  line-height: 1.6;
}

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

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.stat-item .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-item h5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.logout-section {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #ef4444;
  color: #ef4444;
  background: transparent;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-logout:hover {
  background: #ef4444;
  color: var(--white);
}

/* Hide Yii errors */
.invalid-feedback {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: left;
}

.auth-slider-shell .invalid-feedback {
  color: #fecaca !important;
}

.auth-slider-shell .otp-error-feedback {
  margin-bottom: 1rem;
}

/* Hide default Bootstrap navbar */
.navbar-expand-md.navbar-dark.bg-dark {
  display: none !important;
}

/* Hide default footer on dashboard page */
body.dashboard-page footer#footer.mt-auto.py-3.bg-light {
  display: none;
}

/* ==================== USER DROPDOWN MENU ==================== */
.header-language-dropdown,
.user-menu-dropdown {
  position: relative;
}

.header-language-toggle,
.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.header-language-toggle {
  min-height: 46px;
  padding: 0.5rem 0.75rem;
}

.header-language-toggle:hover,
.user-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.header-language-flag {
  width: 28px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.header-language-flag img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.header-language-globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.header-language-current {
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
}

.user-menu-toggle .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu-toggle .user-phone {
  font-size: 0.9rem;
  font-weight: 500;
}

.header-language-toggle .dropdown-arrow,
.user-menu-toggle .dropdown-arrow {
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.header-language-toggle:hover .dropdown-arrow,
.user-menu-toggle:hover .dropdown-arrow {
  opacity: 1;
}

.header-language-menu,
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
  overflow: hidden;
}

.header-language-menu {
  min-width: 210px;
}

.header-language-menu.show,
.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-language-item,
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-language-item {
  gap: 0.65rem;
  padding: 0.75rem 0.95rem;
}

.header-language-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-language-check {
  color: var(--primary-color);
  flex: 0 0 16px;
}

.header-language-item.is-active {
  background: #eff6ff;
  color: var(--primary-color);
}

.header-language-item:last-child,
.dropdown-item:last-child {
  border-bottom: none;
}

.header-language-item:hover,
.dropdown-item:hover {
  background: #f8fafc;
  color: var(--primary-color);
}

.dropdown-item.logout:hover {
  background: #fef2f2;
  color: #ef4444;
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.dropdown-item:hover svg {
  opacity: 1;
}

.dropdown-form {
  margin: 0;
  padding: 0;
}

@media (max-width: 576px) {
  .header-language-toggle {
    padding: 0.5rem;
  }

  .header-language-current {
    display: none;
  }

  .header-language-menu {
    right: -3.25rem;
    min-width: 190px;
  }
}

/* ==================== PROFILE FORM UI ENHANCEMENTS ==================== */
.profile-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.profile-page .card {
  border: none;
  border-radius: 24px;
  overflow: hidden;
}

.profile-page .card-header {
  padding: 2rem;
  border-bottom: none;
}

.profile-page .card-body {
  padding: 2.5rem;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f3f4f6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.profile-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #f3f4f6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.profile-photo-placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.profile-photo-wrapper {
  display: inline-block;
  position: relative;
}

.profile-page .btn-outline-primary {
  border-width: 2px;
  border-radius: 12px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.profile-page .btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 125, 243, 0.3);
}

.profile-page .form-control-lg {
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.profile-page .form-control-lg:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 125, 243, 0.1);
}

.profile-page .form-control-lg:disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.profile-page .form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.profile-page .btn-primary,
.profile-page .btn-secondary {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.2s ease;
}

.profile-page .btn-primary {
  background: var(--gradient-primary);
}

.profile-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 125, 243, 0.3);
}

.profile-page .btn-secondary:hover {
  transform: translateY(-2px);
  background: #64748b;
}

.profile-page hr {
  border-color: #e2e8f0;
  opacity: 1;
  margin: 2rem 0;
}

/* ==================== GLOBAL PAGE STYLES ==================== */
.packages-page,
.profile-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 0;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ==================== PROFILE PAGE REDESIGN ==================== */
.profile-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: block;
}

.profile-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.profile-photo-section {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 2rem;
}

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

.profile-fields .form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.profile-fields .form-control {
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.profile-fields .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 125, 243, 0.1);
}

.profile-fields .form-control:disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.btn-photo-upload {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-photo-upload:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 125, 243, 0.3);
}

.upload-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions .btn {
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.2s ease;
}

.form-actions .btn-primary {
  background: var(--gradient-primary);
}

.form-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 125, 243, 0.3);
}

.form-actions .btn-secondary {
  background: #64748b;
  color: white;
}

.form-actions .btn-secondary:hover {
  transform: translateY(-2px);
  background: #475569;
}

/* ==================== USER AVATAR IN HEADER ==================== */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 125, 243, 0.1);
  overflow: hidden;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-avatar svg {
  color: var(--primary-color);
}

/* ==================== DASHBOARD REDESIGN ==================== */
body.dashboard-redesign-page {
  background: #edf3f9;
}

body.dashboard-redesign-page main {
  padding-top: 104px;
  padding-bottom: 3rem;
}

body.dashboard-redesign-page main > .container {
  width: 100%;
  max-width: 1540px;
  padding-right: 2rem;
  padding-left: 2rem;
}

.dashboard-main {
  --dashboard-navy: #101b31;
  --dashboard-ink: #101a31;
  --dashboard-muted: #66758f;
  --dashboard-border: #e3eaf2;
  --dashboard-panel: #ffffff;
  width: 100%;
}

.dashboard-main [hidden] {
  display: none !important;
}

.dashboard-main .welcome-hero {
  min-height: 310px;
  margin: 0 0 2.25rem;
  padding: 3.2rem 3.4rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 18%, rgba(79, 125, 243, 0.15), transparent 30%),
    linear-gradient(135deg, #0d1729 0%, #1d2b45 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.dashboard-main .welcome-hero::before {
  display: none;
}

.dashboard-main .welcome-content {
  max-width: min(880px, calc(100% - 220px));
}

.dashboard-main .success-badge {
  min-height: 48px;
  margin: 0 0 1.45rem;
  padding: 0.65rem 1.2rem;
  gap: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #047857 0%, #05603f 100%);
  box-shadow: 0 9px 22px rgba(16, 185, 129, 0.22);
  font-size: 0.95rem;
  font-weight: 800;
}

.dashboard-main .dashboard-hero--expired .success-badge,
.dashboard-main .dashboard-hero--inactive .success-badge {
  background: linear-gradient(135deg, #c93434 0%, #a91f1f 100%);
  box-shadow: 0 9px 22px rgba(220, 38, 38, 0.2);
}

.dashboard-main .dashboard-hero--archive .success-badge {
  background: linear-gradient(135deg, #9a610d 0%, #7c4305 100%);
  box-shadow: 0 9px 22px rgba(217, 119, 6, 0.2);
}

.dashboard-main .dashboard-hero--vip .success-badge {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  box-shadow: 0 9px 22px rgba(79, 70, 229, 0.22);
}

.dashboard-main .dashboard-hero--unknown .success-badge {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.dashboard-main .welcome-content h1 {
  max-width: 950px;
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 3.15vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.dashboard-main .welcome-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}

.dashboard-main .wifi-animation {
  width: 190px;
  height: 190px;
}

.dashboard-main .wifi-center {
  width: 76px;
  height: 76px;
}

.dashboard-main .dashboard-hero--expired .wifi-wave,
.dashboard-main .dashboard-hero--inactive .wifi-wave {
  border-color: rgba(239, 68, 68, 0.32);
}

.dashboard-main .dashboard-hero--vip .wifi-wave {
  border-color: rgba(99, 102, 241, 0.34);
}

.dashboard-main .dashboard-hero--archive .wifi-wave {
  border-color: rgba(245, 158, 11, 0.34);
}

.dashboard-main .dashboard-hero--unknown .wifi-wave {
  border-color: rgba(100, 116, 139, 0.34);
}

.dashboard-main .dashboard-hero--expired .wifi-center,
.dashboard-main .dashboard-hero--inactive .wifi-center {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.38);
}

.dashboard-main .dashboard-hero--vip .wifi-center {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.36);
}

.dashboard-main .dashboard-hero--archive .wifi-center {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.34);
}

.dashboard-main .dashboard-hero--unknown .wifi-center {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  box-shadow: 0 0 30px rgba(100, 116, 139, 0.3);
}

.dashboard-main .dashboard-alerts {
  display: grid;
  gap: 0.75rem;
  margin: -0.75rem 0 1.5rem;
}

.dashboard-main .dashboard-alerts:empty,
.dashboard-main .dashboard-alerts.is-empty {
  display: none;
}

.dashboard-main .dashboard-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid #f6cf6a;
  border-radius: 14px;
  background: #fffbeb;
  color: #854d0e;
}

.dashboard-main .dashboard-alert--danger {
  border-color: #fecaca;
  background: #fff3f3;
  color: #991b1b;
}

.dashboard-main .dashboard-alert strong,
.dashboard-main .dashboard-alert span {
  display: block;
}

.dashboard-main .dashboard-alert strong {
  font-size: 0.92rem;
}

.dashboard-main .dashboard-alert span {
  margin-top: 0.15rem;
  font-size: 0.84rem;
}

.dashboard-main .dashboard-alert a,
.dashboard-main .dashboard-alert button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: #854d0e;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-main .dashboard-alert--danger a,
.dashboard-main .dashboard-alert--danger button {
  background: #991b1b;
}

.dashboard-main .dashboard-alert--danger .dashboard-activate-button {
  background: #087d5a;
}

.dashboard-main .dashboard-alert button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.dashboard-main .dashboard-alert .activation-feedback {
  min-height: 1.2em;
  color: #087d5a;
  font-weight: 700;
}

.dashboard-main .dashboard-alert .activation-feedback.is-error {
  color: #b91c1c;
}

.dashboard-main .dashboard-alert-actions {
  display: flex;
  gap: 0.55rem;
}

.dashboard-main .stats-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 0 0 2.35rem;
}

.dashboard-main .stat-card {
  min-width: 0;
  min-height: 176px;
  padding: 1.7rem;
  gap: 1.15rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  background: var(--dashboard-panel);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-main .stat-card-link {
  color: inherit;
  text-decoration: none;
}

.dashboard-main .stat-card-link:hover {
  color: inherit;
  border-color: rgba(14, 165, 233, 0.35);
}

.dashboard-main .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 34px rgba(15, 23, 42, 0.11);
}

.dashboard-main .stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: #fff;
}

.dashboard-main .stat-card--time .stat-icon {
  background: linear-gradient(135deg, #6656ef 0%, #8058ed 100%);
}

.dashboard-main .stat-card--packages .stat-icon {
  background: linear-gradient(135deg, #13afe4 0%, #078ed1 100%);
}

.dashboard-main .stat-card--balance .stat-icon {
  background: linear-gradient(135deg, #10bd83 0%, #059b6c 100%);
}

.dashboard-main #payment-section {
  scroll-margin-top: 110px;
}

.dashboard-main .stat-card--package .stat-icon {
  background: linear-gradient(135deg, #ff9f0a 0%, #ed8500 100%);
}

.dashboard-main .stat-info {
  min-width: 0;
  gap: 0.35rem;
}

.dashboard-main .stat-label {
  color: #526179;
  font-size: 0.84rem;
  font-weight: 650;
}

.dashboard-main .stat-value {
  color: var(--dashboard-ink);
  font-size: clamp(1rem, 1.25vw, 1.28rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-main .stat-meta {
  color: #526179;
  font-size: 0.76rem;
  line-height: 1.35;
}

.dashboard-main .stat-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #087cad;
  font-size: 1.08rem;
}

.dashboard-main .stat-balance-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dashboard-main .balance-top-up {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 0.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: #eaf8f2;
  color: #08704f;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.dashboard-main .package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dashboard-main .package-meta span {
  display: inline-flex;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  background: #f4f7fb;
  color: #526179;
  font-size: 0.71rem;
  font-weight: 650;
}

.dashboard-main .renew-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  gap: 0.35rem;
  margin-top: 0.1rem;
  padding: 0.35rem 0.58rem;
  border-radius: 999px;
  background: #edf2f7;
  color: #526179;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-main .renew-status.is-on {
  background: #e7f8f1;
  color: #08704f;
}

.dashboard-main .info-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 1.75rem;
  margin: 0 0 2.35rem;
}

.dashboard-main .user-details-card,
.dashboard-main .connection-status-card,
.dashboard-main .recent-transactions-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.dashboard-main .user-details-card,
.dashboard-main .connection-status-card {
  min-height: 480px;
  padding: 2rem;
}

.dashboard-main .card-header-custom {
  margin: 0 0 1.5rem;
}

.dashboard-main .card-header-custom h2 {
  margin: 0;
  color: var(--dashboard-ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.dashboard-main .card-body-custom {
  gap: 0.85rem;
}

.dashboard-main .detail-row {
  min-height: 66px;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f7f9fc;
}

.dashboard-main .detail-label {
  color: #526179;
  font-size: 0.9rem;
  font-weight: 600;
}

.dashboard-main .detail-value {
  min-width: 0;
  color: var(--dashboard-ink);
  overflow-wrap: anywhere;
  text-align: right;
}

.dashboard-main .detail-value-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 0.45rem;
}

.dashboard-main .copy-value-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.dashboard-main .copy-value-button:hover {
  border-color: #9eb7e7;
  color: var(--primary-color);
}

.dashboard-main .technical-details {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.dashboard-main .technical-details summary {
  min-height: 48px;
  padding: 0.8rem 1rem;
  color: #526179;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-main .technical-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem 1rem;
  color: #526179;
  font-size: 0.84rem;
}

.dashboard-main .technical-detail-row strong {
  color: var(--dashboard-ink);
  overflow-wrap: anywhere;
}

.dashboard-main .copy-feedback,
.dashboard-main .session-refresh-feedback {
  min-height: 1.1rem;
  color: #087d5a;
  font-size: 0.78rem;
  font-weight: 650;
}

.dashboard-main .copy-feedback.is-error,
.dashboard-main .session-refresh-feedback.is-error {
  color: #b91c1c;
}

.dashboard-main .connection-status-card {
  --connection-accent: #0cad7a;
  --connection-action: #087456;
  --connection-heading: #076748;
  --connection-copy: #087456;
  --connection-bg-start: #edfff8;
  --connection-bg-end: #dff9ee;
  justify-content: center;
  border-color: #a8edd2;
  background: linear-gradient(135deg, var(--connection-bg-start), var(--connection-bg-end));
}

.dashboard-main .connection-status-card--vip {
  --connection-accent: #4f62e8;
  --connection-action: #4053c7;
  --connection-heading: #273a9a;
  --connection-copy: #4053a7;
  --connection-bg-start: #f0f3ff;
  --connection-bg-end: #e5eaff;
  border-color: #c8d1ff;
}

.dashboard-main .connection-status-card--expired,
.dashboard-main .connection-status-card--inactive {
  --connection-accent: #e04848;
  --connection-action: #b72f2f;
  --connection-heading: #991b1b;
  --connection-copy: #b12b2b;
  --connection-bg-start: #fff6f6;
  --connection-bg-end: #feecec;
  border-color: #fecaca;
}

.dashboard-main .connection-status-card--archive {
  --connection-accent: #d88708;
  --connection-action: #8a5207;
  --connection-heading: #8a5207;
  --connection-copy: #9a610d;
  --connection-bg-start: #fffbeb;
  --connection-bg-end: #fff4d6;
  border-color: #f8d88a;
}

.dashboard-main .connection-status-card--unknown {
  --connection-accent: #64748b;
  --connection-action: #526179;
  --connection-heading: #334155;
  --connection-copy: #526179;
  --connection-bg-start: #f8fafc;
  --connection-bg-end: #eef2f7;
  border-color: #d8e0e9;
}

.dashboard-main .connection-status-card .status-indicator {
  width: 92px;
  height: 92px;
  margin: 0 0 1.4rem;
}

.dashboard-main .connection-status-card .pulse-ring {
  border-color: rgba(12, 173, 122, 0.38);
}

.dashboard-main .connection-status-card .pulse-core {
  inset: 24px;
  background: var(--connection-accent);
  box-shadow: 0 0 24px rgba(12, 173, 122, 0.42);
}

.dashboard-main .connection-status-card--vip .pulse-ring {
  border-color: rgba(79, 98, 232, 0.38);
}

.dashboard-main .connection-status-card--vip .pulse-core {
  box-shadow: 0 0 24px rgba(79, 98, 232, 0.42);
}

.dashboard-main .connection-status-card--expired .pulse-ring,
.dashboard-main .connection-status-card--inactive .pulse-ring {
  border-color: rgba(224, 72, 72, 0.38);
}

.dashboard-main .connection-status-card--expired .pulse-core,
.dashboard-main .connection-status-card--inactive .pulse-core {
  box-shadow: 0 0 24px rgba(224, 72, 72, 0.42);
}

.dashboard-main .connection-status-card--archive .pulse-ring {
  border-color: rgba(216, 135, 8, 0.38);
}

.dashboard-main .connection-status-card--archive .pulse-core {
  box-shadow: 0 0 24px rgba(216, 135, 8, 0.42);
}

.dashboard-main .connection-status-card--unknown .pulse-ring {
  border-color: rgba(100, 116, 139, 0.38);
}

.dashboard-main .connection-status-card--unknown .pulse-core {
  box-shadow: 0 0 24px rgba(100, 116, 139, 0.42);
}

.dashboard-main .connection-status-card h2 {
  margin: 0 0 0.5rem;
  color: var(--connection-heading);
  font-size: 1.35rem;
  font-weight: 850;
}

.dashboard-main .connection-status-card > p {
  max-width: 390px;
  margin: 0 0 1.35rem;
  color: var(--connection-copy);
  font-size: 0.95rem;
  line-height: 1.55;
}

.dashboard-main .device-usage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 290px;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.dashboard-main .device-usage-item {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.dashboard-main .device-usage-item strong {
  color: var(--connection-heading);
  font-size: 1.1rem;
}

.dashboard-main .device-usage-item span {
  color: var(--connection-copy);
  font-size: 0.72rem;
}

.dashboard-main .device-usage-divider {
  width: 1px;
  height: 34px;
  margin: 0 0.85rem;
  background: rgba(100, 116, 139, 0.22);
}

.dashboard-main .connection-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: var(--connection-action);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.dashboard-main .session-refresh-feedback {
  margin-top: 0.65rem;
  color: var(--connection-copy);
}

.dashboard-main .recent-transactions-card {
  padding: 2rem;
}

.dashboard-main .recent-transactions-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-main .section-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: #5f6f86;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-main .recent-count {
  align-self: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #526179;
  font-size: 0.74rem;
  font-weight: 700;
}

.dashboard-main .transactions-list {
  display: grid;
  gap: 0.65rem;
}

.dashboard-main .transaction-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 70px;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  background: #fafbfd;
}

.dashboard-main .transaction-direction {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff0f0;
  color: #cf3f3f;
}

.dashboard-main .transaction-row.is-incoming .transaction-direction {
  background: #eaf9f3;
  color: #07956a;
}

.dashboard-main .transaction-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.dashboard-main .transaction-copy strong {
  color: var(--dashboard-ink);
  font-size: 0.9rem;
}

.dashboard-main .transaction-copy span {
  color: #596980;
  font-size: 0.76rem;
}

.dashboard-main .transaction-amount {
  color: #c93b3b;
  font-size: 0.92rem;
  white-space: nowrap;
}

.dashboard-main .transaction-row.is-incoming .transaction-amount {
  color: #07845f;
}

.dashboard-main .transaction-row.is-reversed {
  background: #f1f5f9;
}

.dashboard-main .transaction-row.is-reversed .transaction-amount {
  text-decoration: line-through;
}

.dashboard-main .transactions-empty {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px dashed #cfd8e4;
  border-radius: 16px;
  color: #596980;
}

.dashboard-main a:focus-visible,
.dashboard-main button:focus-visible,
.dashboard-main summary:focus-visible {
  outline: 3px solid #2457c5;
  outline-offset: 3px;
}

@media (max-width: 1199.98px) {
  .dashboard-main .stats-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-main .stat-card {
    min-height: 150px;
  }
}

@media (max-width: 899.98px) {
  body.dashboard-redesign-page main > .container {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .dashboard-main .info-section {
    grid-template-columns: 1fr;
  }

  .dashboard-main .user-details-card,
  .dashboard-main .connection-status-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  body.dashboard-redesign-page main {
    padding-top: 88px;
  }

  .dashboard-main .welcome-hero {
    min-height: 245px;
    padding: 2rem;
    border-radius: 24px;
    text-align: left;
  }

  .dashboard-main .welcome-content {
    max-width: calc(100% - 115px);
  }

  .dashboard-main .welcome-content h1 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .dashboard-main .welcome-content p {
    font-size: 0.94rem;
  }

  .dashboard-main .welcome-illustration {
    position: absolute;
    right: 1rem;
    bottom: 1.2rem;
  }

  .dashboard-main .wifi-animation {
    width: 112px;
    height: 112px;
  }

  .dashboard-main .wave-1 {
    width: 54px;
    height: 54px;
  }

  .dashboard-main .wave-2 {
    width: 78px;
    height: 78px;
  }

  .dashboard-main .wave-3 {
    width: 104px;
    height: 104px;
  }

  .dashboard-main .wifi-center {
    width: 54px;
    height: 54px;
  }

  .dashboard-main .wifi-center svg {
    width: 30px;
    height: 30px;
  }

  .dashboard-main .dashboard-alert {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-main .dashboard-alert-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-main .dashboard-alert-actions a,
  .dashboard-main .dashboard-alert-actions button {
    flex: 1 1 150px;
  }
}

@media (max-width: 575.98px) {
  body.dashboard-redesign-page main > .container {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  .dashboard-main .welcome-hero {
    min-height: 260px;
    margin-bottom: 1.25rem;
    padding: 1.45rem;
    border-radius: 20px;
  }

  .dashboard-main .welcome-content {
    max-width: 100%;
  }

  .dashboard-main .success-badge {
    min-height: 42px;
    margin-bottom: 1rem;
    padding: 0.5rem 0.85rem;
  }

  .dashboard-main .welcome-content h1 {
    max-width: calc(100% - 42px);
  }

  .dashboard-main .welcome-content p {
    max-width: calc(100% - 90px);
  }

  .dashboard-main .welcome-illustration {
    right: 0.45rem;
    bottom: 0.45rem;
    opacity: 0.78;
  }

  .dashboard-main .stats-cards {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-bottom: 1.35rem;
  }

  .dashboard-main .stat-card {
    min-height: 126px;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .dashboard-main .stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .dashboard-main .info-section {
    gap: 1rem;
    margin-bottom: 1.35rem;
  }

  .dashboard-main .user-details-card,
  .dashboard-main .connection-status-card,
  .dashboard-main .recent-transactions-card {
    padding: 1.25rem;
    border-radius: 19px;
  }

  .dashboard-main .detail-row {
    align-items: flex-start;
    min-height: 62px;
    flex-direction: column;
    gap: 0.35rem;
  }

  .dashboard-main .detail-value,
  .dashboard-main .detail-value-group {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .dashboard-main .technical-detail-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-main .device-usage {
    width: 100%;
    min-width: 0;
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  .dashboard-main .device-usage-divider {
    margin-right: 0.5rem;
    margin-left: 0.5rem;
  }

  .dashboard-main .recent-count {
    display: none;
  }

  .dashboard-main .transaction-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-main .transaction-amount {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-main *,
  .dashboard-main *::before,
  .dashboard-main *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dashboard-main .stat-card:hover {
    transform: none;
  }
}

/* ==================== CUSTOMER PAYMENTS ==================== */
body.payments-portal-page {
  background: #edf3f9;
}

body.payments-portal-page main {
  padding-top: 112px;
  padding-bottom: 4rem;
}

body.payments-portal-page main > .container {
  width: 100%;
  max-width: 1320px;
  padding-right: 2rem;
  padding-left: 2rem;
}

.payments-page,
.payment-history-page {
  --payments-ink: #101a31;
  --payments-muted: #687790;
  --payments-border: #dfe7f1;
  --payments-blue: #2764e7;
  --payments-blue-dark: #174bc0;
  --payments-green: #08a978;
  --payments-panel: #ffffff;
  width: 100%;
  color: var(--payments-ink);
}

.payments-page *,
.payment-history-page * {
  min-width: 0;
}

.payments-page .payments-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 3.1rem;
  text-align: center;
}

.payments-page .payments-hero h1,
.payment-history-page .payment-history-hero h1 {
  margin: 0;
  color: var(--payments-ink);
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.payments-page .payments-hero > p {
  margin: 1.15rem 0 0;
  color: var(--payments-muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.payments-page .payments-history-link {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.15rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid #a9cafc;
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.72);
  color: #1f58d7;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.payments-page .payments-history-link:hover {
  border-color: #77a7f5;
  background: #e8f2ff;
  color: #174bc0;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.11);
}

.payments-page .payment-methods {
  display: grid;
  max-width: 1040px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 0 auto;
}

.payments-page .payment-method-card {
  position: relative;
  display: flex;
  min-height: 540px;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: 3rem 2.4rem 2.35rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: var(--payments-panel);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.09), 0 3px 8px rgba(15, 23, 42, 0.05);
}

.payments-page .payment-method-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2764e7, #12868d);
  content: '';
}

.payments-page .payment-method-card:nth-child(2)::before {
  background: linear-gradient(90deg, #0bb47e, #058b75);
}

.payments-page .payment-method-badge {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border: 1px solid #d6deea;
  border-radius: 999px;
  background: #f3f6fa;
  color: #6a778a;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.payments-page .payment-method-icon {
  display: flex;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0.5rem 0 1.65rem;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: 0 15px 28px rgba(37, 99, 235, 0.2);
}

.payments-page .payment-method-icon--bank {
  background: linear-gradient(145deg, #2469eb, #147d82);
}

.payments-page .payment-method-icon--provider {
  background: linear-gradient(145deg, #0cc084, #06956d);
  box-shadow: 0 15px 28px rgba(5, 150, 105, 0.2);
}

.payments-page .payment-method-copy {
  text-align: center;
}

.payments-page .payment-method-copy h2 {
  margin: 0;
  color: var(--payments-ink);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.payments-page .payment-method-copy p {
  min-height: 52px;
  margin: 0.7rem 0 0;
  color: var(--payments-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.payments-page .payment-card-control {
  margin-top: 1.75rem;
}

.payments-page .payment-card-control label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--payments-ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.payments-page .payment-amount-field {
  display: flex;
  min-height: 64px;
  overflow: hidden;
  border: 1px solid #d7e0ec;
  border-radius: 16px;
  background: #f5f7fa;
}

.payments-page .payment-amount-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: #f8fafc;
  color: #8b98aa;
  padding: 0 1.25rem;
  font: inherit;
  font-size: 1.18rem;
  font-weight: 720;
  opacity: 1;
  -webkit-text-fill-color: #8b98aa;
}

.payments-page .payment-amount-field > span {
  display: flex;
  min-width: 84px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e1e7ef;
  color: #7a8799;
  font-size: 0.95rem;
  font-weight: 750;
}

.payments-page .payment-card-control small {
  display: block;
  min-height: 36px;
  margin-top: 0.55rem;
  color: #7c899a;
  font-size: 0.78rem;
  line-height: 1.45;
}

.payments-page .payment-provider-info {
  display: flex;
  min-height: 93px;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.05rem;
  border: 1px solid #cdece2;
  border-radius: 16px;
  background: #f0fbf7;
  color: #26735d;
  font-size: 0.86rem;
  line-height: 1.5;
}

.payments-page .payment-provider-info svg {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  color: #07966d;
}

.payments-page .payment-method-card--unavailable .payment-provider-info {
  border-color: #dde4ec;
  background: #f5f7fa;
  color: #6d7a8c;
}

.payments-page .payment-method-card--unavailable .payment-provider-info svg {
  color: #7d8999;
}

.payments-page .payment-method-action {
  display: inline-flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: auto;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(110deg, #2764e7, #12868d);
  color: #ffffff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 780;
  text-decoration: none;
  box-shadow: 0 13px 25px rgba(37, 99, 235, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.payments-page .payment-method-card:nth-child(2) .payment-method-action:not(:disabled) {
  background: linear-gradient(110deg, #2764e7, #078d79);
}

.payments-page .payment-method-action:hover:not(:disabled) {
  color: #ffffff;
  filter: saturate(1.12) brightness(0.98);
  transform: translateY(-2px);
  box-shadow: 0 17px 30px rgba(37, 99, 235, 0.24);
}

.payments-page .payment-method-action:disabled {
  background: #dfe5ed;
  color: #8a96a7;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

/* Payment history */
.payment-history-page {
  max-width: 1240px;
  margin: 0 auto;
}

.payment-history-page .payment-history-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
  padding: 2.4rem 2.65rem;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 91% 13%, rgba(79, 125, 243, 0.18), transparent 29%),
    linear-gradient(135deg, #101a2f, #1d2c47);
  box-shadow: 0 17px 34px rgba(15, 23, 42, 0.14);
}

.payment-history-page .payment-history-eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  color: #91b1ff;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.payment-history-page .payment-history-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.payment-history-page .payment-history-hero p {
  margin: 0.75rem 0 0;
  color: #b9c4d6;
  font-size: 1rem;
  line-height: 1.55;
}

.payment-history-page .payment-history-primary-action {
  display: inline-flex;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: #ffffff;
  color: #2058ce;
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.payment-history-page .payment-history-primary-action:hover {
  background: #eff5ff;
  color: #174bc0;
  transform: translateY(-2px);
}

.payment-history-page .wallet-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.45rem;
}

.payment-history-page .wallet-summary-card {
  display: flex;
  min-height: 132px;
  align-items: center;
  gap: 1rem;
  padding: 1.55rem 1.75rem;
  border: 1px solid var(--payments-border);
  border-radius: 21px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.055);
}

.payment-history-page .wallet-summary-icon {
  display: flex;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: #eaf1ff;
  color: #2764e7;
}

.payment-history-page .wallet-summary-card--bonus .wallet-summary-icon {
  background: #e6f8f1;
  color: #07966d;
}

.payment-history-page .wallet-summary-card span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--payments-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.payment-history-page .wallet-summary-card strong {
  display: block;
  color: var(--payments-ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.payment-history-page .wallet-summary-card strong small {
  color: #758297;
  font-size: 0.72em;
  font-weight: 720;
}

.payment-history-page .payment-history-panel {
  overflow: hidden;
  border: 1px solid var(--payments-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 13px 30px rgba(15, 23, 42, 0.065);
}

.payment-history-page .payment-history-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 1.8rem 1.15rem;
}

.payment-history-page .payment-history-panel-header h2 {
  margin: 0;
  color: var(--payments-ink);
  font-size: 1.32rem;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.payment-history-page .payment-history-panel-header p {
  margin: 0.28rem 0 0;
  color: var(--payments-muted);
  font-size: 0.82rem;
}

.payment-history-page .payment-history-filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  align-items: end;
  gap: 0.85rem;
  margin: 0 1.8rem 1.4rem;
  padding: 1rem;
  border: 1px solid #e5ebf3;
  border-radius: 16px;
  background: #f7f9fc;
}

.payment-history-page .payment-filter-field label {
  display: block;
  margin-bottom: 0.42rem;
  color: #43516a;
  font-size: 0.77rem;
  font-weight: 720;
}

.payment-history-page .payment-filter-select {
  width: 100%;
  min-height: 45px;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  border: 1px solid #d8e1ec;
  border-radius: 11px;
  background-color: #ffffff;
  color: var(--payments-ink);
  font: inherit;
  font-size: 0.88rem;
}

.payment-history-page .payment-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.payment-history-page .payment-filter-submit,
.payment-history-page .payment-filter-reset {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 11px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.payment-history-page .payment-filter-submit {
  border: 1px solid var(--payments-blue);
  background: var(--payments-blue);
  color: #ffffff;
  cursor: pointer;
}

.payment-history-page .payment-filter-submit:hover {
  border-color: var(--payments-blue-dark);
  background: var(--payments-blue-dark);
}

.payment-history-page .payment-filter-reset {
  border: 1px solid #d6deea;
  background: #ffffff;
  color: #4e5e76;
}

.payment-history-page .payment-filter-reset:hover {
  border-color: #b8c5d6;
  background: #f1f5f9;
  color: var(--payments-ink);
}

.payment-history-page .payment-history-table-wrap {
  overflow-x: auto;
  border-top: 1px solid #e8edf4;
}

.payment-history-page .payment-history-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

.payment-history-page .payment-history-table th,
.payment-history-page .payment-history-table td {
  padding: 1rem 0.9rem;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: middle;
}

.payment-history-page .payment-history-table th:first-child,
.payment-history-page .payment-history-table td:first-child {
  padding-left: 1.8rem;
}

.payment-history-page .payment-history-table th:last-child,
.payment-history-page .payment-history-table td:last-child {
  padding-right: 1.8rem;
}

.payment-history-page .payment-history-table th {
  background: #fafbfd;
  color: #77849a;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.payment-history-page .payment-history-table td {
  color: #394861;
  font-size: 0.84rem;
}

.payment-history-page .payment-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.payment-history-page .payment-history-table tbody tr {
  transition: background 0.16s ease;
}

.payment-history-page .payment-history-table tbody tr:hover {
  background: #fbfcfe;
}

.payment-history-page .payment-history-table tbody tr.is-reversed {
  background: #f8fafc;
}

.payment-history-page .payment-history-table time,
.payment-history-page .payment-history-balance {
  color: #66748a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.payment-history-page .payment-transaction-type {
  display: block;
  max-width: 205px;
  overflow: hidden;
  color: var(--payments-ink);
  font-size: 0.86rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-history-page .payment-transaction-direction {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.71rem;
  font-weight: 650;
}

.payment-history-page .payment-transaction-direction.is-incoming,
.payment-history-page .payment-history-amount.is-incoming {
  color: #07845f;
}

.payment-history-page .payment-transaction-direction.is-outgoing,
.payment-history-page .payment-history-amount.is-outgoing {
  color: #d34848;
}

.payment-history-page .payment-transaction-direction.is-neutral,
.payment-history-page .payment-history-amount.is-neutral {
  color: #66748a;
}

.payment-history-page .payment-wallet-badge,
.payment-history-page .payment-status-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 720;
  white-space: nowrap;
}

.payment-history-page .payment-wallet-badge--balance {
  background: #eaf1ff;
  color: #2758bd;
}

.payment-history-page .payment-wallet-badge--bonus {
  background: #e5f7f0;
  color: #087b5c;
}

.payment-history-page .payment-history-amount {
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.payment-history-page .payment-history-amount small {
  font-size: 0.74em;
  font-weight: 700;
}

.payment-history-page tr.is-reversed .payment-history-amount {
  color: #7b8798;
  text-decoration: line-through;
}

.payment-history-page .payment-status-badge.is-posted {
  background: #e6f7f0;
  color: #087b5c;
}

.payment-history-page .payment-status-badge.is-reversed {
  background: #eef1f5;
  color: #667386;
}

.payment-history-page .payment-history-empty {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid #e8edf4;
  text-align: center;
}

.payment-history-page .payment-history-empty-icon {
  display: flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 22px;
  background: #edf3ff;
  color: #3d6fd8;
}

.payment-history-page .payment-history-empty h3 {
  margin: 0;
  color: var(--payments-ink);
  font-size: 1.05rem;
  font-weight: 750;
}

.payment-history-page .payment-history-empty p {
  margin: 0.45rem 0 0;
  color: var(--payments-muted);
  font-size: 0.88rem;
}

.payment-history-page .payment-history-pagination {
  display: flex;
  justify-content: center;
  padding: 1.4rem 1rem;
  border-top: 1px solid #edf1f5;
}

.payment-history-page .payment-history-pagination .pagination {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
}

.payment-history-page .payment-history-pagination .page-link {
  display: flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  color: #4a5a72;
  font-size: 0.8rem;
  font-weight: 680;
  box-shadow: none;
}

.payment-history-page .payment-history-pagination .page-item.active .page-link {
  border-color: var(--payments-blue);
  background: var(--payments-blue);
  color: #ffffff;
}

.payment-history-page .payment-history-pagination .page-item.disabled .page-link {
  background: #f5f7fa;
  color: #a3adba;
}

.payments-page a:focus-visible,
.payments-page button:focus-visible,
.payments-page input:focus-visible,
.payment-history-page a:focus-visible,
.payment-history-page button:focus-visible,
.payment-history-page select:focus-visible {
  outline: 3px solid #245fd1;
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .payments-page .payment-methods {
    gap: 1.3rem;
  }

  .payments-page .payment-method-card {
    min-height: 520px;
    padding-right: 1.7rem;
    padding-left: 1.7rem;
  }

  .payment-history-page .payment-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-history-page .payment-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  body.payments-portal-page main {
    padding-top: 96px;
    padding-bottom: 2.5rem;
  }

  body.payments-portal-page main > .container {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .payments-page .payments-hero {
    margin-bottom: 2rem;
  }

  .payments-page .payments-hero > p {
    margin-top: 0.8rem;
  }

  .payments-page .payments-history-link {
    min-height: 52px;
    margin-top: 1.4rem;
    border-radius: 14px;
  }

  .payments-page .payment-methods {
    max-width: 560px;
    grid-template-columns: 1fr;
  }

  .payments-page .payment-method-card {
    min-height: 500px;
  }

  .payment-history-page .payment-history-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.35rem;
    padding: 1.8rem;
    border-radius: 22px;
  }

  .payment-history-page .payment-history-primary-action {
    align-self: stretch;
  }

  .payment-history-page .wallet-summary {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .payment-history-page .wallet-summary-card {
    min-height: 112px;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .payment-history-page .payment-history-panel {
    border-radius: 20px;
  }

  .payment-history-page .payment-history-panel-header {
    padding: 1.4rem 1.2rem 1rem;
  }

  .payment-history-page .payment-history-filters {
    grid-template-columns: 1fr;
    margin: 0 1rem 1.15rem;
  }

  .payment-history-page .payment-filter-actions {
    grid-column: auto;
  }

  .payment-history-page .payment-filter-submit,
  .payment-history-page .payment-filter-reset {
    flex: 1 1 0;
  }

  .payment-history-page .payment-history-table-wrap {
    overflow: visible;
    padding: 0 1rem 1rem;
    border-top: 1px solid #e8edf4;
  }

  .payment-history-page .payment-history-table,
  .payment-history-page .payment-history-table tbody,
  .payment-history-page .payment-history-table tr,
  .payment-history-page .payment-history-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .payment-history-page .payment-history-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .payment-history-page .payment-history-table tbody {
    padding-top: 1rem;
  }

  .payment-history-page .payment-history-table tbody tr {
    margin-bottom: 0.85rem;
    padding: 0.35rem 1rem;
    border: 1px solid #e2e9f2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 17px rgba(15, 23, 42, 0.045);
  }

  .payment-history-page .payment-history-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .payment-history-page .payment-history-table tbody tr.is-reversed {
    background: #f7f9fc;
  }

  .payment-history-page .payment-history-table td,
  .payment-history-page .payment-history-table td:first-child,
  .payment-history-page .payment-history-table td:last-child {
    display: grid;
    grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #edf1f5;
    text-align: right;
  }

  .payment-history-page .payment-history-table td:last-child {
    border-bottom: 0;
  }

  .payment-history-page .payment-history-table td::before {
    color: #7b8799;
    content: attr(data-label);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-align: left;
    text-transform: uppercase;
  }

  .payment-history-page .payment-history-table td > * {
    justify-self: end;
  }

  .payment-history-page .payment-transaction-type {
    max-width: none;
    text-align: right;
    white-space: normal;
  }

  .payment-history-page .payment-transaction-direction {
    text-align: right;
  }

  .payment-history-page .payment-history-empty {
    min-height: 270px;
  }
}

@media (max-width: 479.98px) {
  body.payments-portal-page main > .container {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .payments-page .payments-hero h1 {
    font-size: 2.35rem;
  }

  .payments-page .payments-history-link {
    width: 100%;
  }

  .payments-page .payment-method-card {
    min-height: 490px;
    padding: 2.65rem 1.25rem 1.35rem;
    border-radius: 21px;
  }

  .payments-page .payment-method-icon {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    margin-bottom: 1.2rem;
    border-radius: 22px;
  }

  .payments-page .payment-method-copy p {
    min-height: 0;
  }

  .payment-history-page .payment-history-hero {
    padding: 1.45rem;
  }

  .payment-history-page .wallet-summary-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .payment-history-page .payment-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-history-page .payment-filter-submit,
  .payment-history-page .payment-filter-reset {
    width: 100%;
  }

  .payment-history-page .payment-history-table td,
  .payment-history-page .payment-history-table td:first-child,
  .payment-history-page .payment-history-table td:last-child {
    grid-template-columns: 95px minmax(0, 1fr);
  }

  .payment-history-page .payment-history-pagination .prev .page-link,
  .payment-history-page .payment-history-pagination .next .page-link {
    font-size: 0;
  }

  .payment-history-page .payment-history-pagination .prev .page-link::before {
    content: '‹';
    font-size: 1rem;
  }

  .payment-history-page .payment-history-pagination .next .page-link::before {
    content: '›';
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .payments-page .payments-history-link,
  .payments-page .payment-method-action,
  .payment-history-page .payment-history-primary-action,
  .payment-history-page .payment-history-table tbody tr {
    transition: none;
  }

  .payments-page .payments-history-link:hover,
  .payments-page .payment-method-action:hover:not(:disabled),
  .payment-history-page .payment-history-primary-action:hover {
    transform: none;
  }
}
