/* Base variables and theme tokens */
:root {
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
  --container-max: 1200px;
  --shadow-strong: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 2px 10px rgba(0, 0, 0, 0.15);
  --underline-height: 3px;
  --navbar-offset: 60px;
  /* Professional Navbar Gradient */
  --navbar-gradient: linear-gradient(
    135deg,
    #b85450 0%,
    #a8559f 30%,
    #8b6fa8 50%,
    #7b88c7 70%,
    #6366f1 85%,
    #818cf8 100%
  );
  /* Professional Accent Underline */
  --navbar-underline: linear-gradient(
    135deg,
    #c85a5a 0%,
    #b865b0 30%,
    #9a7ab8 50%,
    #8b95d0 70%,
    #7377f5 85%,
    #9195ff 100%
  );
  --btn-gradient: linear-gradient(
    135deg,
    #a8559f 0%,
    #8b6fa8 50%,
    #7b88c7 100%
  );
  --btn-gradient-hover: linear-gradient(
    135deg,
    #7b88c7 0%,
    #8b6fa8 50%,
    #a8559f 100%
  );
}

/* DARK THEME */
body.theme-dark {
  --bg-gradient: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 30%,
    #334155 60%,
    #1e293b 100%
  );
  --text-color: #e0e0e0;
  --muted-text: #b8b8b8;
  --heading-color: #ffffff;
  --heading-sub: #a1acf1;
  --container-bg: #1e293b;
  --border-color: rgba(67, 67, 74, 0.53);
  --table-header-bg: #0f172a;
  --card-bg: #232f43;
  --info-item-bg: rgba(178, 126, 215, 0.09);
  --input-bg: #0f172a;
  --link: #a5b4fc;
  --link-hover: #6366f1;
  --blockquote: #6366f1;
  --dropdown-bg: #1e293b;
  --shadow-elev: 0 4px 20px rgba(0, 0, 0, 0.5);
  --primary-blue: #a1acf1;
  --primary-blue-hover: #8a98f5;
  --accent-blue: #a5b4fc;
  --accent-blue-light: #e3e8ff;
  --light-blue-text: #d5b5ff;
  --link: var(--accent-blue);
  --link-hover: var(--primary-blue);
  --blockquote: var(--primary-blue);
  --bg-dark: #18212f;
  --footer-bottom-bg: #1a2332;
  --footer-border: #334155;
  --footer-section-bg: linear-gradient(135deg, #1f2a3c 0%, #232f43 100%);
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --card-header-bg: #1e293b;
  --item-bg: #1e293b;
  --item-hover-bg: #2a3a52;
  --primary-color: #4d9fff;
  --primary-hover: #0d6efd;
  --primary-shadow: rgba(13, 110, 253, 0.4);
  --info-text: #a3d5f0;
  --info-bg: #1a4a5e;
  --info-border: #2d5f74;
  --shadow-color: rgba(0, 123, 255, 0.3);
}

/* LIGHT THEME */
body.theme-light {
  --bg-gradient: linear-gradient(
    135deg,
    #f8fafc 0%,
    #f1f5f9 30%,
    #e2e8f0 60%,
    #f1f5f9 100%
  );
  --text-color: #333333;
  --muted-text: #666666;
  --heading-color: #222222;
  --heading-sub: #444444;
  --container-bg: #ffffff;
  --border-color: #e2e8f0;
  --table-header-bg: #f1f5f9;
  --card-bg: rgba(35, 47, 67, 0.02);
  --info-item-bg: rgba(178, 126, 215, 0.09);
  --input-bg: #ffffff;
  --link: var(--primary-blue);
  --link-hover: var(--primary-blue-hover);
  --blockquote: var(--primary-blue);
  --dropdown-bg: #ffffff;
  --shadow-elev: 0 4px 20px rgba(0, 0, 0, 0.3);
  --primary-blue: #6366f1;
  --primary-blue-hover: #818cf8;
  --light-blue-text: #d5b5ff;
  --accent-blue: #a5b4fc;
  --primary-blue: #6366f1;
  --primary-blue-hover: #818cf8;
  --accent-blue: #a5b4fc;
  --bg-dark: #e0edf3;
  --footer-nav-bg: #f8fafc;
  --footer-bottom-bg: #f1f5f9;
  --footer-border: #e2e8f0;
  --footer-section-bg: #e0edf4;
  --text-primary: #333333;
  --text-secondary: #666666;
  --card-header-bg: #f8f9fa;
  --item-bg: #f8f9fa;
  --item-hover-bg: #ffffff;
  --primary-color: #007bff;
  --primary-hover: #0056b3;
  --primary-shadow: rgba(0, 123, 255, 0.3);
  --info-text: #0c5460;
  --info-bg: #d1ecf1;
  --info-border: #bee5eb;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Global Resets & Layout */
* {
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: var(--bg-gradient);
  background-image:
    url('/assets/img/contour-pattern-bg.svg'), var(--bg-gradient);
  background-repeat: repeat, no-repeat;
  color: var(--text-color);
  line-height: 1.6;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--container-bg);
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  padding: 20px;
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  box-shadow: var(--shadow-strong);
  border-top: none;
}

.container.container-90 {
  max-width: 90%;
  width: 90%;
}

.container.container-70 {
  max-width: 70%;
  width: 70%;
}

.container.container-1200 {
  max-width: 1200px;
}

.container.container-fullwidth {
  max-width: 100%;
  width: 100%;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.container .card,
.container pre,
.container code {
  border-radius: var(--radius-large);
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--heading-color);
  font-weight: 300;
  letter-spacing: 1px;
}
h2 {
  font-size: 1.8em;
  margin: 30px 0 15px 0;
  color: var(--heading-sub);
  font-weight: 300;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
h3 {
  font-size: 1.3em;
  margin: 20px 0 10px 0;
  color: var(--text-color);
  font-weight: 400;
}
h4,
h5,
h6 {
  color: var(--text-color);
}
p {
  margin-bottom: 15px;
  color: var(--muted-text);
}

/* Links with FontAwesome icon support */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dotted var(--link);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}
a .fas,
a .fab,
a .far {
  font-size: 0.9em;
  opacity: 0.8;
}
a:hover .fas,
a:hover .fab,
a:hover .far {
  opacity: 1;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Exclude overview action buttons from global link styles */
a.user-overview-action-btn,
a.user-overview-action-btn:hover,
a.user-overview-action-btn:focus,
a.user-overview-action-btn:active,
a.user-overview-action-btn:visited {
  color: var(--text-color) !important;
  border-bottom: none !important;
}

a.user-overview-action-btn .fas,
a.user-overview-action-btn .fab,
a.user-overview-action-btn .far {
  opacity: 1 !important;
  transform: none !important;
}

a.user-overview-action-btn:hover .fas,
a.user-overview-action-btn:hover .fab,
a.user-overview-action-btn:hover .far,
button.user-overview-action-btn:hover .fas,
button.user-overview-action-btn:hover .fab,
button.user-overview-action-btn:hover .far {
  opacity: 1 !important;
  transform: scale(1.15) rotate(5deg) !important;
}

/* Lists */
ul,
ol {
  margin: 15px 0 15px 25px;
  color: var(--muted-text);
}
li {
  margin-bottom: 8px;
}
ul {
  list-style-type: disc;
}

/* Code blocks */
code,
pre {
  font-family: 'Courier New', 'Monaco', monospace;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  padding: 2px 6px;
  font-size: 0.9em;
}
pre {
  padding: 15px;
  margin: 15px 0;
  overflow-x: auto;
  border-radius: var(--radius-medium);
}
body.theme-dark pre code {
  color: #81c784;
  background: transparent;
  border: none;
}
body.theme-light pre code {
  color: #2d8659;
  background: transparent;
  border: none;
}

/* Blockquote with icon support */
blockquote {
  border-left: 4px solid var(--blockquote);
  padding-left: 24px;
  margin: 20px 0;
  font-style: italic;
  color: var(--muted-text);
  position: relative;
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  background: rgba(37, 99, 235, 0.05);
  padding: 16px 24px;
}
blockquote::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--blockquote);
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 1.2em;
  opacity: 0.3;
}
body.theme-light blockquote {
  background: rgba(37, 99, 235, 0.03);
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 30px 0;
}

