/* 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;
}

/* ---- Auth page: compact form fields ---- */
.right-panel .form-label,
.right-panel label.col-form-label,
.right-panel .field-phoneloginform-phone label,
.right-panel .field-phoneloginform-fin label,
.right-panel .field-loginform-phone label,
.right-panel .field-loginform-password label,
.right-panel label {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  margin-bottom: 0.35rem !important;
  letter-spacing: 0.01em;
}

.right-panel .form-control,
.right-panel input.form-control,
.right-panel textarea.form-control {
  font-size: 0.875rem !important;
  height: 42px !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 8px !important;
  border: 1.5px solid #e5e7eb !important;
  color: #1e293b !important;
  transition:
    border-color 0.15s,
    box-shadow 0.15s !important;
}

.right-panel .form-control:focus {
  border-color: #4f7df3 !important;
  box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.1) !important;
  outline: none !important;
}

/* Phone input flag area compact */
.right-panel .iti {
  width: 100% !important;
}

.right-panel .iti__flag-container {
  height: 42px !important;
}

.right-panel .iti__selected-dial-code {
  font-size: 0.85rem !important;
}

/* Checkbox label smaller */
.right-panel .form-check-label {
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
}

.right-panel .form-check-input {
  margin-top: 0.1em;
}

/* Tab links smaller */
.right-panel .login-tabs .tab-link {
  font-size: 0.85rem !important;
}

/* Submit button compact */
.right-panel .btn-primary-custom.sm-btn {
  height: 42px !important;
  font-size: 0.9rem !important;
  border-radius: 8px !important;
}

/* Phone input inner padding fix */
.iti--allow-dropdown input,
.iti--allow-dropdown input[type='text'],
.iti--allow-dropdown input[type='tel'],
.iti--separate-dial-code input,
.iti--separate-dial-code input[type='text'],
.iti--separate-dial-code input[type='tel'] {
  padding-right: 6px !important;
  padding-left: 95px !important;
  margin-left: 0;
}

/* ==================== NeoFiber HEADER ==================== */
.NeoFiber-header {
  background: #0f1120;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar-custom {
  padding: 0;
}

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

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

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

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

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-accent {
  color: var(--primary-light);
}

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

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

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

.nav-links .nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 7px;
  transition:
    color 0.15s,
    background 0.15s;
  position: relative;
}

.nav-links .nav-link svg {
  opacity: 0.5;
  transition: opacity 0.15s;
}

.nav-links .nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links .nav-link:hover svg {
  opacity: 0.8;
}

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

.nav-links .nav-link.active svg {
  opacity: 1;
}

/* Active indicator underline */
.nav-links .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.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.06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-menu-dropdown {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.75rem 0.38rem 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  cursor: pointer;
  color: white;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.user-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.user-phone {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
}
.dropdown-arrow {
  color: rgba(255, 255, 255, 0.3);
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 175px;
  background: #1a1f36;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.user-dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 7px;
  transition:
    background 0.12s,
    color 0.12s;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}
.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}
.dropdown-form {
  margin: 0;
}

.btn-nav-logout {
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0.4rem;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f1120;
    flex-direction: column;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .user-info {
    display: none;
  }
}

/* ==================== NeoFiber FOOTER ==================== */
.NeoFiber-footer {
  background: #0f1120;
  color: rgba(255, 255, 255, 0.45);
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

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

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

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

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand .brand-text {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

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

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

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  font-size: 0.83rem;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.38);
}

.footer-contact li svg {
  opacity: 0.35;
  flex-shrink: 0;
}

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

.footer-contact a:hover {
  color: rgba(255, 255, 255, 0.8);
}

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

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

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.22);
  margin: 0;
}

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

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.28);
  transition:
    background 0.15s,
    color 0.15s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
}

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

.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: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 992px) {
  .package-card {
    transition:
      box-shadow 0.3s ease,
      transform 0.3s ease;
  }
  .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: 5px;
  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(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

@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--bank {
  width: 100%;
  font: inherit;
}

.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-amount-field {
  width: 100%;
  margin: 0.25rem 0 1rem;
  text-align: left;
}

.payment-amount-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}

.payment-amount-control {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.payment-amount-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
}

.payment-amount-control input:focus {
  box-shadow: none;
}

.payment-amount-control span {
  flex: 0 0 auto;
  padding: 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.payment-amount-field.has-error .payment-amount-control {
  border-color: #ef4444;
  background: #fff7f7;
}

.payment-error {
  display: block;
  margin-top: 0.45rem;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
}

.payment-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.payment-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.24);
}

