/* Content Variables */
/* Header Variables */
/* Login Variables */
/* Form Variables */
/* Button Variables */
* {
  box-sizing: border-box;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
}

body,
html {
  background-color: #f3f4f7;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  color: #474b50;
}

.form {
  display: flex;
  flex-flow: column;
  width: 100%;
}

.form .form-label {
  display: block;
  padding: 20px 0 10px 0;
  font-weight: 500;
  font-size: 14px;
  color: #474b50;
}

.form .form-group {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.form .form-group .form-icon-left,
.form .form-group .form-icon-right {
  fill: #c1c6cb;
  width: 40px;
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  pointer-events: none;
}

.form .form-group .form-icon-left {
  left: 0;
}

.form .form-group .form-icon-left+.form-input {
  padding-left: 40px;
}

.form .form-group .form-icon-right {
  right: 0;
}

.form .form-group .form-icon-right+.form-input {
  padding-right: 40px;
}

.form .form-group:focus-within .form-icon-left {
  fill: #98a0a8;
}

.form .form-input {
  width: 100%;
  height: 43px;
  border: 1px solid #dee2e6;
  padding: 0 15px;
  border-radius: 4px;
  outline: 0;
  color: #000;
}

.form .form-input::placeholder {
  color: #98a0a8;
}

.form .form-input:focus {
  box-shadow: 0 0 0 3px #c7def7;
  border: 1px solid #75b3f1;
}

.form .form-link {
  color: #2a77eb;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
}

.form .form-link:hover {
  color: #135ac5;
}

.form #remember_me {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #474b50;
  user-select: none;
}

.form #remember_me input {
  margin: 0 10px 0 10px;
  transform: scale(1.1);
  opacity: 0.5;
}

.form #remember_me input:checked {
  opacity: 1;
}

.form p.register-link {
  margin: 0;
  padding: 20px 0 0 0;
  font-size: 14px;
  color: #6b7179;
}

.form div.msg {
  font-size: 14px;
  font-weight: 500;
}

.form div.msg.success {
  padding: 0 0 20px 0;
  color: #0da74d;
}

.form div.msg.success .form-link {
  color: #0b6430;
}

.form div.msg.success .form-link:hover {
  color: #06361a;
}

.form div.msg.error {
  padding: 0 0 20px 0;
  color: #c21e13;
}

.form div.msg.error .form-link {
  color: #74160b;
}

.form div.msg.error .form-link:hover {
  color: #450d07;
}

.form .captcha {
  display: flex;
  padding-bottom: 20px;
}

.form .captcha img {
  min-width: 150px;
}

.form .captcha input {
  height: 50px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form .fb-btn,
.form .gl-btn,
.form .dc-btn,
.form .ms-btn {
  display: flex;
  text-decoration: none;
  position: relative;
  border-radius: 4px;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  width: 100%;
  margin: 15px 0 0 0;
  padding: 15px;
  transition: background-color 0.2s;
}

.form .fb-btn svg,
.form .gl-btn svg,
.form .dc-btn svg,
.form .ms-btn svg {
  position: absolute;
  left: 15px;
  fill: #fff;
}

.form .fb-btn:hover,
.form .gl-btn:hover,
.form .dc-btn:hover,
.form .ms-btn:hover {
  color: #fff;
  transition: background-color 0.2s;
}

.form .fb-btn {
  background-color: #507CBF;
}

.form .fb-btn:hover {
  background-color: #426fb4;
}

.form .gl-btn {
  background-color: #d6523e;
}

.form .gl-btn:hover {
  background-color: #cf412c;
}

.form .dc-btn {
  background-color: #4A67CF;
}

.form .dc-btn:hover {
  background-color: #3656ca;
}

.form .ms-btn {
  background-color: #2F2F2F;
}

.form .ms-btn:hover {
  background-color: #222222;
}

.form.form-small {
  max-width: 300px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  border: 0;
  background: #26313d;
  color: #FFFFFF;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  height: 38px;
  box-shadow: 0px 0px 6px 1px rgba(45, 54, 68, 0.1);
}

.btn:hover {
  background: #202934;
}

.btn.blue {
  background: #2873cf;
}

.btn.blue:hover {
  background: #266cc2;
}

.btn.green {
  background: #4ab46d;
}

.btn.green:hover {
  background: #46a966;
}

.btn.red {
  background: #be4949;
}

.btn.red:hover {
  background: #b74141;
}

.btn.alt {
  color: #75797e;
  border: 1px solid #d4dbde;
  box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.03);
  background: #f1f3f4;
}

.btn.alt:hover {
  background: #eef1f2;
}

.btn.disabled {
  background: #b1b3b4;
}

.btn.disabled:hover {
  background: #a9abad;
}

.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}

.btn .loader,
.btn .loader::after {
  width: 15px;
  height: 15px;
}

.btn .loader {
  margin: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  border-left: 2px solid rgba(255, 255, 255, 0.9);
}

.login,
.register {
  display: flex;
  flex-flow: column;
  width: 450px;
  max-width: 95%;
  background-color: #ffffff;
  box-shadow: 0px 0px 7px 1px rgba(45, 54, 68, 0.05);
  border-radius: 5px;
  margin: 40px auto;
  padding: 35px;
}

.login .icon,
.register .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 5px auto 0 auto;
  border-radius: 50%;
  background-color: #e2e7ee;
}

.login .icon svg,
.register .icon svg {
  fill: #fff;
}

.login h1,
.register h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  padding: 20px 0 10px 0;
  margin: 0;
}

.login .btn[type=submit],
.register .btn[type=submit] {
  height: 42px;
}

.header {
  background-color: #2c3441;
  height: 60px;
  width: 100%;
}

.header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 0 auto;
  width: 1000px;
  height: 100%;
}

.header .wrapper h1,
.header .wrapper a,
.header .wrapper label {
  display: inline-flex;
  align-items: center;
}

.header .wrapper h1 {
  font-size: 20px;
  padding: 0;
  margin: 0;
  color: #fff;
  font-weight: normal;
}

.header .wrapper label,
.header .wrapper input[type=checkbox] {
  display: none;
}

.header .wrapper label {
  cursor: pointer;
  position: relative;
  height: 40px;
  width: 50px;
  text-decoration: none;
  margin-right: 5px;
  border-radius: 5px;
}

.header .wrapper label::before,
.header .wrapper label::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 20px;
  height: 2px;
  background-color: #616b78;
}

.header .wrapper label::after {
  top: 26px;
}