/* Grid utility for non-Skeleton sections */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

main {
  flex: 1;
}

.footer {
  margin-top: 60px;
}

.footer-navigation {
  padding: 35px 0;
}

.footer-nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

.footer-nav-section {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--footer-section-bg);
  border-radius: var(--radius-large);
  flex: 0 1 auto;
}

/* 2 items per row on tablet */
@media (min-width: 768px) {
  .footer-nav-section {
    flex: 0 1 auto;
  }
}

/* 3 items per row on desktop */
@media (min-width: 1200px) {
  .footer-nav-section {
    flex: 0 1 auto;
  }
}

.footer-nav-title {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0 0 16px 0;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-nav-title i {
  color: var(--primary-blue);
  font-size: 1em;
  width: 20px;
  text-align: center;
}

.footer-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 24px;
  align-items: start;
}

@media (max-width: 500px) {
  .footer-nav-links {
    grid-template-columns: repeat(2, auto);
  }
}

.footer-nav-links li {
  margin: 0;
}

.footer-nav-links a {
  color: var(--muted-text);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  line-height: 1.6;
  white-space: nowrap;
}

.footer-nav-links a:hover {
  color: var(--link-hover);
  border-bottom: none;
}

.footer-nav-links a i {
  font-size: 0.9em;
  opacity: 0.8;
}

.footer-bottom {
  padding: 15px 0;
  background: var(--footer-bottom-bg);
  border-top: 1px solid var(--footer-border);
}

.footer-bottom-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.85em;
}

.footer-made-in-europe {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.85em;
}

.footer-red-heart {
  color: #e74c3c;
}

.footer-copyright-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-credit-inline {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.7em;
  opacity: 0.8;
}

