.modern-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-navbar.scrolled {
  background: rgba(15, 23, 42, 0);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.nav-container {
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
}

.nav-brand {
  flex: 0 0 auto;
  margin-right: auto;
}

.nav-brand a {
  text-decoration: none;
  cursor: pointer;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: white;
  letter-spacing: -0.5px;
  transition: opacity 0.2s ease;
}

.nav-brand a:hover .brand-name {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: white;
  background: transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

.nav-cta:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-menu span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.hamburger-menu.active span:nth-child(1),
.hamburger-menu.active span:nth-child(2),
.hamburger-menu.active span:nth-child(3) {
  display: none;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  max-width: 80vw;
  height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  z-index: 999;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-header h2 {
  color: white;
  font-size: 20px;
  margin: 0;
  font-weight: 700;
}

.close-menu {
  background: transparent;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-links {
  padding: 20px 0;
}

.mobile-menu-link {
  display: block;
  padding: 16px 20px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease;
  border-left: 4px solid transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: white;
}

.desktop-only {
  display: flex;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: white;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.hero {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-title {
  font-size: 6.0rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  color: white;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 500;
}

.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
}

.add-client-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px; 
  padding: 40px; 
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.add-client-section h2 {
  margin: 0 0 24px 0;  
  font-size: 28px;  
  font-weight: 700;
}

.share-code-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.share-code-input {
  padding: 16px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  width: 220px;
  transition: all 0.2s ease;
}

.share-code-input:focus {
  outline: none;
  border-color: #007AFF;
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

.add-client-btn {
  padding: 16px 32px;
  background: #007AFF;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.add-client-btn:hover {
  background: #0056CC;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}

.add-client-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .add-client-section {
    padding: 30px 24px;
  }
  
  .add-client-section h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .share-code-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .share-code-input {
    width: 100%;
  }
  
  .add-client-btn {
    width: 100%;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 5px;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.1;
}
.login-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: -0.5rem 0 1.5rem 0;
  text-align: center;
}

#subscription-tier {
  font-size: 22px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-label {
  font-size: 13px;
  opacity: 0.8;
  font-weight: 600;
  margin-top: 5px;
}

.clients-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.clients-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.clients-header h2 {
  margin: 0;
  font-size: 24px;
}

.refresh-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.clients-container {
  display: grid;
  gap: 20px;
}

.client-stamina-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.client-stamina-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 14px;
  border-radius: 20px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-text {
  font-size: 13px;
  font-weight: 600;
}

.stamina-display {
  margin-top: 15px;
}

.stamina-container {
  width: 100%;
  margin-bottom: 15px;
}

.stamina-bar-wrapper {
  position: relative;
  width: 100%;
  height: 40px;
}

.stamina-bar {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(142, 142, 147, 0.4), rgba(142, 142, 147, 0.6));
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fill-bar {
  height: 100%;
  border-radius: 20px;
  position: relative;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 20%;
}

.highlight-shine {
  position: absolute;
  top: -45%;
  right: 20%;
  width: 30%;
  height: 30%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  opacity: 0.8;
}

.percentage-text {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: baseline;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 20;
  pointer-events: none;
}

.percentage-number {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.percentage-symbol {
  font-size: 16px;
  font-weight: 600;
  margin-left: 1px;
}

.details-toggle {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  transition: all 0.2s ease;
}

.details-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.details-toggle .chevron {
  transition: transform 0.3s ease;
}

.client-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
}

.client-details.expanded {
  max-height: 300px;
  opacity: 1;
  margin-top: 15px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-of-type {
  border-bottom: none;
  padding-bottom: 15px;
}

.detail-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.client-details .remove-btn {
  width: 100%;
  margin-top: 10px;
}

.remove-btn {
  padding: 8px 16px;
  background: rgba(255, 59, 48, 0.2);
  color: #FF3B30;
  border: 1px solid rgba(255, 59, 48, 0.4);
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.remove-btn:hover {
  background: rgba(255, 59, 48, 0.3);
  border-color: rgba(255, 59, 48, 0.6);
}

.no-clients {
  text-align: center;
  padding: 60px 20px;
}

.no-clients h3 {
  margin: 0 0 15px 0;
  font-size: 22px;
  color: white;
}

.no-clients p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

#professional-auth,
#sign-in-form,
#professional-login {
  max-width: 450px;
  margin: 0 auto;
  padding: 0 20px;
}

.auth-card,
.login-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card h2,
.login-card h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  text-align: center;
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0 0 2rem 0;
  text-align: center;
  line-height: 1.5;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-btn {
  padding: 16px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.primary-btn {
  background: #007AFF;
  color: white;
}

.primary-btn:hover {
  background: #0056CC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.back-link {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form input {
  padding: 14px 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: all 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #007AFF;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.login-btn {
  padding: 14px 28px;
  background: #007AFF;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: #0056CC;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

@media (max-width: 1024px) {
  .hamburger-menu {
    display: flex;
  }

  .desktop-only {
    display: none !important;
  }

  .modern-navbar {
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.95);
  }

  .nav-container {
    padding: 0 20px;
    gap: 15px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-cta {
    font-size: 13px;
    padding: 10px 16px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .subscription-banner {
    flex-direction: column;
    text-align: center;
  }

  .subscribe-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

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

  .share-code-input {
    max-width: 100%;
  }

  .add-client-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .modern-navbar {
    padding: 12px 0;
  }

  .nav-container {
    padding: 0 15px;
  }

  .brand-name {
    font-size: 16px;
  }

  .nav-cta {
    font-size: 11px;
    padding: 8px 12px;
  }

  .hero {
    padding-top: 90px;
  }

  .hero-title {
    font-size: 28px;
  }

  .add-client-section,
  .clients-section {
    padding: 20px;
  }

  .subscription-banner {
    padding: 20px;
  }

  .login-card {
    padding: 30px 20px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.payment-success-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  z-index: 9999;
  animation: slideDown 0.3s ease-out;
  max-width: 90%;
}

.success-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.success-icon {
  font-size: 24px;
}

.success-text {
  font-size: 16px;
  font-weight: 600;
}

.close-banner {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.close-banner:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.payment-success-banner.closing {
  animation: slideDown 0.3s ease-out reverse;
}