body {
    font-size: 16px;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
  }
  header {
    background-color: #4CAF50;
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
  }
  header h1 {
    margin-top: 0;
    font-size: 1.2rem;
  }
  .search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .search-icon {
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    color: white;
  }
  #search-bar {
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: white;
  }
  #search-bar.active {
    display: block;
    width: 200px;
    opacity: 1;
  }
  nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  nav ul li {
    display: inline;
  }
  nav ul li a {
    color: white;
    text-decoration: none;
  }
  main {
    padding: 20px;
  }
  .login-container {
    max-width: 250px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-align: center;
    transform: perspective(1000px) rotateX(10deg) translateZ(20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .login-container:hover {
    transform: perspective(1000px) rotateX(0deg) translateZ(30px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  .login-container h2 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #4CAF50;
  }
  .login-container label {
    display: block;
    margin-bottom: 5px;
  }
  .login-container input {
    width: 100%;
    padding: 6px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
  }
  .login-container button {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 11px;
    width: 100%;
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    box-shadow:
      0 2px 2px rgba(0,0,0,0.10),
      0 4px 10px rgba(46,125,50,0.38),
      0 8px 18px rgba(46,125,50,0.20),
      inset 0 1px 0 rgba(255,255,255,0.28),
      inset 0 -2px 0 rgba(0,0,0,0.20);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .login-container button:hover {
    transform: translateY(-3px);
    box-shadow:
      0 4px 4px rgba(0,0,0,0.10),
      0 8px 18px rgba(46,125,50,0.46),
      0 16px 28px rgba(46,125,50,0.26),
      inset 0 1px 0 rgba(255,255,255,0.32),
      inset 0 -2px 0 rgba(0,0,0,0.20);
  }
  .login-container button:active {
    transform: translateY(1px);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.12),
      0 2px 6px rgba(46,125,50,0.28),
      inset 0 1px 0 rgba(255,255,255,0.15),
      inset 0 2px 5px rgba(0,0,0,0.22);
    transition-duration: 0.06s;
  }
  .error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
  }
  .password-container {
    position: relative;
  }
  .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 12px;
    color: #4CAF50;
  }
  section {
    margin-bottom: 20px;
  }
  h2 {
    border-bottom: none;
    padding-bottom: 5px;
  }
  #card-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: clip;
    padding: 10px 8px 14px 8px;
    width: 100%;
    box-sizing: border-box;
    perspective: 1200px;
  }

  /* ═══════════════════════════════════════════
     3D CARD — Light Mode
  ═══════════════════════════════════════════ */
  .card {
    border: none;
    border-radius: 20px;
    margin: 10px 4px;
    width: auto;
    min-width: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(0deg) translateZ(0px);
    transition: transform 0.32s cubic-bezier(0.23,1,0.32,1),
                box-shadow 0.32s cubic-bezier(0.23,1,0.32,1);

    /* Deep layered shadow — the secret to true 3D depth */
    box-shadow:
      0 1px 1px rgba(0,0,0,0.06),
      0 2px 2px rgba(0,0,0,0.06),
      0 4px 4px rgba(0,0,0,0.06),
      0 8px 8px rgba(0,0,0,0.06),
      0 16px 32px rgba(44,122,75,0.13),
      0 0 0 1px rgba(76,175,80,0.10);

    /* Glass-morphism base */
    background:
      linear-gradient(160deg,
        rgba(255,255,255,0.98) 0%,
        rgba(240,250,242,0.97) 50%,
        rgba(230,248,233,0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Iridescent top-edge highlight — simulates a physical raised edge */
  .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(76,175,80,0.6) 20%,
      rgba(165,214,167,0.9) 50%,
      rgba(76,175,80,0.6) 80%,
      transparent 100%);
    border-radius: 20px 20px 0 0;
    z-index: 2;
    pointer-events: none;
  }

  /* Glossy sheen — like light hitting a plastic card surface */
  .card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(180deg,
      rgba(255,255,255,0.55) 0%,
      rgba(255,255,255,0.08) 60%,
      transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
    z-index: 1;
  }

  /* Lift + tilt on hover */
  .card:hover {
    transform: perspective(800px) rotateX(3deg) translateY(-6px) translateZ(8px);
    box-shadow:
      0 2px 2px rgba(0,0,0,0.07),
      0 4px 4px rgba(0,0,0,0.07),
      0 8px 8px rgba(0,0,0,0.07),
      0 16px 16px rgba(0,0,0,0.07),
      0 28px 48px rgba(44,122,75,0.22),
      0 0 0 1.5px rgba(76,175,80,0.28),
      inset 0 1px 0 rgba(255,255,255,0.9);
  }

  /* Active press-down effect */
  .card:active {
    transform: perspective(800px) rotateX(1deg) translateY(-2px) translateZ(3px);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.08),
      0 4px 12px rgba(44,122,75,0.14),
      0 0 0 1px rgba(76,175,80,0.18);
    transition-duration: 0.08s;
  }

  /* Left accent bar — extruded edge illusion */
  .card-accent-bar {
    position: absolute;
    left: 0; top: 12px; bottom: 12px;
    width: 4px;
    background: linear-gradient(180deg, #66bb6a 0%, #2e7d32 100%);
    border-radius: 0 3px 3px 0;
    box-shadow: 2px 0 8px rgba(76,175,80,0.35);
    z-index: 3;
  }

  /* ── Header row ── */
  .card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 0 20px;
    position: relative;
    z-index: 2;
  }

  /* Avatar: 3D coin effect */
  .card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(145deg, #81c784 0%, #388e3c 55%, #1b5e20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    letter-spacing: -0.5px;
    box-shadow:
      0 4px 10px rgba(44,122,75,0.40),
      inset 0 2px 4px rgba(255,255,255,0.35),
      inset 0 -2px 4px rgba(0,0,0,0.20);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transform: translateZ(4px);
  }

  /* Type badge: frosted pill */
  .card-type-badge {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(76,175,80,0.12);
    color: #2e7d32;
    border: 1px solid rgba(76,175,80,0.30);
    box-shadow: 0 2px 6px rgba(76,175,80,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    transform: translateZ(2px);
  }

  /* Customer name */
  .card h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 10px 16px 0 20px;
    color: #0d1f0f;
    text-align: left;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 2;
  }

  /* Separator line with gradient fade */
  .card-divider {
    height: 1px;
    margin: 10px 16px 0 20px;
    background: linear-gradient(90deg, rgba(76,175,80,0.35), rgba(76,175,80,0.08) 80%, transparent);
    position: relative;
    z-index: 2;
  }

  /* Meta info */
  .card-meta-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px 0 20px;
    position: relative;
    z-index: 2;
  }

  .card p {
    margin: 0;
    color: #4a5e4c;
    font-size: 12px;
    line-height: 1.55;
  }
  .card p strong {
    color: #1a3a1d;
    font-weight: 600;
  }

  /* Action buttons row */
  .card-actions {
    display: flex;
    gap: 7px;
    padding: 12px 16px 16px 20px;
    position: relative;
    z-index: 2;
  }

  /* Shared button base — embossed pill style */
  .info-button,
  .card-button,
  .send-invoice-button {
    border: none;
    padding: 5px 13px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
    position: relative;
    text-transform: uppercase;
  }

  .info-button {
    background: linear-gradient(160deg, #43a047 0%, #2e7d32 100%);
    color: #fff;
    box-shadow:
      0 3px 8px rgba(46,125,50,0.38),
      inset 0 1px 0 rgba(255,255,255,0.22),
      inset 0 -1px 0 rgba(0,0,0,0.15);
  }
  .info-button:hover {
    background: linear-gradient(160deg, #4caf50 0%, #388e3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(46,125,50,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
  }
  .info-button:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(46,125,50,0.3); }

  .card-button {
    background: linear-gradient(160deg, #1976d2 0%, #0d47a1 100%);
    color: #fff;
    box-shadow:
      0 3px 8px rgba(13,71,161,0.36),
      inset 0 1px 0 rgba(255,255,255,0.20),
      inset 0 -1px 0 rgba(0,0,0,0.15);
    display: inline-block;
  }
  .card-button:hover {
    background: linear-gradient(160deg, #1e88e5 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(13,71,161,0.42), inset 0 1px 0 rgba(255,255,255,0.22);
  }
  .card-button:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(13,71,161,0.28); }

  .send-invoice-button {
    background: linear-gradient(160deg, #f57c00 0%, #bf360c 100%);
    color: #fff;
    box-shadow:
      0 3px 8px rgba(191,54,12,0.34),
      inset 0 1px 0 rgba(255,255,255,0.20),
      inset 0 -1px 0 rgba(0,0,0,0.15);
  }
  .send-invoice-button:hover {
    background: linear-gradient(160deg, #fb8c00 0%, #d84315 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(191,54,12,0.40), inset 0 1px 0 rgba(255,255,255,0.22);
  }
  .send-invoice-button:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(191,54,12,0.26); }
  .service-info-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 350px;
    width: 85%;
  }
  .service-info-modal.show {
    display: block;
  }
  .service-info-modal h4 {
    margin: 0 0 8px 0;
    color: #4CAF50;
  }
  .service-info-modal p {
    margin: 4px 0;
    font-size: 13px;
  }
  .service-info-content {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
  }
  .service-info-modal .close-info {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow:
      0 2px 8px rgba(46,125,50,0.38),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -2px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .service-info-modal .close-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(46,125,50,0.44), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .service-info-modal .close-info:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(46,125,50,0.26), inset 0 2px 5px rgba(0,0,0,0.22);
    transition-duration: 0.06s;
  }
  .settings-button {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
    box-shadow:
      0 2px 8px rgba(46,125,50,0.38),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -2px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .settings-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(46,125,50,0.44), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .settings-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(46,125,50,0.28), inset 0 2px 5px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .filter-button {
    background: linear-gradient(160deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid rgba(76,175,80,0.30);
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 10px;
    margin: 5px;
    font-weight: 600;
    box-shadow:
      0 2px 6px rgba(76,175,80,0.18),
      inset 0 1px 0 rgba(255,255,255,0.80),
      inset 0 -1px 0 rgba(0,0,0,0.06);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .filter-button:hover {
    background: linear-gradient(160deg, #c8e6c9 0%, #a5d6a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(76,175,80,0.28), inset 0 1px 0 rgba(255,255,255,0.70), inset 0 -1px 0 rgba(0,0,0,0.08);
  }
  .filter-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(76,175,80,0.18), inset 0 2px 4px rgba(0,0,0,0.10);
    transition-duration: 0.06s;
  }
  }
  #settings-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px  10px rgba(0, 0, 0, 0.1);
  }
  #settings-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  #settings-menu button:hover {
    background-color: #ddd;
  }
  .refresh-button {
    background: linear-gradient(160deg, #42a5f5 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 10px 13px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 16px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
      0 2px 2px rgba(0,0,0,0.10),
      0 4px 8px rgba(21,101,192,0.38),
      0 8px 18px rgba(21,101,192,0.22),
      inset 0 1px 0 rgba(255,255,255,0.28),
      inset 0 -2px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
    position: relative;
  }
  .refresh-button:hover {
    transform: translateY(-3px);
    box-shadow:
      0 4px 4px rgba(0,0,0,0.10),
      0 8px 16px rgba(21,101,192,0.45),
      0 16px 28px rgba(21,101,192,0.28),
      inset 0 1px 0 rgba(255,255,255,0.30),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .refresh-button:active {
    transform: translateY(1px);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.12),
      0 2px 6px rgba(21,101,192,0.28),
      inset 0 1px 0 rgba(255,255,255,0.15),
      inset 0 2px 4px rgba(0,0,0,0.18);
    transition-duration: 0.06s;
  }
  .notification-button {
    background: linear-gradient(160deg, #ffca28 0%, #f57f17 100%);
    color: #2d1a00;
    border: none;
    padding: 10px 13px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 16px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
      0 2px 2px rgba(0,0,0,0.10),
      0 4px 8px rgba(245,127,23,0.40),
      0 8px 18px rgba(245,127,23,0.22),
      inset 0 1px 0 rgba(255,255,255,0.38),
      inset 0 -2px 0 rgba(0,0,0,0.16);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .notification-button:hover {
    transform: translateY(-3px);
    box-shadow:
      0 4px 4px rgba(0,0,0,0.10),
      0 8px 16px rgba(245,127,23,0.48),
      0 16px 28px rgba(245,127,23,0.28),
      inset 0 1px 0 rgba(255,255,255,0.40),
      inset 0 -2px 0 rgba(0,0,0,0.16);
  }
  .notification-button:active {
    transform: translateY(1px);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.12),
      0 2px 6px rgba(245,127,23,0.30),
      inset 0 1px 0 rgba(255,255,255,0.20),
      inset 0 2px 4px rgba(0,0,0,0.16);
    transition-duration: 0.06s;
  }
  
  /* Payment Success Notification */
  .payment-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
    max-width: 350px;
    border: 2px solid #fff;
  }
  
  .payment-success-content {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .payment-success-icon {
    font-size: 24px;
    animation: bounce 1s infinite;
  }
  
  .payment-success-text {
    flex: 1;
  }
  
  .payment-success-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .payment-success-message {
    font-size: 14px;
    opacity: 0.9;
  }
  
  .payment-success-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
  }
  
  .payment-success-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-5px);
    }
    60% {
      transform: translateY(-3px);
    }
  }
  
  /* Dark mode support */
  body.dark-mode .payment-success-notification {
    background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%);
    border-color: #333;
  }
  .notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    display: none;
  }
  .notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 20px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 1002;
    max-width: 100%;
    overflow-y: auto;
  }
  .notification-modal.show {
    display: block;
  }
  .notification-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
  }
  .notification-modal-header h3 {
    margin: 0;
    color: #4CAF50;
    text-align: center;
    font-size: 24px;
    flex-grow: 1;
  }
  .back-button {
    background: rgba(76,175,80,0.08);
    border: 1.5px solid rgba(76,175,80,0.35);
    font-size: 22px;
    cursor: pointer;
    color: #2e7d32;
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow:
      0 2px 6px rgba(46,125,50,0.14),
      inset 0 1px 0 rgba(255,255,255,0.70),
      inset 0 -1px 0 rgba(0,0,0,0.06);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .back-button:hover {
    background: rgba(76,175,80,0.16);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(46,125,50,0.22), inset 0 1px 0 rgba(255,255,255,0.70), inset 0 -1px 0 rgba(0,0,0,0.08);
  }
  .back-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(46,125,50,0.14), inset 0 2px 4px rgba(0,0,0,0.10);
    transition-duration: 0.06s;
  }
  .notification-list {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 0 20px;
  }
  .notification-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    text-align: center;
    margin: 10px auto;
    border-radius: 8px;
    width: 80%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .notification-item.unread {
    background-color: #f0f0f0;
    font-weight: bold;
    border-left: 4px solid #4CAF50;
    padding: 10px;
    margin: 5px auto;
    width: 90%;
    font-size: 14px;
  }
  .notification-item.read {
    background-color: transparent;
    font-weight: normal;
    padding: 10px;
    margin: 5px auto;
    width: 90%;
    font-size: 14px;
  }
  .notification-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }
  .notification-item:last-child {
    border-bottom: none;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  @keyframes fastSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .refresh-button.refreshing .refresh-icon {
    animation: spin 0.6s linear infinite;
  }
  .refresh-button.successful {
    animation: none;
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    box-shadow: 0 4px 12px rgba(46,125,50,0.40), inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.15);
  }
  .blue-button {
    background: linear-gradient(160deg, #42a5f5 0%, #1565c0 100%);
    color: white;
    padding: 9px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    width: 120px;
    box-shadow:
      0 2px 2px rgba(0,0,0,0.10),
      0 4px 10px rgba(21,101,192,0.38),
      0 8px 18px rgba(21,101,192,0.20),
      inset 0 1px 0 rgba(255,255,255,0.28),
      inset 0 -2px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .blue-button:hover {
    background: linear-gradient(160deg, #64b5f6 0%, #1976d2 100%);
    transform: translateY(-3px);
    box-shadow:
      0 4px 4px rgba(0,0,0,0.10),
      0 8px 18px rgba(21,101,192,0.46),
      0 16px 28px rgba(21,101,192,0.26),
      inset 0 1px 0 rgba(255,255,255,0.32),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .blue-button:active {
    transform: translateY(1px);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.12),
      0 2px 6px rgba(21,101,192,0.28),
      inset 0 1px 0 rgba(255,255,255,0.15),
      inset 0 2px 5px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .green-button {
    background: linear-gradient(160deg, #26c6da 0%, #00838f 100%);
    color: white;
    padding: 9px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    width: 120px;
    box-shadow:
      0 2px 2px rgba(0,0,0,0.10),
      0 4px 10px rgba(0,131,143,0.38),
      0 8px 18px rgba(0,131,143,0.20),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -2px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .green-button:hover {
    background: linear-gradient(160deg, #4dd0e1 0%, #0097a7 100%);
    transform: translateY(-3px);
    box-shadow:
      0 4px 4px rgba(0,0,0,0.10),
      0 8px 18px rgba(0,131,143,0.46),
      0 16px 28px rgba(0,131,143,0.24),
      inset 0 1px 0 rgba(255,255,255,0.30),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .green-button:active {
    transform: translateY(1px);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.12),
      0 2px 6px rgba(0,131,143,0.28),
      inset 0 1px 0 rgba(255,255,255,0.15),
      inset 0 2px 5px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .realistic-button {
    background: linear-gradient(160deg, #42a5f5 0%, #1565c0 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
      0 2px 2px rgba(0,0,0,0.10),
      0 4px 10px rgba(21,101,192,0.38),
      0 8px 18px rgba(21,101,192,0.20),
      inset 0 1px 0 rgba(255,255,255,0.28),
      inset 0 -2px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .realistic-button:hover {
    transform: translateY(-3px);
    box-shadow:
      0 6px 16px rgba(21,101,192,0.46),
      inset 0 1px 0 rgba(255,255,255,0.30),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .realistic-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(21,101,192,0.28), inset 0 2px 5px rgba(0,0,0,0.22);
    transition-duration: 0.06s;
  }
  .button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  .support-button {
    background: linear-gradient(160deg, #ffffff 0%, #f1f8f1 100%);
    color: #2e7d32;
    border: 1.5px solid rgba(76,175,80,0.40);
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
      0 2px 8px rgba(46,125,50,0.16),
      inset 0 1px 0 rgba(255,255,255,0.90),
      inset 0 -1px 0 rgba(0,0,0,0.06);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .support-button:hover {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(46,125,50,0.40), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .support-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(46,125,50,0.20), inset 0 2px 4px rgba(0,0,0,0.12);
    transition-duration: 0.06s;
  }
  
  /* Full Page Modal Styles */
  #people-registration-form, #agent-details-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: white;
      z-index: 1010;
      overflow-y: auto;
      padding: 0;
      box-sizing: border-box;
  }
  
  #people-registration-form.show, #agent-details-modal.show {
      display: block;
  }
  
  .full-page-header {
      display: flex;
      align-items: center;
      border-bottom: 2px solid #4CAF50;
      padding: 10px 20px;
      margin-bottom: 20px;
      background-color: #f9f9f9;
      position: sticky;
      top: 0;
      z-index: 1;
  }
  
  .full-page-header .back-button {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: #4CAF50;
      padding: 5px;
  }
  
  .full-page-header h2 {
      flex-grow: 1;
      text-align: center;
      margin: 0;
      color: #4CAF50;
      font-size: 1.5rem;
  }
  
  #register-person-form {
      padding: 0 20px 20px 20px;
  }
  
  #people-registration-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4CAF50;
    font-size: 1.8rem;
    font-weight: bold;
  }
  
  #people-registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  #people-registration-form input,
  #people-registration-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  /* ===== Custom Service Selector ===== */
  .custom-service-selector {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    font-family: inherit;
  }

  .service-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
  }

  .service-selector-header:hover {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
  }

  .service-selector-header span {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .selector-chevron {
    flex-shrink: 0;
    color: #888;
    transition: transform 0.2s ease;
  }

  .service-selector-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    overflow: hidden;
    animation: dropdownFadeIn 0.15s ease;
  }

  .service-selector-dropdown.open {
    display: block;
  }

  @keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .service-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    cursor: pointer;
    transition: background 0.15s;
    margin: 0;
    font-weight: normal;
  }

  .service-option-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
  }

  .service-option-item:hover {
    background: #f3faf3;
  }

  .service-option-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #4CAF50;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
  }

  .service-option-icon {
    font-size: 18px;
    line-height: 1;
  }

  .service-option-text {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .service-option-badge {
    background: #e8f5e9;
    color: #388e3c;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
  }

  /* ===== Professional Register Button ===== */
  .register-submit-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow:
      0 2px 2px rgba(0,0,0,0.10),
      0 4px 12px rgba(46,125,50,0.42),
      0 10px 22px rgba(46,125,50,0.24),
      inset 0 1px 0 rgba(255,255,255,0.30),
      inset 0 -2px 0 rgba(0,0,0,0.20);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
    position: relative;
    overflow: hidden;
  }
  .register-submit-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
  }
  .register-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow:
      0 4px 4px rgba(0,0,0,0.10),
      0 8px 20px rgba(46,125,50,0.50),
      0 18px 32px rgba(46,125,50,0.28),
      inset 0 1px 0 rgba(255,255,255,0.32),
      inset 0 -2px 0 rgba(0,0,0,0.20);
  }
  .register-submit-btn:active {
    transform: translateY(1px);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.12),
      0 2px 6px rgba(46,125,50,0.30),
      inset 0 1px 0 rgba(255,255,255,0.15),
      inset 0 2px 6px rgba(0,0,0,0.22);
    transition-duration: 0.06s;
  }

  /* Dark mode for custom selector and button */
  body.dark-mode .service-selector-header {
    background: #2a2a2a;
    border-color: #555;
    color: #eee;
  }
  body.dark-mode .service-selector-header span { color: #aaa; }
  body.dark-mode .service-selector-dropdown {
    background: #2a2a2a;
    border-color: #4CAF50;
  }
  body.dark-mode .service-option-item:hover { background: #333; }
  body.dark-mode .service-option-item:not(:last-child) { border-color: #444; }
  body.dark-mode .service-option-text { color: #eee; }
  body.dark-mode .service-option-badge { background: #1b3a1b; color: #81c784; }

  /* ===== End Custom Service Selector ===== */

  /* Services select field - better height spacing */
  #people-registration-form #person-service {
    min-height: 100px;
    height: auto;
    padding: 10px;
    line-height: 1.8;
  }
  
  #people-registration-form #person-service option {
    padding: 8px 5px;
    margin: 2px 0;
  }
  #people-registration-form button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  
  #service-fields-container h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #4CAF50;
  }
  .three-dots {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 60px;
    right: 20px;
  }
  .dot {
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
  }
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  .dropdown-menu button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(160deg, #f8faf8 0%, #edf4ed 100%);
    border: 1px solid rgba(76,175,80,0.18);
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 5px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a3a1d;
    box-shadow:
      0 1px 4px rgba(0,0,0,0.08),
      inset 0 1px 0 rgba(255,255,255,0.85),
      inset 0 -1px 0 rgba(0,0,0,0.06);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .dropdown-menu button:hover {
    background: linear-gradient(160deg, #e8f5e9 0%, #c8e6c9 100%);
    transform: translateX(4px) translateY(-1px);
    box-shadow: 0 4px 10px rgba(46,125,50,0.22), inset 0 1px 0 rgba(255,255,255,0.70), inset 0 -1px 0 rgba(0,0,0,0.08);
  }
  .dropdown-menu button:active {
    transform: translateX(2px) translateY(0px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.10), inset 0 2px 4px rgba(0,0,0,0.10);
    transition-duration: 0.06s;
  }
  .loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
  }
  .loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
  }
  .b-logo {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto 20px;
  }
  .b-logo.login-spin {
    animation: fastSpin 0.5s linear infinite;
  }
  .b-logo::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 110px;
    left: 0;
    top: 5px;
    background: linear-gradient(145deg, #0078d4, #005ba1);
    border-radius: 50px 10px 10px 50px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transform: skewY(-5deg);
    z-index: 2;
  }
  .b-logo::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    right: 0;
    top: 25px;
    background: linear-gradient(145deg, #0078d4, #005ba1);
    border-radius: 10px 50px 50px 10px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    transform: skewY(5deg);
    z-index: 1;
  }
  .b-logo span {
    position: absolute;
    width: 20px;
    height: 40px;
    background: linear-gradient(145deg, #0078d4, #005ba1);
    top: 40px;
    left: 50px;
    border-radius: 10px;
    transform: rotate(-10deg);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 3;
  }
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  @keyframes fastSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  body.dark-mode {
    background-color: #121212;
    color: #ffffff;
  }
  body.dark-mode header {
    background-color: #1e1e1e;
  }
  body.dark-mode .card {
    background:
      linear-gradient(160deg,
        rgba(30,38,28,0.98) 0%,
        rgba(22,30,20,0.97) 50%,
        rgba(18,26,16,0.96) 100%);
    color: #e8f5e9;
    box-shadow:
      0 1px 1px rgba(0,0,0,0.18),
      0 2px 2px rgba(0,0,0,0.18),
      0 4px 4px rgba(0,0,0,0.18),
      0 8px 8px rgba(0,0,0,0.16),
      0 16px 32px rgba(0,0,0,0.38),
      0 0 0 1px rgba(76,175,80,0.14);
  }
  body.dark-mode .card::before {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(102,187,106,0.5) 20%,
      rgba(129,199,132,0.75) 50%,
      rgba(102,187,106,0.5) 80%,
      transparent 100%);
  }
  body.dark-mode .card::after {
    background: linear-gradient(180deg,
      rgba(255,255,255,0.07) 0%,
      rgba(255,255,255,0.01) 60%,
      transparent 100%);
  }
  body.dark-mode .card:hover {
    box-shadow:
      0 2px 2px rgba(0,0,0,0.20),
      0 4px 4px rgba(0,0,0,0.20),
      0 8px 8px rgba(0,0,0,0.18),
      0 16px 16px rgba(0,0,0,0.16),
      0 28px 48px rgba(0,0,0,0.45),
      0 0 0 1.5px rgba(102,187,106,0.30),
      inset 0 1px 0 rgba(255,255,255,0.06);
  }
  body.dark-mode .card-accent-bar {
    background: linear-gradient(180deg, #81c784 0%, #2e7d32 100%);
    box-shadow: 2px 0 10px rgba(102,187,106,0.45);
  }
  body.dark-mode .card h3 {
    color: #f1f8f1;
  }
  body.dark-mode .card p {
    color: #9ac49c;
  }
  body.dark-mode .card p strong {
    color: #c8e6c9;
  }
  body.dark-mode .card-divider {
    background: linear-gradient(90deg, rgba(102,187,106,0.28), rgba(102,187,106,0.05) 80%, transparent);
  }
  body.dark-mode .card-type-badge {
    background: rgba(76,175,80,0.15);
    color: #a5d6a7;
    border-color: rgba(76,175,80,0.30);
    box-shadow: 0 2px 6px rgba(76,175,80,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  body.dark-mode .card-avatar {
    background: linear-gradient(145deg, #66bb6a 0%, #2e7d32 55%, #1b5e20 100%);
    box-shadow:
      0 4px 10px rgba(0,0,0,0.5),
      inset 0 2px 4px rgba(255,255,255,0.20),
      inset 0 -2px 4px rgba(0,0,0,0.30);
  }
  body.dark-mode .info-button {
    background: linear-gradient(160deg, #388e3c 0%, #1b5e20 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
  }
  body.dark-mode .info-button:hover {
    background: linear-gradient(160deg, #43a047 0%, #2e7d32 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,0.45);
  }
  body.dark-mode .card-button {
    background: linear-gradient(160deg, #1565c0 0%, #0d47a1 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.10);
  }
  body.dark-mode .card-button:hover {
    background: linear-gradient(160deg, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,0.45);
  }
  body.dark-mode .send-invoice-button {
    background: linear-gradient(160deg, #e65100 0%, #bf360c 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.10);
  }
  body.dark-mode .send-invoice-button:hover {
    background: linear-gradient(160deg, #f57c00 0%, #d84315 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,0.45);
  }
  body.dark-mode .service-info-modal {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .service-info-modal h4 {
    color: #ffffff;
  }
  body.dark-mode .service-info-modal p {
    color: #cccccc;
  }
  body.dark-mode .login-container {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #333;
  }
  body.dark-mode .login-container h2 {
    color: #ffffff;
  }
  body.dark-mode .login-container input {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
  }
  body.dark-mode .login-container button {
    background: linear-gradient(160deg, #388e3c 0%, #1b5e20 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.28);
  }
  body.dark-mode .login-container a {
    color: #42A5F5;
  }
  body.dark-mode .dropdown-menu {
    background-color: #1e1e1e;
    border-color: #333;
  }
  body.dark-mode .dropdown-menu button {
    background: linear-gradient(160deg, #2a2a2a 0%, #1e1e1e 100%);
    color: #e0e0e0;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -1px 0 rgba(0,0,0,0.20);
  }
  body.dark-mode .dropdown-menu button:hover {
    background: linear-gradient(160deg, #2e7d32 0%, #1b5e20 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(0,0,0,0.22);
  }
  body.dark-mode .settings-button {
    background: linear-gradient(160deg, #388e3c 0%, #1b5e20 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode .filter-button {
    background: linear-gradient(160deg, #2e7d32 0%, #1b5e20 100%);
    color: #c8e6c9;
    border-color: rgba(76,175,80,0.30);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -1px 0 rgba(0,0,0,0.22);
  }
  body.dark-mode .support-button {
    background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%);
    color: #81c784;
    border-color: rgba(129,199,132,0.45);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -1px 0 rgba(0,0,0,0.22);
  }
  body.dark-mode .support-button:hover {
    background: linear-gradient(160deg, #388e3c 0%, #1b5e20 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode .blue-button {
    background: linear-gradient(160deg, #1e88e5 0%, #0d47a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.28);
  }
  body.dark-mode .blue-button:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -2px 0 rgba(0,0,0,0.28);
  }
  body.dark-mode .green-button {
    background: linear-gradient(160deg, #00acc1 0%, #006064 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.28);
  }
  body.dark-mode .green-button:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.28);
  }
  body.dark-mode .realistic-button {
    background: linear-gradient(160deg, #1e88e5 0%, #0d47a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.28);
  }
  body.dark-mode .refresh-button {
    background: linear-gradient(160deg, #1976d2 0%, #0d47a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.28);
  }
  body.dark-mode .notification-button {
    background: linear-gradient(160deg, #ffa000 0%, #e65100 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode .notification-modal {
    background-color: #121212;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .notification-modal-header h3 {
    color: #ffffff;
  }
  body.dark-mode .back-button {
    background: rgba(129,199,132,0.10);
    border-color: rgba(129,199,132,0.35);
    color: #a5d6a7;
    box-shadow: 0 2px 6px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -1px 0 rgba(0,0,0,0.20);
  }
  body.dark-mode .notification-item {
    border-bottom-color: #555;
  }
  body.dark-mode .notification-item.unread {
    background-color: #333;
    border-left: 4px solid #4CAF50;
  }
  body.dark-mode .notification-item.read {
    background-color: transparent;
  }
  body.dark-mode .notification-item:hover {
    background-color: #444;
  }
  body.dark-mode .send-invoice-button {
    background: linear-gradient(160deg, #e65100 0%, #bf360c 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode .call-button {
    background: rgba(129,199,132,0.08);
    color: #81c784;
    border-color: rgba(129,199,132,0.40);
    box-shadow: 0 2px 6px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -1px 0 rgba(0,0,0,0.18);
  }
  body.dark-mode .call-button:hover {
    background: linear-gradient(160deg, #388e3c 0%, #1b5e20 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 12px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(0,0,0,0.22);
  }
  body.dark-mode .close-info,
  body.dark-mode .card-modal-close,
  body.dark-mode .payment-info-button,
  body.dark-mode .add-service-button,
  body.dark-mode .register-submit-btn,
  body.dark-mode .property-type-button,
  body.dark-mode .apply-submit,
  body.dark-mode .plus-code-confirm {
    background: linear-gradient(160deg, #388e3c 0%, #1b5e20 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode .plus-code-button,
  body.dark-mode .bind-button,
  body.dark-mode .form-buttons .blue-button {
    background: linear-gradient(160deg, #1565c0 0%, #0d47a1 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode .request-button {
    background: linear-gradient(160deg, #e65100 0%, #bf360c 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode .measure-button {
    background: linear-gradient(160deg, #7b1fa2 0%, #4a148c 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode .map-button {
    background: linear-gradient(160deg, #00838f 0%, #004d40 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode .apply-cancel,
  body.dark-mode .plus-code-cancel,
  body.dark-mode .overlay-close-btn,
  body.dark-mode .phone-edit-manual-cancel {
    background: linear-gradient(160deg, #c62828 0%, #7f0000 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode .form-buttons .gray-button {
    background: linear-gradient(160deg, #616161 0%, #212121 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  body.dark-mode #people-registration-form,
  body.dark-mode #agent-details-modal {
      background-color: #121212;
      color: #ffffff;
  }
  body.dark-mode .full-page-header {
      background-color: #1e1e1e;
      border-bottom-color: #333;
  }
  body.dark-mode .full-page-header .back-button,
  body.dark-mode .full-page-header h2 {
      color: #ffffff;
  }
  body.dark-mode #people-registration-form h2 {
    color: #4CAF50;
  }
  body.dark-mode #people-registration-form label {
    color: #ffffff;
  }
  body.dark-mode #people-registration-form input,
  body.dark-mode #people-registration-form select {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
  }
  body.dark-mode #people-registration-form #person-service {
    background-color: #333;
    color: #fff;
    border-color: #555;
  }
  body.dark-mode #people-registration-form #person-service option {
    background-color: #333;
    color: #fff;
    padding: 8px 5px;
  }
  body.dark-mode #people-registration-form button {
    background: linear-gradient(160deg, #388e3c 0%, #1b5e20 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.26);
  }
  
  body.dark-mode .loading-screen {
    background-color: #121212;
  }
  body.dark-mode .b-logo::before,
  body.dark-mode .b-logo::after,
  body.dark-mode .b-logo span {
    background: linear-gradient(145deg, #00b7ff, #0088cc);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  }
  body.dark-mode .search-icon {
    color: #ffffff;
  }
  body.dark-mode #search-bar {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
  }
  .plus-code-button {
    background: linear-gradient(160deg, #42a5f5 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 5px 9px;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow:
      0 2px 6px rgba(21,101,192,0.38),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -1px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .plus-code-button:hover {
    background: linear-gradient(160deg, #64b5f6 0%, #1976d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(21,101,192,0.45), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.18);
  }
  .plus-code-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(21,101,192,0.28), inset 0 2px 4px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .request-button {
    background: linear-gradient(160deg, #ffb74d 0%, #e65100 100%);
    color: white;
    border: none;
    padding: 5px 9px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 5px;
    box-shadow:
      0 2px 6px rgba(230,81,0,0.38),
      inset 0 1px 0 rgba(255,255,255,0.24),
      inset 0 -1px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .request-button:hover {
    background: linear-gradient(160deg, #ffa726 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(230,81,0,0.45), inset 0 1px 0 rgba(255,255,255,0.26), inset 0 -1px 0 rgba(0,0,0,0.18);
  }
  .request-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(230,81,0,0.28), inset 0 2px 4px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .measure-button {
    background: linear-gradient(160deg, #ce93d8 0%, #6a1b9a 100%);
    color: white;
    border: none;
    padding: 5px 9px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 5px;
    box-shadow:
      0 2px 6px rgba(106,27,154,0.38),
      inset 0 1px 0 rgba(255,255,255,0.24),
      inset 0 -1px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .measure-button:hover {
    background: linear-gradient(160deg, #ba68c8 0%, #7b1fa2 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(106,27,154,0.45), inset 0 1px 0 rgba(255,255,255,0.26), inset 0 -1px 0 rgba(0,0,0,0.18);
  }
  .measure-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(106,27,154,0.28), inset 0 2px 4px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  
  .phone-edit-manual-cancel {
    background: linear-gradient(160deg, #ef5350 0%, #b71c1c 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
    box-shadow:
      0 2px 8px rgba(183,28,28,0.36),
      inset 0 1px 0 rgba(255,255,255,0.22),
      inset 0 -2px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .phone-edit-manual-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(183,28,28,0.44), inset 0 1px 0 rgba(255,255,255,0.24), inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .phone-edit-manual-cancel:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(183,28,28,0.26), inset 0 2px 5px rgba(0,0,0,0.22);
    transition-duration: 0.06s;
  }
  .overlay-close-btn {
    background: linear-gradient(160deg, #ef5350 0%, #b71c1c 100%);
    color: white;
    border: none;
    padding: 9px 18px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 12px;
    width: auto;
    min-width: 100px;
    box-shadow:
      0 2px 2px rgba(0,0,0,0.10),
      0 4px 10px rgba(183,28,28,0.38),
      0 8px 18px rgba(183,28,28,0.20),
      inset 0 1px 0 rgba(255,255,255,0.22),
      inset 0 -2px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .overlay-close-btn:hover {
    transform: translateY(-3px);
    box-shadow:
      0 6px 16px rgba(183,28,28,0.46),
      inset 0 1px 0 rgba(255,255,255,0.24),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .overlay-close-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(183,28,28,0.26), inset 0 2px 5px rgba(0,0,0,0.22);
    transition-duration: 0.06s;
  }
  .map-button {
    background: linear-gradient(160deg, #26c6da 0%, #00695c 100%);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 5px;
    box-shadow:
      0 2px 6px rgba(0,105,92,0.38),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -1px 0 rgba(0,0,0,0.16);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .map-button:hover {
    background: linear-gradient(160deg, #4dd0e1 0%, #00796b 100%);
    transform: translateY(-2px);
    box-shadow:
      0 5px 12px rgba(0,105,92,0.45),
      inset 0 1px 0 rgba(255,255,255,0.28),
      inset 0 -1px 0 rgba(0,0,0,0.16);
  }
  .map-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,105,92,0.25), inset 0 2px 4px rgba(0,0,0,0.18);
    transition-duration: 0.06s;
  }
  .bind-button {
    padding: 5px 10px;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    background: linear-gradient(160deg, #42a5f5 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    box-shadow:
      0 2px 6px rgba(21,101,192,0.36),
      inset 0 1px 0 rgba(255,255,255,0.24),
      inset 0 -1px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .bind-button[href], .bind-button[onclick] {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    text-decoration: none;
    box-shadow:
      0 2px 6px rgba(46,125,50,0.36),
      inset 0 1px 0 rgba(255,255,255,0.24),
      inset 0 -1px 0 rgba(0,0,0,0.18);
  }
  .bind-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(46,125,50,0.42), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.18);
  }
  .bind-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(46,125,50,0.24), inset 0 2px 4px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }

  .card-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-family: Arial, sans-serif;
  }
  .card-modal.show {
    display: block;
  }
  .card-modal.dark-mode {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #333;
  }
  .card-modal-header {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
  }
  .card-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #4CAF50;
  }
  .card-modal.dark-mode .card-modal-header h2 {
    color: #ffffff;
  }
  .card-modal .b-logo {
    width: 80px;
    height: 80px;
    margin: 10px auto;
  }
  .card-modal-content {
    padding: 15px 0;
  }
  
  /* Make services container scrollable */
  #service-names-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    background-color: #f9f9f9;
  }
  
  /* Style the scrollbar for better UX */
  #service-names-container::-webkit-scrollbar {
    width: 6px;
  }
  
  #service-names-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }
  
  #service-names-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
  }
  
  #service-names-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
  
  /* Dark mode styles for services container */
  body.dark-mode #service-names-container,
  .card-modal.dark-mode #service-names-container {
    background-color: #2a2a2a;
    border-color: #555;
    color: #ffffff;
  }
  
  body.dark-mode #service-names-container::-webkit-scrollbar-track,
  .card-modal.dark-mode #service-names-container::-webkit-scrollbar-track {
    background: #333;
  }
  
  body.dark-mode #service-names-container::-webkit-scrollbar-thumb,
  .card-modal.dark-mode #service-names-container::-webkit-scrollbar-thumb {
    background: #666;
  }
  
  body.dark-mode #service-names-container::-webkit-scrollbar-thumb:hover,
  .card-modal.dark-mode #service-names-container::-webkit-scrollbar-thumb:hover {
    background: #777;
  }
  
  /* Style for individual service items */
  .service-item {
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 5px;
  }
  
  .service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  
  .service-item strong {
    color: #4CAF50;
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
  }
  
  /* Dark mode styles for service items */
  body.dark-mode .service-item,
  .card-modal.dark-mode .service-item {
    border-bottom-color: #444;
  }
  
  body.dark-mode .service-item strong,
  .card-modal.dark-mode .service-item strong {
    color: #81C784;
  }
  
  /* Smooth scrolling */
  #service-names-container {
    scroll-behavior: smooth;
  }
  .card-modal-content p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
  }
  .card-modal.dark-mode .card-modal-content p {
    color: #cccccc;
  }
  .card-modal-content p strong {
    color: #4CAF50;
  }
  .card-modal.dark-mode .card-modal-content p strong {
    color: #ffffff;
  }
  .card-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
  }
  .card-modal-close {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    width: 50%;
    font-size: 14px;
    font-weight: 700;
    box-shadow:
      0 2px 8px rgba(46,125,50,0.38),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -2px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .card-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(46,125,50,0.44), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .card-modal-close:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(46,125,50,0.26), inset 0 2px 5px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .card-modal-footer {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 10px;
  }
  .card-modal.dark-mode .card-modal-footer {
    color: #999;
  }
  .payment-info-button {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 5px 9px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 5px;
    box-shadow:
      0 2px 6px rgba(46,125,50,0.36),
      inset 0 1px 0 rgba(255,255,255,0.24),
      inset 0 -1px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .payment-info-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(46,125,50,0.44), inset 0 1px 0 rgba(255,255,255,0.26), inset 0 -1px 0 rgba(0,0,0,0.18);
  }
  .payment-info-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(46,125,50,0.26), inset 0 2px 4px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .payment-status.awaiting {
    background-color: #ff9800;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
  }
  .payment-info-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    max-width: 500px;
    width: 90%;
  }
  .payment-info-modal.show {
    display: block;
  }
  .payment-info-modal h4 {
    margin: 0 0 15px 0;
    color: #4CAF50;
    text-align: center;
  }
  .payment-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
    display: block;
  }
  .payment-info-table th, .payment-info-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 12px;
  }
  .payment-info-table th {
    background-color: #4CAF50;
    color: white;
    position: sticky;
    top: 0;
  }
  .payment-info-table tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  .payment-info-table td:empty {
    display: none;
  }
  .payment-info-table tr:has(td:empty) {
    display: none;
  }
  .payment-info-close {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
  }
  .apply-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1004;
    overflow-y: auto;
  }
  .apply-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .apply-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .apply-modal h4 {
    margin: 0 0 15px 0;
    color: #4CAF50;
    text-align: center;
    font-size: 16px;
  }
  .apply-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
  }
  .apply-form label {
    font-weight: bold;
    font-size: 14px;
  }
  .apply-form input, .apply-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
  }
  .apply-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }
  .apply-buttons button {
    flex: 1;
    padding: 9px 8px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .apply-submit {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    box-shadow:
      0 2px 2px rgba(0,0,0,0.10),
      0 4px 10px rgba(46,125,50,0.38),
      0 8px 18px rgba(46,125,50,0.20),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .apply-submit:hover {
    background: linear-gradient(160deg, #81c784 0%, #388e3c 100%);
    transform: translateY(-3px);
    box-shadow:
      0 6px 16px rgba(46,125,50,0.45),
      inset 0 1px 0 rgba(255,255,255,0.28),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .apply-submit:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(46,125,50,0.28), inset 0 2px 5px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .apply-cancel {
    background: linear-gradient(160deg, #ef5350 0%, #b71c1c 100%);
    color: white;
    box-shadow:
      0 2px 2px rgba(0,0,0,0.10),
      0 4px 10px rgba(183,28,28,0.36),
      0 8px 18px rgba(183,28,28,0.18),
      inset 0 1px 0 rgba(255,255,255,0.22),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .apply-cancel:hover {
    background: linear-gradient(160deg, #f44336 0%, #c62828 100%);
    transform: translateY(-3px);
    box-shadow:
      0 6px 16px rgba(183,28,28,0.44),
      inset 0 1px 0 rgba(255,255,255,0.24),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .apply-cancel:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(183,28,28,0.26), inset 0 2px 5px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .service-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    margin-top: 10px;
    font-size: 14px;
  }
  .service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
  }
  .service-item:last-child {
    border-bottom: none;
  }
  .remove-service {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 5px;
    cursor: pointer;
    font-size: 12px;
  }
  .service-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
  }
  .service-details select {
    padding: 5px;
    font-size: 12px;
  }
  body.dark-mode .payment-info-modal {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .payment-info-modal h4 {
    color: #ffffff;
  }
  body.dark-mode .payment-info-table th,
  body.dark-mode .payment-info-table td {
    border-color: #555;
    color: #ffffff;
  }
  body.dark-mode .payment-info-table th {
    background-color: #2e7d32;
  }
  body.dark-mode .payment-info-table tr:nth-child(even) {
    background-color: #333;
  }
  body.dark-mode .payment-info-close {
    background-color: #4CAF50;
    color: #ffffff;
  }
  body.dark-mode .apply-modal-content {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .apply-modal h4 {
    color: #ffffff;
  }
  body.dark-mode .apply-form input,
  body.dark-mode .apply-form select {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
  }
  body.dark-mode .service-list {
    background-color: #1e1e1e;
    border-color: #555;
  }
  body.dark-mode .service-item {
    border-bottom-color: #555;
  }
  .service-name-input {
    margin-top: 5px;
  }
  .payment-status {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }
  .on-base {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
    box-shadow: 0 2px 6px rgba(46,125,50,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  }
  .off-base {
    background: linear-gradient(135deg, #e53935, #b71c1c);
    color: white;
    box-shadow: 0 2px 6px rgba(183,28,28,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  }
  
  .no-service {
    background: linear-gradient(135deg, #757575, #424242);
    color: white;
    box-shadow: 0 2px 6px rgba(66,66,66,0.30), inset 0 1px 0 rgba(255,255,255,0.12);
  }
  
  .no-services-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
  }
  
  
  .services-status-container {
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    max-height: 120px; /* Limit height to show ~2 services */
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #888 #f1f1f1; /* For Firefox */
  }
  
  /* Custom scrollbar for Webkit browsers */
  .services-status-container::-webkit-scrollbar {
    width: 6px;
  }
  
  .services-status-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }
  
  .services-status-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
  }
  
  .services-status-container::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  
  .service-status-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(76,175,80,0.05);
    border: 1px solid rgba(76,175,80,0.10);
    transition: opacity 0.3s ease;
  }
  
  .service-status-item.service-hidden {
    opacity: 0.65;
  }
  
  .service-status-item:last-child {
    margin-bottom: 0;
  }
  
  .service-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-left: 0;
  }
  
  .service-number {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    min-width: 16px;
  }
  
  .service-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    flex: 1;
  }
  
  .service-status-row {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 2px;
    padding-left: 0;
  }
  
  .service-status-item .payment-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    min-width: 84px;
    text-align: center;
  }
  
  /* Scroll indicator styling */
  .service-scroll-indicator {
    text-align: center;
    padding: 5px 0;
    border-top: 1px dashed #ccc;
    margin-top: 5px;
  }
  
  .scroll-text {
    font-size: 10px;
    color: #666;
    font-style: italic;
  }
  
  /* Dark mode styles for service status */
  body.dark-mode .service-status-item {
    background: rgba(76,175,80,0.06);
    border-color: rgba(76,175,80,0.14);
  }
  
  body.dark-mode .services-status-container::-webkit-scrollbar-track {
    background: #333;
  }
  
  body.dark-mode .services-status-container::-webkit-scrollbar-thumb {
    background: #555;
  }
  
  body.dark-mode .services-status-container::-webkit-scrollbar-thumb:hover {
    background: #777;
  }
  
  body.dark-mode .service-status-item {
    border-bottom-color: #444;
  }
  
  body.dark-mode .service-name {
    color: #fff;
  }
  
  body.dark-mode .service-number {
    color: #ccc;
  }
  
  body.dark-mode .scroll-text {
    color: #ccc;
  }
  
  /* Status badges for customer approval status */
  .status-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 5px;
    font-weight: bold;
  }
  .status-badge.pending {
    background-color: #FFC107;
    color: black;
  }
  
  /* Dark mode styles for status badges */
  body.dark-mode .status-badge.pending {
    background-color: #FFB300;
    color: black;
  }
  
  .call-button {
    background: rgba(76,175,80,0.07);
    color: #2e7d32;
    border: 1.5px solid rgba(76,175,80,0.40);
    padding: 4px 11px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 4px;
    box-shadow:
      0 2px 6px rgba(46,125,50,0.14),
      inset 0 1px 0 rgba(255,255,255,0.75),
      inset 0 -1px 0 rgba(0,0,0,0.06);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .call-button:hover {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(46,125,50,0.38), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.16);
  }
  .call-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(46,125,50,0.18), inset 0 2px 4px rgba(0,0,0,0.12);
    transition-duration: 0.06s;
  }
  .stats-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  .stat-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .stat-card h4 {
    margin: 0 0 10px 0;
    color: #4CAF50;
  }
  .stat-card p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
  }
  .stat-card.total-registered {
    border-top: 4px solid #2196F3;
  }
  .stat-card.total-paid {
    border-top: 4px solid #4CAF50;
  }
  .stat-card.total-unpaid {
    border-top: 4px solid #f44336;
  }
  body.dark-mode .stat-card {
    background-color: #333;
  }
  .plus-code-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1008;
    max-width: 300px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
  }
  .plus-code-modal.show {
    display: block;
  }
  .plus-code-modal h4 {
    margin-top: 0;
    color: #4CAF50;
    text-align: center;
  }
  .plus-code-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
  }
  .plus-code-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  .plus-code-buttons {
    display: flex;
    gap: 10px;
  }
  .plus-code-buttons button {
    flex: 1;
    padding: 9px 8px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .plus-code-confirm {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    box-shadow:
      0 2px 8px rgba(46,125,50,0.38),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .plus-code-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(46,125,50,0.44), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .plus-code-confirm:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(46,125,50,0.28), inset 0 2px 5px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .plus-code-cancel {
    background: linear-gradient(160deg, #ef5350 0%, #b71c1c 100%);
    color: white;
    box-shadow:
      0 2px 8px rgba(183,28,28,0.36),
      inset 0 1px 0 rgba(255,255,255,0.22),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .plus-code-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(183,28,28,0.44), inset 0 1px 0 rgba(255,255,255,0.24), inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .plus-code-cancel:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(183,28,28,0.28), inset 0 2px 5px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .property-type-button {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 700;
    margin-top: 5px;
    box-shadow:
      0 2px 6px rgba(46,125,50,0.36),
      inset 0 1px 0 rgba(255,255,255,0.24),
      inset 0 -1px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .property-type-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(46,125,50,0.44), inset 0 1px 0 rgba(255,255,255,0.26), inset 0 -1px 0 rgba(0,0,0,0.18);
  }
  .property-type-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(46,125,50,0.26), inset 0 2px 4px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  body.dark-mode .plus-code-modal {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .plus-code-modal h4 {
    color: #ffffff;
  }
  body.dark-mode .plus-code-input {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
  }
  .formatted-number {
    font-family: monospace;
  }
  .service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
  }
  .service-card h4 {
    margin: 0 0 5px 0;
    color: #4CAF50;
  }
  .service-card p {
    margin: 3px 0;
    font-size: 13px;
  }
  .service-card-buttons {
    display: flex;
    gap: 5px;
    margin-top: 5px;
  }
  body.dark-mode .service-card {
    background-color: #333;
    border-color: #555;
  }
  .add-service-button {
    background: linear-gradient(160deg, #66bb6a 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow:
      0 2px 8px rgba(46,125,50,0.38),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -2px 0 rgba(0,0,0,0.18);
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .add-service-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(46,125,50,0.44), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .add-service-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(46,125,50,0.28), inset 0 2px 5px rgba(0,0,0,0.20);
    transition-duration: 0.06s;
  }
  .service-buttons-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap; /* Keep all buttons on one row */
    gap: 6px;
    margin-top: 10px;
  }
  
  .service-buttons-container button {
    flex: 1 1 0; /* Allow gentle shrinking to fit one row */
    min-width: 0;
    white-space: nowrap;
    padding: 4px 8px; /* Slightly smaller to fit all */
    font-size: 11px; /* Reduce a bit but keep readable */
  }
  /* Make the Payment Info button clearer and more prominent */
  .service-buttons-container .payment-info-button {
    flex: 0 0 auto; /* Allow full label width */
    min-width: max-content; /* Prevent truncation */
  }
  /* Ensure Plus Code, Request, and Map are fully readable */
  .service-buttons-container .plus-code-button,
  .service-buttons-container .request-button,
  .service-buttons-container .map-button { flex: 1 1 0; }

  /* Ensure the ruler icon remains compact but aligned on the same row */
  .service-buttons-container .measure-button { flex: 0 0 auto; padding: 4px 8px; }
  
  /* Locked measurement button styling */
  .service-buttons-container .measure-button.locked {
    background: linear-gradient(160deg, #9e9e9e 0%, #424242 100%) !important;
    cursor: not-allowed !important;
    opacity: 0.65;
    box-shadow: 0 1px 3px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.18) !important;
  }
  .service-buttons-container .measure-button.locked:hover {
    background: linear-gradient(160deg, #9e9e9e 0%, #424242 100%) !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.18) !important;
  }

  /* Form buttons styling */
  .form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }
  .form-buttons .blue-button,
  .form-buttons .gray-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.18s cubic-bezier(0.23,1,0.32,1);
  }
  .form-buttons .blue-button {
    background: linear-gradient(160deg, #42a5f5 0%, #1565c0 100%);
    color: white;
    box-shadow:
      0 2px 8px rgba(21,101,192,0.38),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .form-buttons .blue-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(21,101,192,0.46), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .form-buttons .blue-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(21,101,192,0.28), inset 0 2px 5px rgba(0,0,0,0.22);
    transition-duration: 0.06s;
  }
  .form-buttons .gray-button {
    background: linear-gradient(160deg, #bdbdbd 0%, #616161 100%);
    color: white;
    box-shadow:
      0 2px 8px rgba(0,0,0,0.22),
      inset 0 1px 0 rgba(255,255,255,0.26),
      inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .form-buttons .gray-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -2px 0 rgba(0,0,0,0.18);
  }
  .form-buttons .gray-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.18), inset 0 2px 5px rgba(0,0,0,0.22);
    transition-duration: 0.06s;
  }

  /* Extra protection on very narrow devices */
  @media (max-width: 420px) {
    .service-buttons-container { gap: 4px; }
    .service-buttons-container button { font-size: 10px; padding: 4px 6px; }
  }
  .plus-code-input.disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
  }
  body.dark-mode .plus-code-input.disabled {
    background-color: #333;
    color: #666;
  }
  .service-location-input {
    margin-top: 10px;
  }
  .payment-status {
    margin-top: 5px;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
  }
  .on-base {
    background-color: #4CAF50;
    color: white;
  }
  .off-base {
    background-color: #f44336;
    color: white;
  }
  /* Performance Modal Styles */
  #performance-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 20px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 1002;
    max-width: 100%;
    overflow-y: auto;
  }
  #performance-modal.show {
    display: block;
  }
  #performance-modal .notification-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
  }
  #performance-modal .notification-modal-header h3 {
    margin: 0;
    color: #4CAF50;
    text-align: center;
    font-size: 24px;
    flex-grow: 1;
  }
  #performance-modal .back-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #4CAF50;
    padding: 5px;
  }
  .time-period-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .time-period-button {
    padding: 10px 15px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .time-period-button.active {
    background-color: #4CAF50;
    color: white;
  }
  .performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
  }
  .performance-stat-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .performance-stat-card h4 {
    margin: 0 0 10px 0;
    color: #4CAF50;
  }
  .performance-stat-card p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
  }
  /* Added space at the bottom of performance modal */
  .performance-footer {
    height: 40px; /* Added space at the bottom */
    margin-top: 20px;
  }
  body.dark-mode #performance-modal {
    background-color: #121212;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .time-period-button {
    background-color: #333;
    color: #ffffff;
  }
  body.dark-mode .time-period-button.active {
    background-color: #4CAF50;
    color: #ffffff;
  }
  body.dark-mode .performance-stat-card {
    background-color: #333;
  }
  
  /* Specific style for performance button only */
  .dropdown-menu button[onclick="showPerformance()"] {
    font-size: 12px; /* Reduced font size */
  }
  
  /* Time column styles */
  .payment-time {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
  }
  body.dark-mode .payment-time {
    color: #aaa;
  }
  
  /* Agent Details Decoration Styles */
  .agent-details-content {
      padding: 20px;
      max-width: 500px;
      margin: 20px auto;
      background-color: #f9f9f9;
      border-radius: 15px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
      text-align: center;
  }
  
  .agent-profile-avatar {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background-color: #e0e0e0;
      margin: 0 auto 20px auto;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 4px solid #4CAF50;
  }
  
  .agent-profile-avatar svg {
      width: 60px;
      height: 60px;
      fill: #4CAF50;
  }
  
  #agent-details-name {
      font-size: 1.8rem;
      font-weight: bold;
      margin: 0 0 20px 0;
      color: #333;
  }
  
  .agent-info-list {
      list-style-type: none;
      padding: 0;
      margin: 0;
      text-align: left;
  }
  
  .agent-info-list li {
      display: flex;
      align-items: center;
      font-size: 1.1rem;
      padding: 12px 0;
      border-bottom: 1px solid #4CAF50;
  }
  
  .agent-info-list li:last-child {
      border-bottom: none;
  }
  
  .agent-info-list .info-icon {
      width: 24px;
      height: 24px;
      margin-right: 15px;
      fill: #4CAF50;
  }
  
  .agent-info-list .info-text {
      color: #555;
  }
  
  /* Dark Mode Agent Details */
  body.dark-mode .agent-details-content {
      background-color: #2a2a2a;
      border: 1px solid #444;
  }
  body.dark-mode #agent-details-name {
      color: #ffffff;
  }
  body.dark-mode .agent-profile-avatar {
      background-color: #444;
      border-color: #4CAF50;
  }
  body.dark-mode .agent-profile-avatar svg {
      fill: #4CAF50;
  }
  body.dark-mode .agent-info-list li {
      border-bottom-color: #444;
  }
  body.dark-mode .agent-info-list .info-icon {
      fill: #4CAF50;
  }
  body.dark-mode .agent-info-list .info-text {
      color: #ccc;
  }
  body.dark-mode #agent-details-modal p {
    color: #ccc;
  }
  
  /* ===== Gender Selector ===== */
  .gender-selector {
    display: flex;
    gap: 10px;
    margin: 4px 0 10px 0;
  }

  .gender-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid #ddd;
    background: #f7f7f7;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
  }

  .gender-btn:hover {
    border-color: #4caf50;
    background: rgba(76,175,80,0.07);
    color: #2e7d32;
  }

  .gender-btn.selected {
    border-color: #4caf50;
    background: rgba(76,175,80,0.15);
    color: #2e7d32;
    box-shadow: 0 2px 8px rgba(76,175,80,0.2);
  }

  #gender-female-btn:hover,
  #gender-female-btn.selected {
    border-color: #e91e8c;
    background: rgba(233,30,140,0.10);
    color: #c2185b;
    box-shadow: 0 2px 8px rgba(233,30,140,0.15);
  }

  .gender-icon {
    font-size: 16px;
  }

  .gender-btn-label {
    flex: 1;
    text-align: left;
  }

  /* Check indicator — hidden by default, shown when selected */
  .gender-check-indicator {
    font-size: 13px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #ccc;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
  }

  #gender-male-btn.selected .gender-check-indicator {
    background: #4caf50;
    border-color: #2e7d32;
    color: #fff;
    box-shadow: 0 1px 4px rgba(46,125,50,0.35);
  }

  #gender-female-btn.selected .gender-check-indicator {
    background: #e91e8c;
    border-color: #c2185b;
    color: #fff;
    box-shadow: 0 1px 4px rgba(194,24,91,0.35);
  }

  /* Gender badge on card list */
  .gender-badge {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid;
    backdrop-filter: blur(4px);
  }

  .gender-badge.gender-male {
    background: rgba(33,150,243,0.12);
    color: #1565c0;
    border-color: rgba(33,150,243,0.30);
    box-shadow: 0 2px 6px rgba(33,150,243,0.10);
  }

  .gender-badge.gender-female {
    background: rgba(233,30,140,0.10);
    color: #c2185b;
    border-color: rgba(233,30,140,0.25);
    box-shadow: 0 2px 6px rgba(233,30,140,0.10);
  }

  /* Dark mode adjustments */
  body.dark-mode .gender-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #ccc;
  }

  body.dark-mode .gender-btn .gender-check-indicator {
    border-color: #555;
  }

  body.dark-mode .gender-btn:hover,
  body.dark-mode .gender-btn.selected {
    border-color: #4caf50;
    background: rgba(76,175,80,0.18);
    color: #81c784;
  }

  body.dark-mode #gender-female-btn:hover,
  body.dark-mode #gender-female-btn.selected {
    border-color: #f06292;
    background: rgba(240,98,146,0.15);
    color: #f48fb1;
  }

  body.dark-mode #gender-male-btn.selected .gender-check-indicator {
    background: #388e3c;
    border-color: #81c784;
  }

  body.dark-mode #gender-female-btn.selected .gender-check-indicator {
    background: #ad1457;
    border-color: #f48fb1;
  }

  body.dark-mode .gender-badge.gender-male {
    background: rgba(33,150,243,0.18);
    color: #90caf9;
    border-color: rgba(33,150,243,0.35);
  }

  body.dark-mode .gender-badge.gender-female {
    background: rgba(240,98,146,0.15);
    color: #f48fb1;
    border-color: rgba(240,98,146,0.30);
  }


  /* Gender indicator pill inside Register button */
  .gender-indicator-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    vertical-align: middle;
    pointer-events: none;
  }

  .gender-indicator-male {
    background: rgba(33,150,243,0.18);
    color: #1565c0;
    border: 1px solid rgba(33,150,243,0.35);
  }

  .gender-indicator-female {
    background: rgba(233,30,140,0.15);
    color: #c2185b;
    border: 1px solid rgba(233,30,140,0.30);
  }

  body.dark-mode .gender-indicator-male {
    background: rgba(33,150,243,0.22);
    color: #90caf9;
    border-color: rgba(33,150,243,0.40);
  }

  body.dark-mode .gender-indicator-female {
    background: rgba(240,98,146,0.18);
    color: #f48fb1;
    border-color: rgba(240,98,146,0.35);
  }