.footer-credit-inline a {
  color: var(--primary-blue);
  text-decoration: none;
  border-bottom: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-credit-inline a:hover {
  color: var(--link-hover);
  border-bottom: none;
}

.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-menu a {
  color: var(--muted-text);
  text-decoration: none;
  border-bottom: none;
  font-size: 0.85em;
  transition: color 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-menu a:hover {
  color: var(--link-hover);
  border-bottom: none;
  cursor: pointer;
}

.footer-menu a.footer-menu-icon-only {
  font-size: 1.2em;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--footer-section-bg);
  transition: all 0.2s ease;
}

.footer-menu a.footer-menu-icon-only:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 750px) {
  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .footer-navigation {
    padding: 30px 0;
  }

  .footer-nav-container,
  .footer-bottom-container {
    padding: 0 20px;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-nav-section {
    padding: 16px;
  }

  .footer-bottom {
    padding: 16px 0;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-menu {
    justify-content: center;
  }
}

.row:has(.six.columns) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-left: 0;
  margin-right: 0;
}

.row:has(.six.columns) .six.columns {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

.row:has(.six.columns) .six.columns .card {
  margin: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.row:has(.six.columns) .six.columns .card h5 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.row:has(.six.columns) .six.columns .card p {
  margin-bottom: 0;
  flex: 1;
}

/* Blog card links - remove outline/border and add hover effect */
.card > a {
  outline: none;
  border: none;
  display: block;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card > a:focus {
  outline: none;
  border: none;
}

/* Add blue bottom border to clickable cards on hover using box-shadow */
.card:has(> a) {
  box-shadow: inset 0 -1px 0 0 transparent;
  transition:
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.card:has(> a):hover {
  box-shadow:
    inset 0 -1px 0 0 var(--link),
    0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Add blue bottom border to tool-card links on hover using box-shadow */
a.tool-card {
  box-shadow: inset 0 -1px 0 0 transparent !important;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease !important;
}

a.tool-card:hover {
  box-shadow: inset 0 -1px 0 0 var(--link) !important;
}

.card:has(> a):hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.card > a:hover {
  cursor: pointer;
}

/* Responsive: stack cards on mobile */
@media (max-width: 768px) {
  .row:has(.six.columns) {
    grid-template-columns: 1fr;
  }
}

/* Theme switcher styles moved to assets/css/theme_switcher.css */

/* Remove default focus outlines and dotted borders from links */
*:focus {
  outline: none !important;
}

a {
  border-bottom: none !important;
}

/* ============================================
   MODERN AUTH PAGES (REGISTER/LOGIN)
   ============================================ */

body:has(.auth-split-container) .footer {
  display: none !important;
}

body:has(.auth-split-container) main {
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.auth-split-container) {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

body:has(.auth-split-container) .layout-container,
body:has(.auth-split-container) .landing-container {
  height: 100vh;
  overflow: hidden;
}

.landing-container:has(.auth-split-container) {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: 100vh;
  overflow: hidden;
}

.auth-split-container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.auth-form-panel {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
  background: var(--container-bg);
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 520px;
  max-height: 100%;
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.auth-mobile-brand .auth-brand-icon {
  width: 56px;
  height: 56px;
}

.auth-mobile-brand .auth-brand-name {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--heading-color);
}

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

.auth-form-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--heading-color);
  margin: 0 0 1rem 0;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.auth-form-subtitle {
  color: var(--muted-text);
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  border-radius: 12px;
  margin-bottom: 1.75rem;
  animation: authAlertSlide 0.3s ease;
}

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

.auth-alert-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-alert-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.auth-alert-content strong {
  font-weight: 600;
  font-size: 1.3125rem;
}

.auth-alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

body.theme-light .auth-alert-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.auth-alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

body.theme-light .auth-alert-success {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
}

.auth-social-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.25s ease;
  margin: 0;
  min-height: 52px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-social-btn:hover {
  transform: translateY(-4px);
}

.auth-social-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  max-width: 26px;
  max-height: 26px;
}

.auth-social-google {
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.35);
}

.auth-social-google:hover {
  border-color: #4285f4;
  background: rgba(66, 133, 244, 0.2);
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
}

.auth-social-discord {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.35);
}

.auth-social-discord:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.2);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.auth-social-facebook {
  background: rgba(24, 119, 242, 0.12);
  border-color: rgba(24, 119, 242, 0.35);
}

.auth-social-facebook:hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.2);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.auth-social-x {
  background: rgba(128, 128, 128, 0.12);
  border-color: rgba(128, 128, 128, 0.35);
}

.auth-social-x:hover {
  border-color: var(--text-color);
  background: rgba(128, 128, 128, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.75rem 0;
  gap: 1.25rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  color: var(--muted-text);
  font-size: 1.125rem;
  white-space: nowrap;
  text-transform: lowercase;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-input-group + .auth-input-group {
  margin-top: 0.75rem;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-label-row--right {
  justify-content: flex-end;
}

.auth-helper-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.auth-label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.1875rem;
  display: block;
  line-height: 1.2;
  margin: 0;
}

.auth-forgot-link {
  font-size: 1.0625rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-forgot-link:hover {
  color: var(--accent-blue);
}

.auth-input-wrapper {
  position: relative !important;
  display: block !important;
}

.auth-input-icon {
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1.375rem !important;
  color: var(--muted-text) !important;
  pointer-events: none !important;
  z-index: 5 !important;
  opacity: 0.7 !important;
  transition: all 0.2s ease !important;
}

.auth-input {
  width: 100% !important;
  height: 60px !important;
  padding: 0 20px 0 58px !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  background: var(--input-bg) !important;
  color: var(--text-color) !important;
  font-size: 1.25rem !important;
  font-family: inherit !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.auth-input::placeholder {
  font-size: 1.25rem;
}

.auth-input-password {
  padding-right: 60px !important;
}

.auth-input:focus {
  outline: none !important;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12) !important;
}

.auth-input-wrapper:focus-within .auth-input-icon {
  color: var(--primary-blue) !important;
  opacity: 1 !important;
}

.auth-input::placeholder {
  color: var(--muted-text) !important;
  opacity: 0.5 !important;
  font-size: 1.25rem !important;
}

.auth-password-toggle {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  cursor: pointer !important;
  color: var(--muted-text) !important;
  opacity: 0.7 !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  box-shadow: none !important;
  z-index: 5 !important;
  border-radius: 8px !important;
  font-size: 1.375rem !important;
}

.auth-password-toggle:hover {
  color: var(--primary-blue) !important;
  opacity: 1 !important;
  background: rgba(99, 102, 241, 0.1) !important;
  border: none !important;
  transform: translateY(-50%) !important;
  box-shadow: none !important;
}

.auth-password-toggle:active {
  transform: translateY(-50%) scale(0.95) !important;
}

.auth-eye-icon {
  font-size: inherit !important;
}

.auth-captcha {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.auth-submit-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.875rem !important;
  width: 100% !important;
  height: 62px !important;
  margin-top: 1.75rem !important;
  background: var(--btn-gradient) !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(168, 85, 159, 0.35) !important;
}

.auth-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(168, 85, 159, 0.45) !important;
  background: var(--btn-gradient-hover) !important;
  color: white !important;
  border: none !important;
}

.auth-submit-btn:active {
  transform: translateY(0) !important;
}

.auth-btn-icon {
  font-size: 1.125rem !important;
  transition: transform 0.25s ease !important;
}

.auth-submit-btn:hover .auth-btn-icon {
  transform: translateX(4px) !important;
}

.auth-passkey-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  width: 100%;
  height: 54px;
  margin-top: 1rem;
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-passkey-btn:hover {
  border-color: var(--primary-blue);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.auth-passkey-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  color: var(--primary-blue);
}

.auth-footer-text {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 1.375rem;
  color: var(--muted-text);
}

.auth-footer-text--register {
  border-top: none;
  padding-top: 0;
}

.auth-footer-text--compact {
  margin-top: 2.25rem;
  padding-top: 0;
  border-top: none;
}

.auth-footer-text--no-sep {
  padding-top: 0;
  border-top: none;
}

.auth-legal-text {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted-text);
}

.auth-legal-text .auth-link {
  display: inline;
}

.auth-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--accent-blue);
}

.auth-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.875rem;
  padding: 1rem 1.25rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 10px;
  font-size: 1.0625rem;
  color: var(--text-color);
  line-height: 1.5;
}

.auth-hint-icon {
  font-size: 1.25rem !important;
  color: var(--primary-blue) !important;
  flex-shrink: 0;
  opacity: 0.85;
}

.auth-checkbox-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  cursor: pointer;
}

.auth-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  background: var(--input-bg);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.auth-checkbox:checked {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.auth-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.auth-checkbox:hover {
  border-color: var(--primary-blue);
}

.auth-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-checkbox-label {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

.auth-welcome-panel {
  flex: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(168, 85, 159, 0.12) 50%,
    rgba(139, 111, 168, 0.12) 100%
  );
}

.auth-welcome-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: authOrbFloat 25s ease-in-out infinite;
}

.auth-orb-1 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  top: -80px;
  right: -80px;
  animation-delay: 0s;
}

.auth-orb-2 {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  bottom: -60px;
  left: -60px;
  animation-delay: -8s;
}

.auth-orb-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -16s;
}

@keyframes authOrbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(25px, -25px) scale(1.08);
  }
  50% {
    transform: translate(-15px, 15px) scale(0.95);
  }
  75% {
    transform: translate(15px, 25px) scale(1.03);
  }
}

.auth-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: authGridMove 40s linear infinite;
}

@keyframes authGridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

.auth-welcome-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

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

.auth-brand-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  color: var(--primary-blue);
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.25));
  animation: authIconPulse 4s ease-in-out infinite;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0.75;
}

.auth-brand-icon svg,
.auth-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
}

body.theme-light .auth-brand-icon {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 6px;
  box-sizing: content-box;
}

@keyframes authIconPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 28px rgba(99, 102, 241, 0.6));
  }
}

.auth-brand-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
  letter-spacing: -0.3px;
}

.auth-welcome-text {
  margin-bottom: 3rem;
}

.auth-welcome-title {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--heading-color) 0%,
    var(--primary-blue) 60%,
    var(--accent-blue) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.auth-welcome-description {
  font-size: 1.1875rem;
  color: var(--muted-text);
  line-height: 1.7;
  margin: 0;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: default;
}

body.theme-light .auth-feature-item {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

.auth-feature-item:hover {
  transform: translateX(6px);
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
}

.auth-feature-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-gradient);
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.auth-feature-icon svg {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  max-width: 26px;
  max-height: 26px;
  color: white;
}

.auth-feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-feature-title {
  font-weight: 600;
  color: var(--heading-color);
  font-size: 1.375rem;
}

.auth-feature-desc {
  color: var(--muted-text);
  font-size: 1.125rem;
}

@media (max-width: 1024px) {
  .auth-welcome-panel {
    display: none;
  }

  .auth-form-panel {
    flex: none;
    width: 100%;
    padding: 2rem 1.5rem;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
  }

  .auth-mobile-brand {
    display: flex;
  }

  .auth-form-wrapper {
    max-width: 460px;
  }
}