.payment-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.payment-config-note {
  margin-top: 0.75rem;
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 700;
}

.payment-history-cta,
.payment-history-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #bfdbfe;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.payment-history-cta {
  margin-top: 1rem;
}

.payment-history-cta:hover,
.payment-history-back:hover {
  transform: translateY(-1px);
  background: #dbeafe;
  color: #1e40af;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

.payment-history-page {
  max-width: none;
  width: 100%;
}

/* ── Toolbar ── */
.ph-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, rgba(248,250,252,0.9) 0%, rgba(241,245,249,0.85) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(226,232,240,0.7);
  border-radius: 14px;
}

.ph-toolbar__count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.ph-toolbar__count svg {
  color: #2563eb;
  opacity: 0.7;
}

.ph-toolbar__count strong {
  color: var(--text-dark);
  font-weight: 800;
}

/* ── Card list ── */
.payment-history-list {
  display: block;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 560px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.45rem 0.7rem 0.45rem 0;
  scrollbar-color: #94a3b8 #f1f5f9;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.payment-history-list::-webkit-scrollbar {
  width: 9px;
}

.payment-history-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.payment-history-list::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border: 2px solid #f1f5f9;
  border-radius: 999px;
}

.payment-history-list::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ── Card ── */
.payment-history-card {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}

.payment-history-card + .payment-history-card {
  margin-top: 0.6rem;
}

.payment-history-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.payment-history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  border-color: transparent;
}

.payment-history-card--in {
  border-left: 4px solid #10b981;
}

.payment-history-card--in::before {
  background: linear-gradient(135deg, rgba(16,185,129,0.03) 0%, transparent 70%);
}

.payment-history-card--in:hover::before {
  opacity: 1;
}

.payment-history-card--out {
  border-left: 4px solid #ef4444;
}

.payment-history-card--out::before {
  background: linear-gradient(135deg, rgba(239,68,68,0.03) 0%, transparent 70%);
}

.payment-history-card--out:hover::before {
  opacity: 1;
}

/* ── Icon ── */
.payment-history-card__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.payment-history-card:hover .payment-history-card__icon {
  transform: scale(1.08);
}

.payment-history-card--in .payment-history-card__icon {
  color: #047857;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  box-shadow: 0 4px 12px rgba(16,185,129,0.12);
}

.payment-history-card--out .payment-history-card__icon {
  color: #b91c1c;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  box-shadow: 0 4px 12px rgba(239,68,68,0.1);
}

/* ── Body ── */
.payment-history-card__body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.payment-history-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.payment-history-card__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.payment-history-card__type {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.payment-history-card__amount {
  color: var(--text-dark);
  font-size: 1.02rem;
  font-weight: 800;
  white-space: nowrap;
}

.payment-history-card--in .payment-history-card__amount {
  color: #047857;
}

.payment-history-card--out .payment-history-card__amount {
  color: #b91c1c;
}

.payment-history-card__time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  background: #f1f5f9;
  border-radius: 8px;
}

.payment-history-card__time svg {
  opacity: 0.6;
}

/* ── Meta row ── */
.payment-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
}

.payment-history-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.payment-history-meta__item svg {
  opacity: 0.55;
  flex-shrink: 0;
}

.payment-history-meta__item strong {
  color: var(--text-dark);
  font-weight: 800;
}

.payment-history-meta__item--tx {
  width: 100%;
}

.payment-history-meta__item--tx strong {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: #64748b;
}

/* ── Note ── */
.payment-history-note {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.76rem;
  line-height: 1.5;
}

/* ── Empty state ── */
.payment-history-empty {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.payment-history-empty__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  color: #64748b;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-history-empty h3 {
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.payment-history-empty p {
  color: var(--text-muted);
  margin: 0;
}

/* ── Load more button ── */
.ph-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.ph-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  min-width: 180px;
  padding: 0.6rem 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}

.ph-load-more-btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 8px 20px rgba(37,99,235,0.1);
  transform: translateY(-1px);
}

.ph-load-more-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.ph-load-more-btn:disabled {
  cursor: not-allowed;
}

.ph-load-more-btn__icon {
  transition: transform 0.3s ease;
}

.ph-load-more-btn:hover .ph-load-more-btn__icon {
  transform: translateY(2px);
}

.ph-load-more-btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: ph-spin 0.7s linear infinite;
}

.ph-load-more-btn.is-loading .ph-load-more-btn__icon {
  display: none;
}

.ph-load-more-btn.is-loading .ph-load-more-btn__spinner {
  display: block;
}