.header .wrapper label:hover,
.header .wrapper label:active,
.header .wrapper input[type=checkbox]:checked~label {
  background-color: #242a35;
}

.header .wrapper label:hover::before,
.header .wrapper label:hover::after,
.header .wrapper label:active::before,
.header .wrapper label:active::after,
.header .wrapper input[type=checkbox]:checked~label::before,
.header .wrapper input[type=checkbox]:checked~label::after {
  background-color: #798493;
}

.header .wrapper .menu {
  display: flex;
  align-items: center;
}

.header .wrapper .menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 15px;
  padding: 0 14px;
  margin: 0 3px;
  text-decoration: none;
  color: #87919e;
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
}

.header .wrapper .menu a svg {
  fill: #87919e;
  margin: 2px 8px 0 0;
}

.header .wrapper .menu a.alt {
  color: #cdd4df;
}

.header .wrapper .menu a.alt svg {
  fill: #cdd4df;
}

.header .wrapper .menu a:hover,
.header .wrapper .menu a:active,
.header .wrapper .menu a.active {
  color: #eaebec;
  background-color: #242a35;
}

.header .wrapper .menu a:hover svg,
.header .wrapper .menu a:active svg,
.header .wrapper .menu a.active svg {
  fill: #eaebec;
}

.header .wrapper .menu a:last-child {
  margin-right: 0;
}

.content {
  width: 1000px;
  margin: 0 auto;
}

.content .page-title {
  display: flex;
  align-items: center;
  padding: 25px 0 10px 0;
}

.content .page-title .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3dc4ad;
  color: #FFFFFF;
  margin-right: 20px;
  border-radius: 50%;
  height: 55px;
  width: 55px;
  min-height: 55px;
  min-width: 55px;
}

.content .page-title .icon svg {
  fill: #fff;
}

.content .page-title h2 {
  margin: 0;
  padding: 0 0 7px 0;
  font-size: 20px;
  font-weight: 600;
  color: #53585e;
}

.content .page-title p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #777e86;
}

.content .block {
  box-shadow: 0px 0px 7px 1px rgba(45, 54, 68, 0.05);
  margin: 25px 0;
  padding: 25px;
  border-radius: 5px;
  background-color: #fff;
}

.content .block p {
  padding: 7px;
  margin: 0;
}

.content .profile-detail {
  display: flex;
  flex-flow: column;
  font-size: 18px;
  padding: 5px 0;
}

.content .profile-detail strong {
  display: block;
  color: #92979e;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.pad-1 {
  padding: 5px;
}

.mar-1 {
  margin: 5px;
}

.pad-2 {
  padding: 10px;
}

.mar-2 {
  margin: 10px;
}

.pad-3 {
  padding: 15px;
}

.mar-3 {
  margin: 15px;
}

.pad-4 {
  padding: 20px;
}

.mar-4 {
  margin: 20px;
}

.pad-5 {
  padding: 25px;
}

.mar-5 {
  margin: 25px;
}

.pad-bot-1 {
  padding-bottom: 5px;
}

.pad-top-1 {
  padding-top: 5px;
}

.pad-left-1 {
  padding-left: 5px;
}

.pad-right-1 {
  padding-right: 5px;
}

.pad-x-1 {
  padding-left: 5px;
  padding-right: 5px;
}

.pad-y-1 {
  padding-top: 5px;
  padding-bottom: 5px;
}

.mar-bot-1 {
  margin-bottom: 5px;
}

.mar-top-1 {
  margin-top: 5px;
}

.mar-left-1 {
  margin-left: 5px;
}

.mar-right-1 {
  margin-right: 5px;
}

.mar-x-1 {
  margin-left: 5px;
  margin-right: 5px;
}

.mar-y-1 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.pad-bot-2 {
  padding-bottom: 10px;
}

.pad-top-2 {
  padding-top: 10px;
}

.pad-left-2 {
  padding-left: 10px;
}

.pad-right-2 {
  padding-right: 10px;
}

.pad-x-2 {
  padding-left: 10px;
  padding-right: 10px;
}

.pad-y-2 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.mar-bot-2 {
  margin-bottom: 10px;
}

.mar-top-2 {
  margin-top: 10px;
}

.mar-left-2 {
  margin-left: 10px;
}

.mar-right-2 {
  margin-right: 10px;
}

.mar-x-2 {
  margin-left: 10px;
  margin-right: 10px;
}

.mar-y-2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.pad-bot-3 {
  padding-bottom: 15px;
}

.pad-top-3 {
  padding-top: 15px;
}

.pad-left-3 {
  padding-left: 15px;
}

.pad-right-3 {
  padding-right: 15px;
}

.pad-x-3 {
  padding-left: 15px;
  padding-right: 15px;
}

.pad-y-3 {
  padding-top: 15px;
  padding-bottom: 15px;
}

.mar-bot-3 {
  margin-bottom: 15px;
}

.mar-top-3 {
  margin-top: 15px;
}

.mar-left-3 {
  margin-left: 15px;
}

.mar-right-3 {
  margin-right: 15px;
}

.mar-x-3 {
  margin-left: 15px;
  margin-right: 15px;
}

.mar-y-3 {
  margin-top: 15px;
  margin-bottom: 15px;
}

.pad-bot-4 {
  padding-bottom: 20px;
}

.pad-top-4 {
  padding-top: 20px;
}

.pad-left-4 {
  padding-left: 20px;
}

.pad-right-4 {
  padding-right: 20px;
}

.pad-x-4 {
  padding-left: 20px;
  padding-right: 20px;
}

.pad-y-4 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.mar-bot-4 {
  margin-bottom: 20px;
}

.mar-top-4 {
  margin-top: 20px;
}

.mar-left-4 {
  margin-left: 20px;
}

.mar-right-4 {
  margin-right: 20px;
}

.mar-x-4 {
  margin-left: 20px;
  margin-right: 20px;
}

.mar-y-4 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.pad-bot-5 {
  padding-bottom: 25px;
}

.pad-top-5 {
  padding-top: 25px;
}

.pad-left-5 {
  padding-left: 25px;
}

.pad-right-5 {
  padding-right: 25px;
}

.pad-x-5 {
  padding-left: 25px;
  padding-right: 25px;
}

.pad-y-5 {
  padding-top: 10px;
  padding-bottom: 20px;
}

.mar-bot-5 {
  margin-bottom: 25px;
}

.mar-top-5 {
  margin-top: 25px;
}

.mar-left-5 {
  margin-left: 25px;
}

.mar-right-5 {
  margin-right: 25px;
}

.mar-x-5 {
  margin-left: 25px;
  margin-right: 25px;
}