@media (max-width: 480px) {
  .auth-form-panel {
    padding: 1.75rem;
    align-items: flex-start;
    padding-top: 3rem;
  }

  .auth-form-wrapper {
    max-width: 100%;
  }

  .auth-mobile-brand {
    margin-bottom: 2.25rem;
  }

  .auth-mobile-brand .auth-brand-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .auth-mobile-brand .auth-brand-name {
    font-size: 1.5rem;
  }

  .auth-form-header {
    margin-bottom: 2rem;
  }

  .auth-form-title {
    font-size: 1.875rem;
  }

  .auth-form-subtitle {
    font-size: 1rem;
  }

  .auth-social-buttons {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
  }

  .auth-social-btn {
    padding: 0.875rem;
    min-height: 52px;
  }

  .auth-social-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
  }

  .auth-divider span {
    font-size: 1.0625rem;
  }

  .auth-label {
    font-size: 1rem;
  }

  .auth-input {
    height: 54px;
    font-size: 1rem;
  }

  .auth-input-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
  }

  .auth-submit-btn {
    height: 54px;
    font-size: 1.0625rem;
  }

  .auth-passkey-btn {
    height: 50px;
    font-size: 0.9375rem;
  }

  .auth-footer-text {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    font-size: 1.125rem;
  }

  .auth-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .auth-checkbox:checked::after {
    width: 5px;
    height: 10px;
  }

  .auth-checkbox-label {
    font-size: 0.9375rem;
  }

  .auth-hint {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 360px) {
  .auth-form-panel {
    padding: 1.5rem;
    padding-top: 2.5rem;
  }

  .auth-form-title {
    font-size: 1.625rem;
  }

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

@media (min-width: 1400px) {
  .auth-form-panel {
    padding: 4rem 5rem;
  }

  .auth-form-wrapper {
    max-width: 520px;
  }

  .auth-form-title {
    font-size: 2.5rem;
  }

  .auth-form-subtitle {
    font-size: 1.25rem;
  }

  .auth-input {
    height: 62px;
    font-size: 1.125rem;
  }

  .auth-submit-btn {
    height: 62px;
    font-size: 1.1875rem;
  }

  .auth-welcome-content {
    max-width: 440px;
  }

  .auth-welcome-title {
    font-size: 2.125rem;
  }
}

.auth-input,
.auth-submit-btn,
.auth-passkey-btn,
.auth-social-btn {
  -webkit-tap-highlight-color: transparent;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-input:focus-visible,
.auth-submit-btn:focus-visible,
.auth-passkey-btn:focus-visible,
.auth-social-btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

@media screen and (max-width: 767px) {
  .auth-input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-orb,
  .auth-grid-overlay,
  .auth-brand-icon,
  .auth-submit-btn::before {
    animation: none;
  }

  .auth-feature-item,
  .auth-social-btn,
  .auth-submit-btn,
  .auth-passkey-btn {
    transition: none;
  }
}

/* Print styles */
@media print {
  .auth-welcome-panel {
    display: none;
  }

  .auth-form-panel {
    width: 100%;
    padding: 0;
  }
}

@media (prefers-contrast: high) {
  .auth-input {
    border-width: 3px;
  }

  .auth-submit-btn {
    border: 2px solid white;
  }
}

body.theme-dark .auth-social-icon {
  filter: brightness(1.1);
}

body.theme-light .auth-welcome-panel {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(168, 85, 159, 0.08) 50%,
    rgba(139, 111, 168, 0.08) 100%
  );
}

body.theme-light .auth-orb {
  opacity: 0.35;
}

body.theme-light .auth-grid-overlay {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.auth-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 200px);
  justify-content: center;
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

.auth-title {
  font-size: 2.75rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--accent-blue) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 1.125rem;
  color: var(--muted-text);
  margin: 0;
  font-weight: 400;
}

/* Auth Card - Glassmorphism Effect */
.auth-card {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-large);
  padding: 2.5rem;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

body.theme-dark .auth-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light .auth-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--btn-gradient);
  opacity: 0.8;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

/* Form Groups */
.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form .form-label {
  display: block;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.auth-form .form-required {
  color: var(--primary-blue);
  margin-left: 2px;
  font-weight: 700;
}

/* Form Input Wrapper */
.auth-form .form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-form .form-icon {
  position: absolute;
  left: 1.125rem;
  transform: translateY(-50%);
  color: var(--muted-text);
  font-size: 1.125rem;
  z-index: 2;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  line-height: 1;
}

/* Form Inputs */
.auth-form .form-input {
  width: 100%;
  padding: 1rem 1.125rem 1rem 3.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  background: var(--input-bg);
  color: var(--text-color);
  line-height: 1.5;
  font-family: inherit;
  position: relative;
  z-index: 1;
}

body.theme-dark .auth-form .form-input {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-light .auth-form .form-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

.auth-form .form-input:focus {
  outline: none !important;
  border-color: var(--primary-blue);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.1),
    0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.auth-form .form-input-wrapper:focus-within .form-icon {
  color: var(--primary-blue);
  transform: translateY(-50%) scale(1.1);
}

.auth-form .form-input::placeholder {
  color: var(--muted-text);
  opacity: 0.6;
  font-size: 1.0625rem;
}

/* Textarea styling - matches form-input */
.auth-form .form-input-textarea {
  min-height: 150px;
  resize: vertical;
  padding-top: 1rem;
  padding-bottom: 1rem;
  line-height: 1.6;
}

.auth-form .form-input-textarea:focus {
  outline: none !important;
  border-color: var(--primary-blue);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.1),
    0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

/* Textarea icon positioning */
.auth-form .form-icon-textarea {
  top: 1.125rem;
  transform: none;
  align-items: flex-start;
}

.auth-form .form-input-wrapper:focus-within .form-icon-textarea {
  transform: scale(1.1);
  color: var(--primary-blue);
}

/* Form Hint */
.auth-form .form-hint {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.5rem;
  color: var(--muted-text);
  line-height: 1.6;
}

.auth-form .form-hint i {
  color: var(--primary-blue);
  flex-shrink: 0;
}

/* Checkbox Styling */
.auth-form .form-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 0.875rem;
  padding: 0.875rem;
  border-radius: var(--radius-medium);
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.auth-form .form-checkbox-label:hover {
  background: rgba(99, 102, 241, 0.05);
}

.auth-form .form-checkbox {
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-small);
  background: var(--input-bg);
  position: relative;
  transition: all 0.3s ease;
}

body.theme-dark .auth-form .form-checkbox {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

body.theme-light .auth-form .form-checkbox {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.2);
}

.auth-form .form-checkbox:checked {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M2 7l4 4 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.auth-form .form-checkbox:focus {
  outline: none !important;
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.1),
    0 0 0 1px var(--primary-blue);
}

.auth-form .form-checkbox-label:hover .form-checkbox {
  border-color: var(--primary-blue);
  transform: scale(1.05);
}

.auth-form .form-checkbox-label:hover .form-checkbox:checked {
  background: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
}

.auth-form .form-checkbox-text {
  color: var(--text-color);
  line-height: 1.6;
  flex: 1;
}

/* Captcha Container */
.auth-form .captcha-container {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
}

/* Form Actions */
.auth-form .form-actions {
  margin-top: 1rem;
}

/* Modern Button Styles */
.auth-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.auth-form .btn-primary {
  width: 100%;
  background: var(--btn-gradient);
  color: white;
  box-shadow:
    0 4px 15px rgba(99, 102, 241, 0.4),
    0 0 0 0 rgba(99, 102, 241, 0.5);
  position: relative;
}

.auth-form .btn-primary::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 ease;
}