.ph-load-more-btn.is-loading .ph-load-more-btn__text {
  color: var(--text-muted);
}

/* ── Status bar ── */
.payment-history-loading {
  min-height: 36px;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.payment-history-loading::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.payment-history-loading.is-loading::before {
  width: 15px;
  height: 15px;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  background: transparent;
  box-shadow: none;
  animation: ph-spin 0.8s linear infinite;
}

.payment-history-loading.is-done {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  color: #047857;
}

.payment-history-loading.is-done::before {
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}

.payment-history-loading.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.payment-history-loading.is-error::before {
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}

@keyframes ph-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1200px) {
  .payment-history-list {
    height: 620px;
  }
}

@media (max-width: 991px) {
  .payment-history-list {
    height: 520px;
  }
}

/* ── Responsive ── */
@media (max-width: 576px) {
  .ph-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ph-toolbar__refresh {
    width: 100%;
    justify-content: center;
  }

  .payment-history-card {
    flex-direction: row;
    gap: 0.65rem;
    padding: 0.72rem 0.75rem;
    border-radius: 12px;
  }

  .payment-history-list {
    height: 430px;
    padding-right: 0.35rem;
  }

  .payment-history-card__icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
  }

  .payment-history-card__icon svg {
    width: 17px;
    height: 17px;
  }

  .payment-history-card__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .payment-history-card__time {
    align-self: flex-start;
  }

  .payment-history-meta {
    gap: 0.28rem 0.5rem;
  }

  .payment-history-meta__item {
    font-size: 0.68rem;
  }

  .payment-history-meta__item--tx strong {
    word-break: break-all;
  }
}

@media (max-width: 380px) {
  .payment-history-list {
    height: 380px;
  }
}

/* Coming soon payment card */
.payment-card--soon {
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
  overflow: hidden;
}

.payment-card--soon:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.payment-card--soon::after {
  content: 'Tezliklə';
  position: absolute;
  top: 14px;
  right: -22px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 30px;
  transform: rotate(35deg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.payment-link--soon {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
}

.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;
}

.dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 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(4, 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;
}

@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;
}

.connection-status-card.inactive {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
}

.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.2rem;
  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: var(--white);
}

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

.form-container {
  width: 100%;
  max-width: 380px;
}

.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;
}

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

/* OTP Boxes */
.otp-boxes {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.otp-box {
  width: 56px;
  height: 56px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  font-size: 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;
}

.resend-link a.is-disabled,
.resend-link a.is-disabled:hover {
  color: var(--text-light);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

/* 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;
}

/* 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;
}

/* ==================== 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);
}

@media (max-width: 992px) {
  .NeoFiber-header .nav-container {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0;
    padding: 0.75rem 1rem;
  }

  .NeoFiber-header .mobile-menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
  }

  .NeoFiber-header .nav-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    min-width: 0;
  }

  .NeoFiber-header .brand-text {
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .NeoFiber-header .user-menu-dropdown {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .NeoFiber-header .user-menu-toggle {
    width: 40px;
    height: 40px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 50%;
  }

  .NeoFiber-header .user-menu-toggle .user-phone,
  .NeoFiber-header .user-menu-toggle .dropdown-arrow {
    display: none;
  }

  .NeoFiber-header .user-menu-toggle .user-avatar {
    width: 28px;
    height: 28px;
  }

  .NeoFiber-header .user-menu-toggle .user-avatar svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 993px) {
  .NeoFiber-header .user-menu-toggle {
    min-height: 40px;
    padding: 0.5rem 0.8rem;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 8px 20px rgba(0, 0, 0, 0.12);
  }

  .NeoFiber-header .user-menu-toggle:hover,
  .NeoFiber-header .user-menu-toggle[aria-expanded='true'],
  .NeoFiber-header .user-menu-dropdown.is-open .user-menu-toggle {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .NeoFiber-header .user-menu-toggle .user-avatar {
    width: 22px;
    height: 22px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
  }

  .NeoFiber-header .user-menu-toggle:hover .user-avatar,
  .NeoFiber-header .user-menu-toggle[aria-expanded='true'] .user-avatar,
  .NeoFiber-header .user-menu-toggle:hover .dropdown-arrow,
  .NeoFiber-header .user-menu-toggle[aria-expanded='true'] .dropdown-arrow {
    color: rgba(255, 255, 255, 0.9);
  }

  .NeoFiber-header .user-menu-toggle .user-avatar svg {
    width: 18px;
    height: 18px;
  }

  .NeoFiber-header .user-menu-toggle .dropdown-arrow {
    color: rgba(255, 255, 255, 0.35);
  }
}