.mar-y-5 {
  margin-top: 25px;
  margin-bottom: 25px;
}

@media screen and (max-width: 1000px) {

  .login,
  .register {
    margin: 20px auto;
    padding: 25px;
  }

  .header .wrapper {
    width: 100%;
  }

  .header .wrapper h1 {
    font-size: 18px;
    padding: 15px;
  }

  .header .wrapper label {
    display: inline-flex;
  }

  .header .wrapper .menu {
    display: none;
    position: absolute;
    top: 100%;
    width: 100%;
    flex-flow: column;
    background-color: #282f3b;
    justify-items: flex-start;
    align-items: flex-start;
    padding: 10px;
  }

  .header .wrapper input[type=checkbox]:checked~.menu {
    display: flex;
  }

  .header .wrapper input[type=checkbox]:checked~.menu a {
    justify-content: flex-start;
    width: 100%;
    padding: 25px;
  }

  .content {
    width: 100%;
    padding: 5px 10px;
  }
}

/* ============================================================
   DASHBOARD STYLES
   For home.php (Dashboard)
   ============================================================ */

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

.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #0b40bc 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
}

.welcome-section h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: 600;
  color: white;
}

.welcome-section p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
  color: white;
}

.tier-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  backdrop-filter: blur(10px);
}




.app-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.app-card:hover::before {
  transform: scaleX(1);
}

.app-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}

.app-card.disabled:hover {
  transform: none;
  box-shadow: none;
}



.app-card h3 {
  margin: 0 0 12px 0;
  color: #2c3e50;
  font-size: 22px;
  font-weight: 600;
}

.app-card p {
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}



.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
  margin: 10px 0;
}