.auth-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px rgba(99, 102, 241, 0.5),
    0 0 0 0 rgba(99, 102, 241, 0.6);
  background: var(--btn-gradient-hover);
}

.auth-form .btn-primary:hover::before {
  left: 100%;
}

.auth-form .btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 4px 15px rgba(99, 102, 241, 0.4),
    0 0 0 0 rgba(99, 102, 241, 0.5);
}

.auth-form .btn-primary i {
  font-size: 1.125rem;
}

/* Alert Messages */
.auth-message-container {
  width: 100%;
  max-width: 600px;
  margin-bottom: 2rem;
  animation: slideDown 0.3s ease;
}

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

.alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-medium);
  border-left: 4px solid;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert i {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.alert strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #fca5a5;
}

body.theme-light .alert-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.alert-danger i {
  color: #ef4444;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #86efac;
}

body.theme-light .alert-success {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
}

.alert-success i {
  color: #22c55e;
}

/* Status Badge Component - Alert-style pill */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.2px;
  line-height: 1;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.2s ease;
}

.status-badge:hover {
  transform: translateY(-1px);
}

.status-badge-success {
  border-color: #66bb6a !important;
  color: #66bb6a !important;
  background: rgba(102, 187, 106, 0.14) !important;
}

.status-badge-danger {
  border-color: #ef5350 !important;
  color: #ef5350 !important;
  background: rgba(239, 83, 80, 0.14) !important;
}

.status-badge-warning {
  border-color: #ffa726 !important;
  color: #ffa726 !important;
  background: rgba(255, 167, 38, 0.14) !important;
}

.status-badge-info {
  border-color: #4a9eff !important;
  color: #4a9eff !important;
  background: rgba(74, 158, 255, 0.14) !important;
}

/* Light theme tuned tints */
body.theme-light .status-badge-success {
  border-color: #28a745 !important;
  color: #28a745 !important;
  background: rgba(40, 167, 69, 0.16) !important;
}

body.theme-light .status-badge-danger {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
  background: rgba(220, 53, 69, 0.16) !important;
}

body.theme-light .status-badge-warning {
  border-color: #ff9800 !important;
  color: #ff9800 !important;
  background: rgba(255, 152, 0, 0.16) !important;
}

body.theme-light .status-badge-info {
  border-color: #0066cc !important;
  color: #0066cc !important;
  background: rgba(0, 102, 204, 0.16) !important;
}

/* Auth Footer */
.auth-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  width: 100%;
}

.auth-footer-text {
  color: var(--muted-text);
  margin: 0;
  font-size: 1.375rem;
}

.auth-footer-text--compact {
  margin-top: 2.25rem;
}

.auth-footer-link {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
  border-bottom: none !important;
}

.auth-footer-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Alternative Login Methods */
.auth-alternative {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0 1.5rem;
  gap: 1rem;
}

.auth-divider--compact {
  margin: 1.25rem 0 1rem;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-divider-text {
  padding: 0 0.5rem;
  color: var(--muted-text);
  font-size: 1.2rem;
  text-transform: lowercase;
}

/* Secondary Button */
.auth-alternative .btn-secondary {
  width: 100%;
  background: var(--card-bg);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.theme-dark .auth-alternative .btn-secondary {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-light .auth-alternative .btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Passkey Login Button - Specific Background */
#passkey-login-btn {
  background: var(--container-bg) !important;
}

body.theme-dark #passkey-login-btn {
  background: var(--container-bg) !important;
}

body.theme-light #passkey-login-btn {
  background: var(--container-bg) !important;
}

.auth-alternative .btn-secondary:hover {
  background: var(--card-bg);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

body.theme-dark .auth-alternative .btn-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
}

body.theme-light .auth-alternative .btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
}

/* Passkey Login Button Hover - Maintain container-bg */
#passkey-login-btn:hover {
  background: var(--container-bg) !important;
}

body.theme-dark #passkey-login-btn:hover {
  background: var(--container-bg) !important;
}

body.theme-light #passkey-login-btn:hover {
  background: var(--container-bg) !important;
}

/* OAuth Providers */
.auth-oauth-providers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.auth-alternative .btn-oauth {
  width: 100%;
  background: var(--card-bg);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

body.theme-dark .auth-alternative .btn-oauth {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-light .auth-alternative .btn-oauth {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

.auth-alternative .btn-oauth:hover {
  background: var(--card-bg);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  text-decoration: none;
}

body.theme-dark .auth-alternative .btn-oauth:hover {
  background: rgba(30, 41, 59, 0.8);
}

body.theme-light .auth-alternative .btn-oauth:hover {
  background: rgba(255, 255, 255, 1);
}

.auth-alternative .btn-oauth i.fab.fa-google {
  color: #4285f4;
}

.auth-alternative .btn-oauth i.fab.fa-facebook {
  color: #1877f2;
}

.auth-alternative .btn-oauth i.fab.fa-github {
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-page {
    padding: 1.5rem 1rem;
    min-height: auto;
  }

  .auth-title {
    font-size: 2.25rem;
  }

  .auth-subtitle {
    font-size: 1rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-medium);
  }

  .auth-form {
    gap: 1.75rem;
  }

  .auth-form .form-group {
    gap: 0.625rem;
  }

  .auth-form .form-actions {
    margin-top: 0.75rem;
  }

  .auth-message-container {
    margin-bottom: 1.5rem;
  }

  .auth-form .form-input {
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
  }

  .auth-form .form-icon {
    left: 1rem;
    font-size: 1rem;
    width: 1.125rem;
  }

  .auth-form .form-label {
    font-size: 1rem;
  }

  .auth-form .form-hint {
    font-size: 0.9375rem;
  }

  .auth-form .form-checkbox {
    width: 1.375rem;
    height: 1.375rem;
  }

  .auth-form .form-checkbox-text {
    font-size: 1rem;
  }

  .auth-form .btn {
    padding: 1rem 1.75rem;
    font-size: 1.0625rem;
  }

  .auth-form .btn-primary i {
    font-size: 1.0625rem;
  }

  .auth-alternative {
    margin-top: 1.5rem;
  }

  .auth-divider {
    margin: 1.5rem 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1.25rem;
  }

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

/* ============================================
   MFA VERIFICATION PAGE
   ============================================ */

/* MFA Method Section */
.mfa-method-section {
  width: 100%;
}

.mfa-method-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mfa-method-icon {
  font-size: 2rem;
  color: var(--primary-blue);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.mfa-method-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0 0 0.5rem 0;
}

.mfa-method-description {
  color: var(--muted-text);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.mfa-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* TOTP Input Styling */
.auth-form .form-input-totp {
  font-size: 1.75rem;
  text-align: center;
  letter-spacing: 0.75rem;
  font-weight: 600;
  padding-left: 3.5rem;
  font-family: 'Courier New', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.auth-form .form-input-totp::placeholder {
  letter-spacing: 0.75rem;
  opacity: 0.4;
}

.auth-form .form-input-totp:focus {
  letter-spacing: 0.75rem;
}

@media (max-width: 768px) {
  .mfa-method-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mfa-method-icon {
    margin-top: 0;
  }

  .auth-form .form-input-totp {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    padding-left: 3rem;
  }

  .auth-form .form-input-totp::placeholder {
    letter-spacing: 0.5rem;
  }

  .auth-form .form-input-totp:focus {
    letter-spacing: 0.5rem;
  }
}

/* ============================================
   USER OVERVIEW PAGE
   ============================================ */

/* User Overview Page Container */
.user-overview-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* User Overview Header */
.user-overview-header {
  text-align: center;
  margin-bottom: 4rem;
  width: 100%;
  position: relative;
  overflow: visible;
  padding-bottom: 1rem;
  padding-top: 0.5rem;
}

.user-overview-header::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--btn-gradient);
  border-radius: 2px;
  opacity: 0.6;
}

.user-overview-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--accent-blue) 50%,
    #a8559f 100%
  );
  background-size: 100% 200%;
  background-position: center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.7;
  padding-bottom: 0.6em;
  padding-top: 0.25em;
  margin-top: 0.1em;
  text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
  position: relative;
  animation: titleGlow 3s ease-in-out infinite;
  overflow: visible;
  display: block;
  min-height: 1.5em;
}

@keyframes titleGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.user-overview-subtitle {
  font-size: clamp(1rem, 2vw, 1.375rem);
  color: var(--muted-text);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.user-overview-subtitle strong {
  color: var(--text-color);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--accent-blue) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Message Container */
.user-overview-message-container {
  width: 100%;
  max-width: 1200px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  animation: slideDown 0.3s ease;
}

.user-overview-message-container .alert {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-medium);
  border-left: 4px solid;
  animation: slideIn 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.user-overview-message-container .alert i {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 0 4px currentColor);
}

.user-overview-message-container .alert-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.user-overview-message-container .alert-content strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  letter-spacing: 0.2px;
}

.user-overview-message-container .alert-content p {
  margin: 0.5rem 0 0 0;
  font-size: clamp(1rem, 1.75vw, 1.1875rem);
  line-height: 1.7;
}

.user-overview-message-container .alert-list {
  margin: 0.5rem 0 0 0;
  padding-left: 1.5rem;
  font-size: clamp(1rem, 1.75vw, 1.1875rem);
  line-height: 1.8;
}

.user-overview-message-container .alert-link {
  color: #ffc107;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.375rem;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.user-overview-message-container .alert-link:hover {
  color: #ffd54f;
  opacity: 0.9;
}

.user-overview-message-container .alert-link:active {
  opacity: 0.8;
}

body.theme-light .user-overview-message-container .alert-link {
  color: #e65100;
  font-weight: 700;
}

body.theme-light .user-overview-message-container .alert-link:hover {
  color: #bf360c;
  text-decoration-thickness: 2px;
}

.user-overview-message-container .alert-warning {
  background: rgba(255, 193, 7, 0.15);
  border-color: #ffc107;
  color: #f5f5f5;
}

body.theme-light .user-overview-message-container .alert-warning {
  background: rgba(255, 152, 0, 0.15);
  border-color: #ff9800;
  color: #2c2c2c;
}

body.theme-light
  .user-overview-message-container
  .alert-warning
  .alert-content
  strong {
  color: #1a1a1a;
}

body.theme-light
  .user-overview-message-container
  .alert-warning
  .alert-content
  p {
  color: #2c2c2c;
}

.user-overview-message-container .alert-warning i {
  color: #ffc107;
}

body.theme-light .user-overview-message-container .alert-warning i {
  color: #ff9800;
}

.user-overview-message-container .alert-info {
  background: rgba(13, 202, 240, 0.1);
  border-color: #0dcaf0;
  color: #0c5460;
}

body.theme-light .user-overview-message-container .alert-info {
  background: rgba(13, 202, 240, 0.08);
  color: #0c5460;
}

.user-overview-message-container .alert-info i {
  color: #0dcaf0;
}

/* User Overview Card */
.user-overview-card {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-large);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 100px rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid transparent;
}

body.theme-dark .user-overview-card {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 100px rgba(99, 102, 241, 0.15);
}

body.theme-light .user-overview-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.03);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05) inset,
    0 0 100px rgba(99, 102, 241, 0.08);
}

.user-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--btn-gradient);
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.user-overview-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: cardPulse 8s ease-in-out infinite;
}

@keyframes cardPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* User Overview Section */
.user-overview-section {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.user-overview-section:last-child {
  margin-bottom: 0;
}

.user-overview-section-title {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 1rem;
  border-bottom: 3px solid transparent;
  background-image: linear-gradient(
    to right,
    var(--primary-blue),
    var(--accent-blue)
  );
  background-size: 100px 3px;
  background-repeat: no-repeat;
  background-position: left bottom;
  position: relative;
  letter-spacing: -0.3px;
}

.user-overview-section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--btn-gradient);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.user-overview-section-description {
  color: var(--muted-text);
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-medium);
  border-left: 3px solid var(--primary-blue);
}

.user-overview-actions-section {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 2px solid var(--border-color);
  position: relative;
}

.user-overview-actions-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--btn-gradient);
  border-radius: 2px;
}