.stat-card .stat-label {
  color: #7f8c8d;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .welcome-section h1 {
    font-size: 24px;
    color: white;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   NAVTOP STYLE
   ============================================================ */
.navtop {
  background-color: #2c3441;
  height: 60px;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navtop div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.navtop h1 {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  padding: 0 20px;
}

.navtop a {
  display: flex;
  align-items: center;
  color: #cdd4df;
  text-decoration: none;
  padding: 0 14px;
  height: 60px;
  font-size: 15px;
  transition: background 0.3s ease, color 0.3s ease;
}

.navtop a:hover,
.navtop a.active {
  background-color: #242a35;
  color: #fff;
}

.navtop a i {
  margin-right: 8px;
  color: inherit;
}

.navtop a.alt {
  margin-left: auto;
  color: #87919e;
}
.api-dashboard {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.tier-card {
  background: #007ef56e;
  color: white;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tier-card h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
}

.tier-card .price {
  font-size: 20px;
  opacity: 0.9;
}

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

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
  text-transform: uppercase;
}

.stat-card .value {
  font-size: 32px;
  font-weight: bold;
  color: #333;
}

.stat-card .subvalue {
  color: #999;
  font-size: 14px;
}

.rate-limit-bar {
  background: #e9ecef !important;
  /* Solid gray background */
  border: 1px solid rgba(0, 0, 0, 0.1);
  height: 10px !important;
  /* Taller */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rate-limit-fill {
  background: linear-gradient(90deg, #007EF5, #4CAF50) !important;
  /* Blue-green gradient */
  /* + shimmer effect with ::after pseudo-element */
}

.usage-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.usage-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px;
}

.usage-table th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.usage-table td {
  padding: 12px 15px;
  border-top: 1px solid #e9ecef;
}

.upgrade-banner {
  background: #fff3cd;
  border: 2px solid #ffc107;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upgrade-btn {
  background: #ffc107;
  color: #000;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.upgrade-btn:hover {
  background: #ffb300;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.features-list li {
  padding: 8px 0;
  opacity: 0.9;
}

.features-list li:before {
  content: "✓ ";
  font-weight: bold;
  margin-right: 8px;
}

/* ============================================================
   ADDITIONAL DASHBOARD STYLES
   Add these to your existing style.css file
   ============================================================ */

/* Rate Limit Info Section */
.rate-limit-info {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 8px;
  margin-top: 25px;
  backdrop-filter: blur(10px);
}

.rate-limit-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  opacity: 0.95;
}

.rate-limit-text strong {
  font-size: 16px;
  font-weight: 600;
}

.rate-limit-bar {
  background: rgba(255, 255, 255, 0.2);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.rate-limit-fill {
  height: 100%;
  background: white;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.rate-limit-warning {
  margin: 12px 0 0 0;
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
}

/* Stat Card Sublabel */
.stat-sublabel {
  color: #bdc3c7;
  font-size: 12px;
  margin-top: 5px;
}

/* Stat Card Hover Effect */
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.company-logo {
  /* height: 36px; */
  /* adjust as needed for your logo size */
  vertical-align: middle;
  display: inline-block;
  margin-right: 10px;
}

.navtop img.company-logo {
  /* height: 38px; */
  object-fit: contain;
  margin-right: 12px;
  transition: opacity 0.2s ease-in-out;
}

.navtop img.company-logo:hover {
  opacity: 0.90;
}

@media (max-width: 768px) {
  .company-logo {
    height: 30px;
    margin-right: 6px;
  }
}

/* ============================================================================
   ENHANCED NAVIGATION STYLES
   Version: 1.0.0
   Modern, responsive navigation
   ============================================================================ */

/* Base Navigation Container */
.navtop-enhanced {
  background: linear-gradient(135deg, #2c3441 0%, #1a1f2b 100%);
  height: 70px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
}

/* Left Group: Logo + Main Links */
.nav-left-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Right Group: Language + Logout */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo .company-logo {
  /* height: 42px; */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Navigation Links Container */
.nav-main-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Individual Nav Links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #cdd4df;
  text-decoration: none;
  font-size: 14px;
  /* font-weight: 500; */
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.nav-link:hover i {
  transform: scale(1.1);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px 3px 0 0;
}

/* Logout Link - Special Styling */
/* .nav-logout {
    color: #ff6b6b;
} */

.nav-logout:hover {
  background: rgba(255, 107, 107, 0.15);
  color: #ff4757;
}

/* Language Switcher */
.nav-lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.lang-btn img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  transition: transform 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.lang-btn:hover img {
  transform: scale(1.1);
}

.lang-btn.active-lang {
  /* border-color: #667eea; */
  background: rgba(102, 126, 234, 0.3);
  /* box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2); */
}

/* ============================================================================
   RTL SUPPORT
   ============================================================================ */

body[lang="ar"] .nav-container {
  flex-direction: row-reverse;
}

body[lang="ar"] .nav-left-group {
  order: 2;
}

body[lang="ar"] .nav-right-group {
  order: 1;
}

@media screen and (max-width: 992px) {
  .navtop-enhanced {
    height: 60px;
  }

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

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

  .nav-left-group {
    order: 1;
    gap: 12px;
  }

  .nav-right-group {
    order: 2;
    /* ✅ Don't hide the right group completely */
    position: relative;
  }

  /* Hide main links on mobile by default */
  .nav-main-links {
    position: fixed;
    top: 60px;
    right: 0;
    width: 280px;
    max-width: 90vw;
    height: calc(100vh - 60px);
    background: linear-gradient(135deg, #2c3441 0%, #1a1f2b 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-main-links.mobile-active {
    transform: translateX(0);
  }

  /* ✅ Hide language buttons by default, show in fixed positions when active */
  .nav-lang-switcher {
    display: none;
  }

  .nav-lang-switcher.mobile-active {
    display: flex;
    position: fixed;
    top: auto;
    bottom: 70px;
    right: 0;
    width: 280px;
    max-width: 90vw;
    background: linear-gradient(135deg, #2c3441 0%, #1a1f2b 100%);
    justify-content: center;
    padding: 16px 24px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
  }

  .nav-logout {
    display: none;
  }

  .nav-logout.mobile-active {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 280px;
    max-width: 90vw;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2c3441 0%, #1a1f2b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    justify-content: flex-start;
    z-index: 1001;
  }

  .nav-link {
    width: 100%;
    padding: 16px 24px;
    border-radius: 0;
    justify-content: flex-start;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    border-left: 4px solid #667eea;
  }
}

/* ✅ RTL support for mobile */
@media screen and (max-width: 992px) {
  body[lang="ar"] .nav-left-group {
    order: 1;
  }

  body[lang="ar"] .nav-main-links {
    left: 0;
    right: auto;
    transform: translateX(-100%);
  }

  body[lang="ar"] .nav-main-links.mobile-active {
    transform: translateX(0);
  }

  body[lang="ar"] .nav-lang-switcher.mobile-active {
    left: 0;
    right: auto;
  }

  body[lang="ar"] .nav-logout.mobile-active {
    left: 0;
    right: auto;
  }

  body[lang="ar"] .nav-link.active {
    border-left: none;
    border-right: 4px solid #667eea;
  }
}

@media screen and (max-width: 576px) {
  .nav-logo .company-logo {
    height: 36px;
  }

  .nav-link {
    font-size: 14px;
    padding: 14px 20px;
  }

  .nav-link i {
    font-size: 14px;
  }
}

/* ============================================================================
   RTL SUPPORT
   ============================================================================ */

body[lang="ar"] .nav-container {
  flex-direction: row-reverse;
}

body[lang="ar"] .nav-left-group {
  order: 2;
}

body[lang="ar"] .nav-right-group {
  order: 1;
}

/* body[lang="ar"] .nav-main-links {
    flex-direction: row-reverse;
} */

/* body[lang="ar"] .nav-link {
    flex-direction: row-reverse;
} */

body[lang="ar"] .nav-link i {
  margin-right: 0;
  margin-left: 8px;
}

body[lang="ar"] .nav-logout i {
  transform: scaleX(-1);
}

body[lang="ar"] .nav-lang-switcher {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: row-reverse;
}

@media screen and (max-width: 992px) {
  body[lang="ar"] .nav-left-group {
    order: 1;
  }

  body[lang="ar"] .nav-main-links {
    left: 0;
    right: auto;
    transform: translateX(-100%);
  }

  body[lang="ar"] .nav-main-links.mobile-active {
    transform: translateX(0);
  }

  body[lang="ar"] .nav-lang-switcher.mobile-active {
    left: 0;
    right: auto;
  }

  body[lang="ar"] .nav-logout.mobile-active {
    left: 0;
    right: auto;
  }

  body[lang="ar"] .nav-link.active {
    border-left: none;
    border-right: 4px solid #667eea;
  }

  body[lang="ar"] .nav-main-links {
    flex-direction: column;
    align-items: stretch;
  }

  body[lang="ar"] .nav-link {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }

  body[lang="ar"] .nav-link i {
    margin-right: 0;
    margin-left: 8px;
  }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.nav-link:focus,
.lang-btn:focus,
.mobile-menu-toggle:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  .navtop-enhanced,
  .nav-link,
  .lang-btn,
  .nav-main-links,
  .mobile-menu-toggle {
    transition: none;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .navtop-enhanced {
    background: linear-gradient(135deg, #1a1f2b 0%, #0d1117 100%);
  }
}

.usage-table table {
  min-width: 600px !important;
}

.usage-table th,
.usage-table td {
  white-space: nowrap;
}

/* Mobile cards - hidden by default */
.usage-table .mobile-cards {
  display: none;
}

/* Tablet responsiveness - horizontal scroll */
@media screen and (max-width: 992px) {
  .usage-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .usage-table table {
    min-width: 500px !important;
  }

  .usage-table th,
  .usage-table td {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Mobile responsiveness - card layout */
@media screen and (max-width: 768px) {
  .usage-table {
    overflow: visible !important;
  }

  /* Hide the traditional table on mobile */
  .usage-table table {
    display: none !important;
  }

  /* Show card-based layout for mobile */
  .usage-table .mobile-cards {
    display: block !important;
  }

  .usage-table .usage-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 15px;
  }

  .usage-table .usage-card:last-child {
    margin-bottom: 0;
  }

  .usage-table .card-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
    font-size: 16px;
  }

  .usage-table .card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f3f4;
  }

  .usage-table .card-row:last-child {
    border-bottom: none;
  }

  .usage-table .card-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
  }

  .usage-table .card-value {
    font-weight: 600;
    color: #333;
    text-align: right;
  }

  .usage-table .no-data-mobile {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #f8f9fa;
    border-radius: 6px;
    font-style: italic;
  }
}

/* RTL support for mobile cards */
html[lang="ar"] .usage-table .card-row {
  flex-direction: row-reverse;
}

html[lang="ar"] .usage-table .card-value {
  text-align: left;
}

/* ============================================================================
   RTL MOBILE NAVIGATION FIXES - COMPREHENSIVE SOLUTION
   ============================================================================ */
@media screen and (max-width: 992px) {

  /* Fix Arabic mobile navigation to be properly RTL */
  body[lang="ar"] .nav-main-links,
  html[lang="ar"] .nav-main-links {
    direction: rtl !important;
    text-align: right !important;
  }

  body[lang="ar"] .nav-lang-switcher.mobile-active,
  html[lang="ar"] .nav-lang-switcher.mobile-active {
    direction: rtl !important;
  }

  body[lang="ar"] .nav-logout.mobile-active,
  html[lang="ar"] .nav-logout.mobile-active {
    direction: rtl !important;
    text-align: right !important;
  }

  /* Ensure individual nav links are RTL */
  body[lang="ar"] .nav-link,
  html[lang="ar"] .nav-link {
    text-align: right !important;
    direction: rtl !important;
    justify-content: flex-start !important;
  }

  /* Fix icon positioning for RTL */
  body[lang="ar"] .nav-link i,
  html[lang="ar"] .nav-link i {
    margin-right: 0 !important;
    margin-left: 8px !important;
  }

  /* Ensure text spans are RTL */
  body[lang="ar"] .nav-link span,
  html[lang="ar"] .nav-link span {
    direction: rtl !important;
    text-align: right !important;
    display: inline-block;
  }
}

/* 🚨 EMERGENCY RTL FIX - COPY THIS TO YOUR style.css FILE 🚨 */

/* Add this CSS at the VERY END of your style.css file */

/* Force RTL for Arabic mobile navigation - Maximum specificity */
@media screen and (max-width: 992px) {

  /* Target the main navigation container */
  body[lang="ar"] .navtop-enhanced .nav-main-links,
  html[lang="ar"] .navtop-enhanced .nav-main-links,
  body[lang="ar"] .nav-main-links,
  html[lang="ar"] .nav-main-links {
    direction: rtl !important;
    text-align: right !important;
  }

  /* Target individual navigation links with maximum specificity */
  body[lang="ar"] .navtop-enhanced .nav-main-links .nav-link,
  html[lang="ar"] .navtop-enhanced .nav-main-links .nav-link,
  body[lang="ar"] .navtop-enhanced .nav-link,
  html[lang="ar"] .navtop-enhanced .nav-link,
  body[lang="ar"] .nav-main-links .nav-link,
  html[lang="ar"] .nav-main-links .nav-link,
  body[lang="ar"] .nav-link,
  html[lang="ar"] .nav-link {
    direction: rtl !important;
    text-align: right !important;
    justify-content: flex-start !important;
    flex-direction: row-reverse !important;
    display: flex !important;
    align-items: center !important;
    padding-right: 24px !important;
    padding-left: 16px !important;
  }

  /* Target icons with maximum specificity */
  body[lang="ar"] .navtop-enhanced .nav-main-links .nav-link i,
  html[lang="ar"] .navtop-enhanced .nav-main-links .nav-link i,
  body[lang="ar"] .navtop-enhanced .nav-link i,
  html[lang="ar"] .navtop-enhanced .nav-link i,
  body[lang="ar"] .nav-main-links .nav-link i,
  html[lang="ar"] .nav-main-links .nav-link i,
  body[lang="ar"] .nav-link i,
  html[lang="ar"] .nav-link i {
    margin-right: 0 !important;
    margin-left: 8px !important;
    order: 2 !important;
  }

  /* Target text spans with maximum specificity */
  body[lang="ar"] .navtop-enhanced .nav-main-links .nav-link span,
  html[lang="ar"] .navtop-enhanced .nav-main-links .nav-link span,
  body[lang="ar"] .navtop-enhanced .nav-link span,
  html[lang="ar"] .navtop-enhanced .nav-link span,
  body[lang="ar"] .nav-main-links .nav-link span,
  html[lang="ar"] .nav-main-links .nav-link span,
  body[lang="ar"] .nav-link span,
  html[lang="ar"] .nav-link span {
    direction: rtl !important;
    text-align: right !important;
    display: inline-block !important;
    order: 1 !important;
    flex-grow: 1 !important;
  }
}

/* Force RTL on all child elements to override any conflicting styles */
@media screen and (max-width: 992px) {

  body[lang="ar"] .nav-main-links,
  html[lang="ar"] .nav-main-links {
    direction: rtl !important;
  }

  body[lang="ar"] .nav-main-links *,
  html[lang="ar"] .nav-main-links * {
    direction: rtl !important;
    text-align: right !important;
  }

  /* Specific override for navigation links */
  body[lang="ar"] .nav-main-links a,
  html[lang="ar"] .nav-main-links a {
    direction: rtl !important;
    text-align: right !important;
    flex-direction: row-reverse !important;
  }
}

/* 🚨 END OF EMERGENCY RTL FIX 🚨 */
/* ============================================================================
   MOBILE MENU RTL FIXES - SLIDE FROM RIGHT FOR ARABIC
   ============================================================================ */

@media screen and (max-width: 992px) {

  /* Arabic - Menu slides from RIGHT */
  body[lang="ar"] .nav-main-links,
  html[lang="ar"] .nav-main-links {
    left: auto !important;
    right: 0 !important;
    transform: translateX(100%) !important;
    direction: rtl;
    text-align: right;
  }

  body[lang="ar"] .nav-main-links.mobile-active,
  html[lang="ar"] .nav-main-links.mobile-active {
    transform: translateX(0) !important;
  }

  /* Language switcher positioning for RTL */
  body[lang="ar"] .nav-lang-switcher.mobile-active,
  html[lang="ar"] .nav-lang-switcher.mobile-active {
    left: auto !important;
    right: 0 !important;
    direction: rtl;
  }

  /* Logout button positioning for RTL */
  body[lang="ar"] .nav-logout.mobile-active,
  html[lang="ar"] .nav-logout.mobile-active {
    left: auto !important;
    right: 0 !important;
    direction: rtl;
    text-align: right;
  }

  /* Nav links alignment for RTL */
  body[lang="ar"] .nav-link,
  html[lang="ar"] .nav-link {
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    text-align: right;
  }

  body[lang="ar"] .nav-link i,
  html[lang="ar"] .nav-link i {
    margin-left: 8px !important;
    margin-right: 0 !important;
  }

  /* Active border on right for RTL */
  body[lang="ar"] .nav-link.active,
  html[lang="ar"] .nav-link.active {
    border-left: none !important;
    border-right: 4px solid #667eea;
  }
}

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



.tier-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-left: 4px solid #007EF5;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #007EF5;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.app-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.app-card.active {
  border-color: #007EF5;
  background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
}

.app-icon {
  /* width: 60px; */
  height:60px;
  margin-bottom: 1rem;
  border-radius: 10px;
  display: block;
}



.app-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.app-stat {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007EF5;
}

.stat-text {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.app-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.app-actions a {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.btn-outline-custom {
  border: 1px solid #007EF5;
  color: #007EF5;
  background: transparent;
}

.btn-primary-custom:hover,
.btn-outline-custom:hover {
  background: #0056b3;
  color: white;
  border-color: #0056b3;
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007EF5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.no-apps-message {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-apps-message i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 1rem;
}

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

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

  .app-actions {
    flex-direction: column;
  }

  .app-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   PRICING PAGE STYLES
   For pricing.php
   ============================================================ */

/* Base Layout */
.pricing-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 60px 15px;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.pricing-section h2 {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #2c3e50;
}

/* Enhanced Card Styling */
.pricing-card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: white;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.current-plan {
  border: 3px solid #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.pricing-card.current-plan::before {
  content: "Current Plan";
  position: absolute;
  top: 15px;
  right: 15px;
  background: #28a745;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

.pricing-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 2rem;
}

/* Enhanced Header */
.pricing-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}


.highlight .pricing-header {
  background: linear-gradient(135deg, #5a6fd8 0%, #6b4d94 100%);
}

/* Enhanced Price Section */
.price {
  font-size: 3rem;
  font-weight: 800;
  color: #667eea;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  text-align: center;
  line-height: 1;
}

.price span {
  display: inline-block;
}

.price-small {
  font-size: 1.1rem;
  color: #6c757d;
  font-weight: 500;
}

.price-small,
.subtext,
.savings-badge {
  text-align: center !important;
}

.subtext {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.savings-badge {
  display: inline-block;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 15px 0;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Enhanced Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  flex-grow: 1;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list li::before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-left: 10px;
}

.feat-num {
  font-weight: 700;
  color: #667eea;
}

/* RTL Adjustments */
html[lang="ar"] .feature-list {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .feature-list li {
  text-align: right;
  direction: rtl;
  flex-direction: row-reverse;
}

html[lang="ar"] .feat-num {
  margin-left: 6px;
}

/* Enhanced Buttons */
.btn-select-plan {
  width: 100%;
  margin-top: auto;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-select-plan.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-select-plan.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6b4d94 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-select-plan.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
}

.btn-select-plan.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.btn-select-plan.btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
}

/* App Header Enhancement */
.app-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.app-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Error Message Styling */
.error-message {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
  text-align: center;
}

.error-message i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* No Plans Message */
.no-plans-message {
  text-align: center;
  padding: 4rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.no-plans-message i {
  font-size: 5rem;
  color: #ddd;
  margin-bottom: 2rem;
}

/* Plan Comparison Enhancements */
.plan-features-comparison {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.feature-highlight {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 5px 0;
  border-left: 4px solid #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pricing-section {
    padding: 30px 10px;
  }

  .price {
    font-size: 2.5rem;
  }

  .pricing-card .card-body {
    padding: 1.5rem;
  }

  .pricing-header {
    padding: 1.5rem;
    font-size: 1.2rem;
  }

  .app-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
}

/* Fix for RTL app-badge positioning */
html[lang="ar"] .app-card .app-badge,
body[lang="ar"] .app-card .app-badge {
  position: absolute;
  top: 15px;
  right: auto !important;
  /* Remove right positioning */
  left: 15px !important;
  /* Position on left side in RTL */
}

/* Ensure LTR positioning remains correct */
.app-card .app-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  left: auto;
}

/* Optional: Add some spacing adjustments for RTL */
html[lang="ar"] .app-card,
body[lang="ar"] .app-card {
  text-align: right;
  direction: rtl;
}

/* Fix icon positioning in RTL */
html[lang="ar"] .app-card .app-icon,
body[lang="ar"] .app-card .app-icon {
  margin-left: 0;
  margin-right: 0;
}

/* Adjust app-stats for RTL */
html[lang="ar"] .app-stats,
body[lang="ar"] .app-stats {
  direction: rtl;
}

/* Fix text alignment in RTL */
html[lang="ar"] .app-card h3,
html[lang="ar"] .app-card p,
body[lang="ar"] .app-card h3,
body[lang="ar"] .app-card p {
  text-align: right;
}

/* ============================================================
   CLEANED & OPTIMIZED CSS - RTL FIXES
   ============================================================ */

/* Remove redundant app-badge styles and keep only the latest */
.app-card .app-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  left: auto;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* RTL app-badge positioning - single source */
html[lang="ar"] .app-card .app-badge,
body[lang="ar"] .app-card .app-badge {
  right: auto !important;
  left: 15px !important;
}

/* RTL app card adjustments */
html[lang="ar"] .app-card,
body[lang="ar"] .app-card {
  text-align: right;
  direction: rtl;
}

/* Fix feature-list RTL - remove text-start conflict */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  flex-grow: 1;
  text-align: left;
  /* Default LTR */
}

/* RTL feature list fixes */
html[lang="ar"] .feature-list,
body[lang="ar"] .feature-list {
  text-align: right !important;
  direction: rtl !important;
}

html[lang="ar"] .feature-list li,
body[lang="ar"] .feature-list li {
  text-align: right;
  direction: rtl;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Fix checkmark positioning in RTL */
html[lang="ar"] .feature-list li::before,
body[lang="ar"] .feature-list li::before {
  margin-left: 0;
  margin-right: 10px;
  order: 2;
}

/* Feature numbers in RTL */
html[lang="ar"] .feat-num,
body[lang="ar"] .feat-num {
  margin-left: 6px;
}

/* Remove redundant app-stats RTL - keep only if needed */
html[lang="ar"] .app-stats,
body[lang="ar"] .app-stats {
  direction: rtl;
}

/* Remove redundant text alignments - keep only in app-card RTL */
html[lang="ar"] .app-card h3,
html[lang="ar"] .app-card p,
body[lang="ar"] .app-card h3,
body[lang="ar"] .app-card p {
  text-align: right;
}

/* Fix RTL feature number positioning */
html[lang="ar"] .feature-list li,
body[lang="ar"] .feature-list li {
  text-align: right;
  direction: rtl;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Move the number to appear AFTER the text in RTL */
html[lang="ar"] .feature-list li .feat-num,
body[lang="ar"] .feature-list li .feat-num {
  order: 2;
  margin-left: 6px;
  margin-right: 0;
}

/* Ensure the checkmark stays on the right side in RTL */
html[lang="ar"] .feature-list li::before,
body[lang="ar"] .feature-list li::before {
  order: 3;
  margin-left: 0;
  margin-right: 10px;
}

/* The text content should come first in RTL */
html[lang="ar"] .feature-list li span:not(.feat-num),
body[lang="ar"] .feature-list li span:not(.feat-num) {
  order: 1;
}

/* Fix for MOST POPULAR ribbon visibility */
.highlight {
  border: 3px solid #667eea;
  position: relative;
  overflow: visible;
  /* Ensure ribbon is not clipped */
}

.highlight::after {
  content: attr(data-most-popular);
  position: absolute;
  top: -12px;
  /* Adjust if needed */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  z-index: 10;
  /* Ensure it appears above other elements */
}

/* Ensure the card body doesn't overlap the ribbon */
.highlight .card-body {
  position: relative;
  z-index: 1;
}

.badge-success {
  background-color: #198754 !important;
  color: white !important;
}

.badge-secondary {
  background-color: #6c757d !important;
  color: white !important;
}

/* Employee Limit Info Styling */
.employee-limit-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 15px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.employee-limit-info:hover {
  border-color: #007EF5;
  box-shadow: 0 2px 8px rgba(0, 126, 245, 0.1);
}

.employee-limit-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.employee-limit-display i {
  color: #007EF5;
  font-size: 16px;
  min-width: 16px;
}

.employee-limit-display strong {
  color: #155724;
  font-weight: 600;
}

.employee-limit-display strong .unlimited {
  color: #28a745;
  font-weight: 700;
}

.employee-limit-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e9ecef;
}

.employee-limit-note small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6c757d;
}

.employee-limit-note i {
  color: #6c757d;
  font-size: 12px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .employee-limit-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .employee-limit-info {
    padding: 10px 12px;
    margin: 10px 0;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .employee-limit-info {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .employee-limit-note {
    border-top-color: #4a5568;
  }

  .employee-limit-note small {
    color: #a0aec0;
  }

  .employee-limit-note i {
    color: #a0aec0;
  }
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* EXACT 2 CARDS PER ROW */
  gap: 25px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .apps-grid {
    grid-template-columns: 1fr;
    /* 1 card on mobile */
  }
}

/* Modern Navigation */
.modern-nav {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  max-width: 45px;
  height: auto;
  margin-right: 12px;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.nav-lang {
  display: flex;
  align-items: center;
}

.lang-switcher-modern {
  display: flex;
  /* background: rgba(255,255,255,0.15); */
  /* border-radius: 50px; */
  padding: 4px;
  /* backdrop-filter: blur(10px); */
  /* border: 1px solid rgba(255,255,255,0.2); */
}

.lang-btn-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.lang-btn-modern:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.lang-btn-modern.active {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-name {
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.lang-switcher-modern {
  direction: ltr !important;
  flex-direction: row !important;
}

/* Original styles with adjustments */
.email-notice {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 1px solid #90caf9;
  border-radius: 12px;
  padding: 15px;
  color: #1976d2;
  font-size: 14px;
  margin: 20px 0;
  text-align: center;
  font-weight: 500;
}

.terms-container {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  transition: border-color 0.3s;
}

.terms-container:hover {
  border-color: #007bff;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: #495057;
  margin: 0;
  cursor: pointer;
}

.terms-checkbox {
  margin-right: 12px;
  margin-top: 3px;
  transform: scale(1.2);
}

[dir="rtl"] .terms-checkbox {
  margin-right: 0;
  margin-left: 12px;
}

.success-page {
  background: white;
  border-radius: 15px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.success-header {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 30px;
  text-align: center;
  border-radius: 15px 15px 0 0;
}

.bilingual-sections {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 30px;
}

.lang-section {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.lang-section.ar {
  direction: rtl;
  text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 12px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .logo-img {
    max-width: 40px;
    margin-right: 10px;
  }

  .logo-text {
    font-size: 20px;
  }

  .lang-btn-modern {
    padding: 6px 12px;
    font-size: 13px;
  }

  .bilingual-sections {
    flex-direction: column;
    padding: 20px;
  }
}


/* Activation Page Styles */
.activation-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.activation-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
}

.activation-header {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 40px;
  text-align: center;
  position: relative;
}

.activation-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="30" cy="30" r="20" fill="rgba(255,255,255,0.05)"/><circle cx="70" cy="70" r="15" fill="rgba(255,255,255,0.05)"/></svg>') center/cover;
  pointer-events: none;
}

.activation-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.activation-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
}

.activation-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.bilingual-content {
  display: flex;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-section {
  flex: 1;
  min-width: 280px;
  padding: 30px;
  border-radius: 15px;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.lang-section:hover {
  border-color: #007bff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lang-section.ar {
  direction: rtl;
  text-align: right;
}

.lang-section h3 {
  color: #003366;
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-section.ar h3 {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.success-message {
  color: #28a745;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.error-message {
  /* color: #dc3545; */
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.login-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.login-link:hover {
  background: #007bff;
  color: white;
}

.action-buttons {
  text-align: center;
  padding: 30px 40px;
  background: #f8f9fa;
}

.btn-primary-modern {
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px;
}

.btn-primary-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
  color: white;
}

.btn-secondary-modern {
  background: linear-gradient(135deg, #6c757d, #495057);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px;
}

.btn-secondary-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
  color: white;
}

.countdown-timer {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 12px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .logo-img {
    max-width: 40px;
    margin-right: 10px;
  }

  .logo-text {
    font-size: 20px;
  }

  .lang-btn-modern {
    padding: 6px 12px;
    font-size: 13px;
  }

  .bilingual-content {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
  }

  .activation-title {
    font-size: 2rem;
  }

  .action-buttons {
    padding: 20px;
  }

  .btn-primary-modern,
  .btn-secondary-modern {
    display: block;
    margin: 10px 0;
  }
}

.countdown-timer {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
  font-weight: 600;
}

.reset-info {
  padding: 4px 0;
  border-top: 1px solid #e9ecef;
}

/* ============================
   MODERN BUTTON ENHANCEMENT SYSTEM
   Enhanced by Claude - Unified modern styling for Google, Facebook & Register buttons
   Uses language-data.js for full internationalization support
   ============================ */

/* OAuth Buttons Section */
.oauth-buttons-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* OAuth Divider */
.oauth-divider {
  position: relative;
  text-align: center;
  margin: 15px 0;
}

.oauth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
  z-index: 1;
}

.oauth-divider-text {
  background: white;
  padding: 0 15px;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

/* Modern OAuth Button Base */
.btn-oauth-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.3px;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-oauth-modern:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-oauth-modern:active {
  transform: translateY(0);
}

/* Google Button Specific Styling */
.btn-google-modern {
  background: linear-gradient(135deg, #4285f4, #34a853, #ea4335, #db4437);
  background-size: 200% 200%;
  animation: googleGradient 3s ease infinite;
}

.btn-google-modern:hover {
  background-position: right center;
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

@keyframes googleGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Facebook Button Specific Styling */
.btn-facebook-modern {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.btn-facebook-modern:hover {
  background: linear-gradient(135deg, #166fe5, #1976d2);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

/* OAuth Icons */
.oauth-icon {
  fill: white;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-oauth-modern:hover .oauth-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Shimmer Effect for OAuth Buttons */
.btn-oauth-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-oauth-modern:hover::before {
  left: 100%;
}

/* Register Section */
.register-section {
  margin-top: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Register Divider */
.register-divider {
  position: relative;
  text-align: center;
  margin: 15px 0 5px 0;
  width: 100%;
}

.register-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d0d0d0 20%, #d0d0d0 80%, transparent);
  z-index: 1;
}

.register-divider-text {
  background: white;
  padding: 0 15px;
  color: #6b7179;
  font-size: 13px;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

/* Modern Register Button */
.btn-register-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.5px;
  min-width: 160px;
}

.btn-register-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.35);
  color: white;
  background: linear-gradient(135deg, #218838, #1e7e34);
  text-decoration: none;
}

.btn-register-modern:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
}

/* Register Button Shimmer Effect */
.btn-register-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-register-modern:hover::before {
  left: 100%;
}

/* Register Icon */
.register-icon {
  fill: white;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-register-modern:hover .register-icon {
  transform: scale(1.1);
}

/* RTL Support for All Modern Buttons */
[dir="rtl"] .oauth-buttons-section,
[dir="rtl"] .register-section {
  text-align: center;
}

[dir="rtl"] .btn-oauth-modern,
[dir="rtl"] .btn-register-modern {
  flex-direction: row-reverse;
}

[dir="rtl"] .oauth-divider-text,
[dir="rtl"] .register-divider-text {
  direction: rtl;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .btn-oauth-modern {
    font-size: 14px;
    padding: 12px 20px;
    min-width: 180px;
  }

  .btn-register-modern {
    font-size: 14px;
    padding: 12px 24px;
    min-width: 140px;
  }

  .oauth-icon,
  .register-icon {
    width: 16px;
    height: 16px;
  }

  .oauth-divider-text,
  .register-divider-text {
    font-size: 11px;
  }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .btn-oauth-modern,
  .btn-register-modern {
    padding: 13px 22px;
  }
}

/* Accessibility - Focus States */
.btn-oauth-modern:focus,
.btn-register-modern:focus {
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(66, 133, 244, 0.3);
}

.btn-google-modern:focus {
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.25), 0 0 0 3px rgba(66, 133, 244, 0.3);
}

.btn-facebook-modern:focus {
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.25), 0 0 0 3px rgba(24, 119, 242, 0.3);
}

.btn-register-modern:focus {
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25), 0 0 0 3px rgba(40, 167, 69, 0.3);
}

/* Form Integration */
.form .oauth-buttons-section,
.form .register-section {
  margin-top: 25px;
}

/* ============================
   MODERN LOGIN BUTTON STYLING
   Enhanced to match OAuth and Register buttons
   ============================ */

/* Modern Login Button */
.btn-login-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.5px;
  width: 100%;
  margin-bottom: 20px;
  cursor: pointer;
}

/* Login Button Hover Effects */
.btn-login-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
  color: white;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* Login Button Active State */
.btn-login-modern:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* Login Button Shimmer Effect */
.btn-login-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-login-modern:hover::before {
  left: 100%;
}

/* Login Icon Styling */
.login-icon {
  fill: white;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-login-modern:hover .login-icon {
  transform: scale(1.1) translateX(2px);
}

/* Login Button Focus State */
.btn-login-modern:focus {
  outline: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25), 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* RTL Support for Login Button */
[dir="rtl"] .btn-login-modern {
  flex-direction: row-reverse;
}

[dir="rtl"] .btn-login-modern:hover .login-icon {
  transform: scale(1.1) translateX(-2px);
}

/* Mobile Responsive for Login Button */
@media (max-width: 768px) {
  .btn-login-modern {
    font-size: 14px;
    padding: 13px 28px;
  }

  .login-icon {
    width: 16px;
    height: 16px;
  }
}

/* Loading States (Optional Enhancement) */
.btn-oauth-modern.loading,
.btn-register-modern.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-oauth-modern.loading::after,
.btn-register-modern.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: rgba(255, 255, 255, 0.8);
  animation: spin 1s linear infinite;
  right: 15px;
}

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

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
  .oauth-divider::before,
  .register-divider::before {
    background: linear-gradient(90deg, transparent, #404040 20%, #404040 80%, transparent);
  }

  .oauth-divider-text,
  .register-divider-text {
    background: #2a2a2a;
    color: #b0b0b0;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn-oauth-modern,
  .btn-register-modern {
    border: 2px solid currentColor;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .btn-oauth-modern,
  .btn-register-modern,
  .oauth-icon,
  .register-icon {
    transition: none;
  }

  .btn-oauth-modern:hover,
  .btn-register-modern:hover {
    transform: none;
  }

  @keyframes googleGradient {
    0%, 100% { background-position: 0% 50%; }
  }
}
/* Container and Column Centering */
@media (min-width: 992px) {
    .row.align-items-stretch {
        align-items: center !important;
    }

    .col-lg-5, .col-lg-7 {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile Centering */
@media (max-width: 991px) {
    .col-lg-5, .col-lg-7 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .login {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .payroll-engine-banner {
        width: 100%;
        text-align: center;
    }

    /* Center form elements */
    .form-group {
        margin-left: auto;
        margin-right: auto;
    }

    #remember_me {
        justify-content: center;
        text-align: center;
    }

    /* Center buttons */
    .btn-login-modern,
    .btn-oauth-modern,
    .btn-register-modern {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Banner Text Centering for All Screens */
.payroll-engine-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.payroll-engine-banner > div {
    width: 100%;
}

/* Why Choose Section Centering */
.mt-4.p-4.rounded-4 {
    text-align: center;
}

.mt-4.p-4.rounded-4 ul.row {
    justify-content: center;
    text-align: left;
}

.mt-4.p-4.rounded-4 .col-md-6 {
    display: flex;
    align-items: center;
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    .payroll-engine-banner h1 {
        font-size: 1.5rem !important;
    }

    .payroll-engine-banner p {
        font-size: 1rem !important;
    }

    .payroll-engine-banner a {
        padding: 14px 35px !important;
        font-size: 0.95rem !important;
    }
}