/* Info Grid */
.user-overview-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.user-overview-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(99, 102, 241, 0.06);
  border-radius: var(--radius-medium);
  border: 2px solid rgba(99, 102, 241, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.user-overview-info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--btn-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.user-overview-info-item:hover {
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgba(99, 102, 241, 0.25),
    0 0 0 1px rgba(99, 102, 241, 0.2),
    inset 0 0 30px rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.user-overview-info-item:hover::before {
  transform: scaleX(1);
}

.user-overview-info-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--muted-text);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.user-overview-info-label i {
  color: var(--primary-blue);
  font-size: clamp(1rem, 2vw, 1.125rem);
  width: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
  transition: transform 0.3s ease;
}

.user-overview-info-item:hover .user-overview-info-label i {
  transform: scale(1.2) rotate(5deg);
}

.user-overview-info-value {
  color: var(--text-color);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.user-overview-info-value .fi {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
  font-size: 1.25em;
}

/* Stats Cards */
.user-overview-stats-card {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  background: var(--card-bg);
  border-radius: var(--radius-medium);
  border: 2px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.user-overview-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(99, 102, 241, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.user-overview-stats-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(99, 102, 241, 0.2),
    inset 0 0 40px rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.user-overview-stats-card:hover::before {
  opacity: 1;
}

.user-overview-stats-icon {
  width: clamp(60px, 8vw, 80px);
  height: clamp(60px, 8vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-medium);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.user-overview-stats-card:hover .user-overview-stats-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.user-overview-stats-funds .user-overview-stats-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.user-overview-stats-subscription .user-overview-stats-icon {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--accent-blue) 100%
  );
  color: white;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.user-overview-stats-expired .user-overview-stats-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.user-overview-stats-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.user-overview-stats-label {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--muted-text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.user-overview-stats-value {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-color);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.user-overview-stats-funds .user-overview-stats-value {
  color: #10b981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.user-overview-stats-subscription .user-overview-stats-value {
  color: var(--primary-blue);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.user-overview-stats-expired .user-overview-stats-value {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Actions Grid */
.user-overview-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.user-overview-actions-grid > * {
  display: flex;
  align-items: stretch;
}

.user-overview-actions-grid .user-overview-action-btn,
.user-overview-actions-grid a.user-overview-action-btn,
.user-overview-actions-grid button.user-overview-action-btn {
  width: 100%;
  height: 100%;
  min-height: clamp(48px, 6vw, 56px);
}

.user-overview-action-form {
  display: contents;
}

.user-overview-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: clamp(1rem, 2vw, 1.375rem) clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 700;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.3px;
  min-height: clamp(48px, 6vw, 56px);
  line-height: 1.5;
  box-sizing: border-box;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

/* Ensure anchor buttons look exactly like button elements */
a.user-overview-action-btn,
a.user-overview-action-btn:link,
a.user-overview-action-btn:visited,
a.user-overview-action-btn:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  border-bottom: none !important;
  min-height: clamp(48px, 6vw, 56px) !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: clamp(1rem, 2vw, 1.375rem) clamp(1.25rem, 2.5vw, 1.75rem) !important;
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem) !important;
  font-weight: 700 !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius-medium) !important;
  cursor: pointer !important;
  font-family: inherit !important;
  position: relative !important;
  overflow: hidden !important;
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 0.3px !important;
  vertical-align: middle !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 100% !important;
}

button.user-overview-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  border-bottom: none !important;
  min-height: clamp(48px, 6vw, 56px) !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: clamp(1rem, 2vw, 1.375rem) clamp(1.25rem, 2.5vw, 1.75rem) !important;
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem) !important;
  font-weight: 700 !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius-medium) !important;
  cursor: pointer !important;
  font-family: inherit !important;
  position: relative !important;
  overflow: hidden !important;
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 0.3px !important;
  vertical-align: middle !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 100% !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.theme-dark .user-overview-action-btn,
body.theme-dark a.user-overview-action-btn,
body.theme-dark button.user-overview-action-btn {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.theme-light .user-overview-action-btn,
body.theme-light a.user-overview-action-btn,
body.theme-light button.user-overview-action-btn {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.user-overview-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.user-overview-action-btn:hover::before {
  left: 100%;
}

.user-overview-action-btn span {
  display: inline-block;
  line-height: 1.5;
}

.user-overview-action-btn i {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.3));
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.user-overview-action-btn:hover i,
a.user-overview-action-btn:hover i,
button.user-overview-action-btn:hover i {
  transform: scale(1.15) rotate(5deg) !important;
}

.user-overview-action-btn:hover,
a.user-overview-action-btn:hover,
a.user-overview-action-btn:focus,
button.user-overview-action-btn:hover,
button.user-overview-action-btn:focus {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow:
    0 8px 24px rgba(99, 102, 241, 0.3),
    0 0 0 1px rgba(99, 102, 241, 0.2),
    inset 0 0 30px rgba(99, 102, 241, 0.05) !important;
  border-color: var(--primary-blue) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  color: var(--text-color) !important;
}

body.theme-dark .user-overview-action-btn:hover,
body.theme-dark a.user-overview-action-btn:hover,
body.theme-dark a.user-overview-action-btn:focus,
body.theme-dark button.user-overview-action-btn:hover,
body.theme-dark button.user-overview-action-btn:focus {
  background: rgba(30, 41, 59, 0.85) !important;
}

body.theme-light .user-overview-action-btn:hover,
body.theme-light a.user-overview-action-btn:hover,
body.theme-light a.user-overview-action-btn:focus,
body.theme-light button.user-overview-action-btn:hover,
body.theme-light button.user-overview-action-btn:focus {
  background: rgba(255, 255, 255, 1) !important;
}

.user-overview-action-btn-primary,
a.user-overview-action-btn-primary {
  background: var(--btn-gradient) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
}

.user-overview-action-btn-primary:hover,
a.user-overview-action-btn-primary:hover {
  background: var(--btn-gradient-hover) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5) !important;
  color: white !important;
}

.user-overview-action-btn-danger,
a.user-overview-action-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}

.user-overview-action-btn-danger:hover,
a.user-overview-action-btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5) !important;
  color: white !important;
}

.user-overview-action-btn small {
  font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
  opacity: 0.95;
  margin-left: 0.375rem;
  font-weight: 600;
}

/* Modal Styles */
.user-overview-modal {
  display: none !important;
  visibility: hidden;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}

.user-overview-modal.show {
  display: block !important;
  visibility: visible;
  opacity: 1;
}

.user-overview-modal-content {
  max-width: clamp(450px, 90vw, 600px);
  margin: clamp(5%, 8vh, 10%) auto;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--card-bg);
  border-radius: var(--radius-large);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 100px rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(20px);
  position: relative;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  overflow: hidden;
}

@media (max-width: 768px) {
  .user-overview-modal-content {
    margin: 5% auto;
    padding: clamp(1.5rem, 4vw, 2rem);
    max-width: 95vw;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.theme-dark .user-overview-modal-content {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-light .user-overview-modal-content {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.05);
}

.user-overview-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--btn-gradient);
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.user-overview-modal-close {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  font-size: 0;
  font-weight: 300;
  color: var(--muted-text);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  width: clamp(36px, 5vw, 44px);
  height: clamp(36px, 5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.user-overview-modal-close::before {
  content: '×';
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.user-overview-modal-close:hover {
  color: var(--text-color);
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary-blue);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.user-overview-modal-close:hover::before {
  transform: rotate(-90deg);
}

.user-overview-modal-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--heading-color);
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem) 0;
  padding-right: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.5px;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--accent-blue) 50%,
    #a8559f 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  display: flex;
  align-items: center;
}

.user-overview-modal-title i {
  margin-right: 0.75rem;
  font-size: 0.85em;
  opacity: 0.8;
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
}

.user-overview-modal-text {
  color: var(--muted-text);
  margin: 0 0 clamp(1.5rem, 3vw, 2rem) 0;
  line-height: 1.7;
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-medium);
  border-left: 3px solid var(--primary-blue);
}

.user-overview-modal-text strong {
  color: var(--text-color);
  font-weight: 700;
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.user-overview-modal-error {
  padding: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  background: rgba(239, 68, 68, 0.12);
  border: 2px solid #ef4444;
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-medium);
  color: #ef4444;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.user-overview-modal-error::before {
  content: '\f06a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.user-overview-modal-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.user-overview-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.user-overview-form-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  color: var(--text-color);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  margin-bottom: 0.75rem;
  letter-spacing: 0.2px;
}

.user-overview-form-label i {
  font-size: 0.9em;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.user-overview-form-group:focus-within .user-overview-form-label i {
  opacity: 1;
  color: var(--primary-blue);
}

.user-overview-form-required {
  color: var(--primary-blue);
  margin-left: 2px;
  font-weight: 800;
  font-size: 1.1em;
}

.user-overview-form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.user-overview-form-icon {
  position: absolute;
  left: clamp(1rem, 2vw, 1.25rem);
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-text);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  z-index: 2;
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1;
}

.user-overview-form-input {
  width: 100%;
  padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.125rem, 2.5vw, 1.375rem);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  background: var(--input-bg);
  color: var(--text-color);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  font-family: inherit;
  position: relative;
  z-index: 1;
  min-height: clamp(48px, 6vw, 56px);
}

body.theme-dark .user-overview-form-input {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-light .user-overview-form-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
}

.user-overview-form-input:focus {
  outline: none !important;
  border-color: var(--primary-blue);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.15),
    0 4px 16px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
  background: var(--input-bg);
}

body.theme-dark .user-overview-form-input:focus {
  background: rgba(15, 23, 42, 0.85);
}

body.theme-light .user-overview-form-input:focus {
  background: rgba(255, 255, 255, 1);
}

.user-overview-form-input-wrapper:focus-within .user-overview-form-icon {
  color: var(--primary-blue);
  transform: translateY(-50%) scale(1.15);
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.6));
}

.user-overview-form-input::placeholder {
  color: var(--muted-text);
  opacity: 0.6;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
}

.user-overview-form-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  background: rgba(99, 102, 241, 0.06);
  border-radius: var(--radius-medium);
  border-left: 3px solid var(--primary-blue);
  color: var(--muted-text);
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  line-height: 1.7;
}

.user-overview-form-hint i {
  color: var(--primary-blue);
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
}

.user-overview-modal-actions {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(0.5rem, 1vw, 1rem);
  align-items: stretch;
}

.user-overview-modal-btn {
  flex: 1;
  padding: clamp(1rem, 2.5vw, 1.375rem) clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  letter-spacing: 0.3px;
  min-height: clamp(48px, 6vw, 56px);
  position: relative;
  overflow: hidden;
}

.user-overview-modal-btn i {
  font-size: 0.9em;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.user-overview-modal-btn:hover i {
  transform: scale(1.1);
}

.user-overview-modal-btn-primary i {
  opacity: 1;
}

.user-overview-modal-btn::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 ease;
}

.user-overview-modal-btn:hover::before {
  left: 100%;
}

.user-overview-modal-btn-primary {
  background: var(--btn-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.user-overview-modal-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
  background: var(--btn-gradient-hover);
}

.user-overview-modal-btn-primary:active {
  transform: translateY(-1px) scale(1);
}

.user-overview-modal-btn-secondary {
  background: var(--card-bg);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.theme-dark .user-overview-modal-btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-light .user-overview-modal-btn-secondary {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.12);
}

.user-overview-modal-btn-secondary:hover {
  background: var(--card-bg);
  border-color: var(--primary-blue);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

body.theme-dark .user-overview-modal-btn-secondary:hover {
  background: rgba(30, 41, 59, 0.85);
}

body.theme-light .user-overview-modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
}

.user-overview-modal-btn-secondary:active {
  transform: translateY(-1px) scale(1);
}

/* MFA Section */
.user-overview-mfa-section {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-medium);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.user-overview-mfa-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0 0 1rem 0;
}

.user-overview-mfa-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-overview-totp-input {
  width: 100%;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  background: var(--input-bg);
  color: var(--text-color);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  text-align: center;
  letter-spacing: clamp(0.375rem, 1vw, 0.625rem);
  font-weight: 700;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

body.theme-dark .user-overview-totp-input {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-light .user-overview-totp-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

.user-overview-totp-input:focus {
  outline: none !important;
  border-color: var(--primary-blue);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.1),
    0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Responsive Design */
@media (min-width: 1400px) {
  .user-overview-page {
    max-width: 1400px;
    padding: 4rem 3rem;
  }

  .user-overview-card {
    padding: 4rem;
  }

  .user-overview-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
  }

  .user-overview-actions-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .user-overview-page {
    padding: 1.5rem 1rem;
  }

  .user-overview-header {
    margin-bottom: 2.5rem;
  }

  .user-overview-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-medium);
  }

  .user-overview-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .user-overview-actions-grid {
    grid-template-columns: 1fr;
  }

  .user-overview-modal-content {
    margin: 5% auto;
    padding: 2rem 1.5rem;
    max-width: calc(100% - 2rem);
  }

  .user-overview-modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .user-overview-card {
    padding: 1.5rem 1.25rem;
  }

  .user-overview-modal-content {
    padding: 1.5rem 1.25rem;
    margin: 2% auto;
  }
}

/* ============================================
   CUSTOM SEARCH FIELD DESIGN
   From Uiverse.io by LightAndy1
   ============================================ */

/* Custom search field group */
.search-field-group {
  display: flex;
  line-height: 28px;
  align-items: center;
  position: relative;
  max-width: 190px;
}

/* Search input field */
.search-field-group .search-field-input {
  width: 100%;
  height: 40px;
  line-height: 28px;
  padding: 0 1rem;
  padding-left: 2.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  outline: none;
  background-color: #f3f3f4;
  color: #0d0c22;
  transition: 0.3s ease;
}

/* Placeholder styling */
.search-field-group .search-field-input::placeholder {
  color: #9e9ea7;
}

/* Focus and hover states for light theme */
.search-field-group .search-field-input:focus,
.search-field-group .search-field-input:hover {
  outline: none;
  border-color: rgba(0, 48, 73, 0.4);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgb(0 48 73 / 10%);
}

/* Search icon positioned absolutely on the left */
.search-field-group .search-field-icon {
  position: absolute;
  left: 1rem;
  fill: #9e9ea7;
  width: 1rem;
  height: 1rem;
}

/* Dark theme adjustments */
body:not(.theme-light) .search-field-group .search-field-input {
  background-color: rgba(30, 41, 59, 0.6);
  color: #e2e8f0;
  border-color: rgba(71, 85, 105, 0.5);
}

body:not(.theme-light) .search-field-group .search-field-input::placeholder {
  color: #94a3b8;
}

body:not(.theme-light) .search-field-group .search-field-input:focus,
body:not(.theme-light) .search-field-group .search-field-input:hover {
  background-color: rgba(30, 41, 59, 0.8);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

body:not(.theme-light) .search-field-group .search-field-icon {
  fill: #94a3b8;
}
