:root {
  --bg-base: #0f0f23;
  --bg-gradient: linear-gradient(-45deg, #0f0f23, #151530, #1a1a2e, #0f0f23);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --glass-bg: rgba(31, 41, 55, 0.7);
  --glass-border: rgba(75, 85, 99, 0.4);
  --input-bg: rgba(15, 23, 42, 0.6);
  --input-border: #475569;
  --badge-bg: rgba(255, 255, 255, 0.05);
  --primary-gradient: linear-gradient(135deg, #4f46e5, #818cf8);
  --accent-gradient: linear-gradient(135deg, #8b5cf6, #ec4899);
  --green-gradient: linear-gradient(135deg, #10b981, #059669);
  --blur-strength: 20px;
  --focus-ring: 0 0 0 3px rgba(139, 92, 246, 0.5);
  --focus-ring-light: 0 0 0 3px rgba(79, 70, 229, 0.3);
  --footer-bg: #11112b;
  --scrollbar-thumb: rgba(255, 255, 255, 0.15);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.3);
  --glass-icon-bg: rgba(255, 255, 255, 0.05);
  --glass-icon-border: rgba(255, 255, 255, 0.1);
  --input-flat-bg: rgba(0, 0, 0, 0.3);
  --input-flat-border: rgba(255, 255, 255, 0.15);
  --placeholder-color: rgba(255, 255, 255, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(15, 15, 35, 0.8);
}

:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: #8b5cf6;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.skip-to-main:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
}

@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(31, 41, 55, 0.95);
    --glass-border: rgba(75, 85, 99, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  ::after,
  ::before {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.bg-gradient-1,
.bg-gradient-2 {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  animation: blobFloat 20s infinite alternate;
}

.bg-gradient-1 {
  top: -10%;
  left: -10%;
  background: var(--accent-gradient);
}

.bg-gradient-2 {
  bottom: -10%;
  right: -10%;
  background: var(--primary-gradient);
  animation-delay: -10s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(10vw, 5vh) scale(1.1);
  }

  66% {
    transform: translate(-5vw, 15vh) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-gradient: linear-gradient(-45deg, #f1f5f9, #e2e8f0, #cbd5e1, #f1f5f9);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --glass-bg: rgba(255, 255, 255, 0.98);
  --glass-border: #94a3b8;
  --input-bg: #ffffff;
  --input-border: #64748b;
  --badge-bg: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(248, 250, 252, 0.8);
  --primary-gradient: #4f46e5;
  --accent-gradient: #8b5cf6;
  --green-gradient: #10b981;
  --footer-bg: #e2e8f0;
  --scrollbar-thumb: rgba(0, 0, 0, 0.2);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.4);
  --glass-icon-bg: rgba(0, 0, 0, 0.05);
  --glass-icon-border: rgba(0, 0, 0, 0.1);
  --input-flat-bg: #ffffff;
  --input-flat-border: #cbd5e1;
  --placeholder-color: #94a3b8;
  --border-subtle: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
}

body {
  background-color: var(--bg-base);
  background-image: var(--bg-gradient);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  transition:
    background-color 0.3s,
    color 0.3s;
}

@keyframes gradientBG {
  0% {
    background-position: 0 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

.bg-gradient-1 {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(139, 92, 246, 0.15) 0,
      transparent 70%);
  filter: blur(80px);
  z-index: -1;
  animation: float 10s infinite alternate;
}

.bg-gradient-2 {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(236, 72, 153, 0.15) 0,
      transparent 70%);
  filter: blur(80px);
  z-index: -1;
  animation: float 12s infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(30px, 50px);
  }
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-strength)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.glass-effect-sm {
  background: var(--badge-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.sk-item {
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-line {
  background: linear-gradient(90deg,
      var(--badge-bg) 25%,
      var(--glass-border) 50%,
      var(--badge-bg) 75%);
  background-size: 200% 100%;
  animation: sk-loading 1.5s infinite;
  border-radius: 4px;
}

.sk-line.h-1 {
  height: 18px;
  width: 40%;
}

.sk-line.h-2 {
  height: 24px;
  width: 85%;
}

.sk-line.h-3 {
  height: 16px;
  width: 60%;
}

@keyframes sk-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

body>header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--glass-border);
  height: 89px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.desktop-nav {
  display: none;
}

@media (min-width: 600px) {
  .desktop-nav {
    display: flex;
    gap: 24px;
  }

  .nav-item {
    font-size: 0.9rem;
  }
}

@media (min-width: 900px) {
  .desktop-nav {
    gap: 30px;
  }

  .nav-item {
    font-size: 1rem;
  }
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  font-size: 0.95rem;
}

.nav-item.active,
.nav-item:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.account-btn,
.install-btn,
.lang-btn,
.notif-btn,
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 10px;
  height: 48px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.notif-btn,
.theme-toggle-btn {
  width: 48px;
  position: relative;
  padding: 0;
}

.account-btn,
.lang-btn {
  padding: 0 16px;
  gap: 8px;
}

.install-btn {
  width: 48px;
  padding: 0;
}

@media (max-width: 768px) {

  .account-btn span,
  .lang-btn span,
  .logo span {
    display: none;
  }

  .account-btn,
  .lang-btn {
    padding: 0;
    width: 48px;
  }

  .header-actions {
    gap: 10px;
  }
}

@media (max-width: 400px) {
  .header-actions {
    gap: 6px;
  }

  .account-btn,
  .lang-btn,
  .theme-toggle,
  .notif-btn {
    width: 40px !important;
    height: 40px !important;
  }
}

.time-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 10px;
  height: 48px;
  border-radius: 10px;
  background: var(--badge-bg);
  border: 1px solid var(--glass-border);
  min-width: 100px;
}

.timezone-select {
  background: 0 0;
  border: none;
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  outline: 0;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  transition: all 0.3s;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.timezone-select:hover {
  color: var(--text-primary);
}

.timezone-select option {
  background: var(--bg-base);
  color: var(--text-primary);
  padding: 10px;
}

.digital-clock {
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 75px;
  text-align: center;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .time-widget {
    min-width: 80px;
    padding: 0 8px;
    height: 40px;
  }

  .digital-clock {
    font-size: 0.8rem;
  }

  .timezone-select {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .time-widget {
    display: none;
  }
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.account-btn i,
.notif-btn i {
  font-size: 1.1rem;
}

.account-btn:hover,
.install-btn:hover,
.lang-btn:hover,
.notif-btn:hover,
.theme-toggle-btn:hover {
  background: var(--glass-border);
  transform: translateY(-1px);
}

.mobile-only {
  display: block;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
}

.menu-btn {
  background: 0 0;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.main-content {
  padding-top: 60px;
  padding-bottom: 20px;
}

.hero-section {
  text-align: center;
  margin-bottom: 40px;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.main-title .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-title {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.email-control-panel {
  padding: 30px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.email-input-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-main-group {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

#cc-name-input {
  flex: 1.8;
  height: 48px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  color: var(--text-primary);
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 500;
  min-width: 0;
  outline: 0;
  text-align: left;
  border-radius: 8px;
  transition: all 0.3s;
}

#cc-name-input:focus {
  border-color: #6366f1;
}

.at-symbol {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.7;
  margin: 0 8px;
}

.cc-select-wrapper {
  flex: 1.2;
  position: relative;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 8px;
  height: 48px;
  transition: all 0.3s;
}

#cc-name-input:focus,
.cc-select-wrapper:focus-within {
  border-color: #6366f1;
  background: var(--badge-bg);
}

#cc-domain-select {
  appearance: none;
  background: 0 0;
  border: none;
  color: var(--text-primary);
  width: 100%;
  height: 100%;
  padding: 0 40px 0 16px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  outline: 0;
  font-family: inherit;
}

#cc-domain-select option {
  background-color: var(--bg-base);
  color: var(--text-primary);
  padding: 12px;
}

.inline-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
}

@media (max-width: 768px) {
  .inline-actions {
    gap: 8px;
  }

  .inline-actions .action-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
    height: 44px;
  }

  .inline-actions .action-btn i {
    font-size: 0.9rem;
  }
}

.inline-actions .action-btn {
  padding: 12px 24px;
  height: 48px;
  border-radius: 8px;
}

.new-btn {
  background: #6366f1;
  box-shadow: none;
}

.status-info-bar-dashed {
  margin-top: 24px;
  padding: 16px;
  border: 2px dashed var(--glass-border);
  border-radius: 8px;
  background: var(--badge-bg);
}

.status-text-dashed {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  user-select: text;
  word-break: break-all;
  overflow-wrap: break-word;
}

.cc-select-wrapper i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-primary);
  pointer-events: none;
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 800px) {
  .input-main-group {
    min-width: 100%;
  }

  #cc-name-input {
    text-align: left;
  }

  .inline-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.control-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
}

.action-btn {
  position: relative;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
  transform: scale(0.98);
}

.copy-btn {
  background: var(--green-gradient);
}

.copy-btn:hover {
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.refresh-btn:hover {
  background: var(--glass-border);
}

.new-btn {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.qr-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  height: 48px;
  border-radius: 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  gap: 8px;
}

.qr-btn:hover {
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.qr-modal-container {
  max-width: 350px !important;
  text-align: center;
  padding: 30px !important;
}

.qr-frame {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  margin: 20px auto;
  width: fit-content;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.qr-frame img {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 4px;
}

.new-btn:hover {
  box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.3);
}

@keyframes gradientShift {
  0% {
    background-position: 0 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

.timer-line {
  height: 3px;
  background: var(--badge-bg);
  margin-top: -2px;
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.timer-progress {
  height: 100%;
  width: 100%;
  background: var(--primary-gradient);
  transform-origin: left;
  animation: countdown 10s linear infinite;
}

@keyframes countdown {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

.secondary-actions {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.text-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--text-primary);
}

.divider {
  margin: 0 10px;
  color: var(--glass-border);
}

.inbox-section {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.inbox-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inbox-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.inbox-controls {
  display: flex;
  gap: 8px;
}

.icon-btn-small {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn-small:hover {
  background: var(--text-primary);
  color: var(--bg-base);
}

.icon-btn-small.delete:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.badg-count {
  background: var(--badge-bg);
  padding: 2px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.inbox-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.inbox-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-item {
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.email-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.email-item-left {
  flex-shrink: 0;
}

.email-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.email-item-content {
  flex-grow: 1;
  min-width: 0;
}

.e-sender {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.e-subject {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.e-snippet {
  color: var(--text-secondary);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #9ca3af;
  position: absolute;
  top: 16px;
  right: 16px;
}

.e-time {
  color: var(--text-secondary);
}

.e-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
}

.e-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.e-dot.danger {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
  border: 2px dashed var(--glass-border);
  border-radius: 16px;
  background: var(--badge-bg);
}

.empty-icon {
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.03);
}

.email-item .sender {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.email-item .subject {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.email-item .time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  padding: 24px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.i-shield {
  color: #8b5cf6;
}

.i-flash {
  color: #eab308;
}

.i-globe {
  color: #3b82f6;
}

.feature-item h4 {
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .main-title {
    font-size: 1.8rem;
  }

  .control-actions {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .email-display-wrapper {
    margin-bottom: 20px;
  }

  #email-address {
    font-size: 1rem;
    word-break: break-all;
  }

  .status-info-bar-dashed {
    padding: 12px;
  }

  #status-text-dashed {
    font-size: 1.1rem;
  }

  .notif-dropdown {
    width: 90vw;
  }

  .modal-container {
    max-width: 95vw;
    margin: 10px auto;
    max-height: 95vh;
    overflow-y: auto;
    padding: 16px;
  }

  .email-modal-container {
    max-width: 100vw;
    margin: 0;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  #cc-name-input,
  .auth-input {
    font-size: 16px;
  }

  .email-control-panel {
    padding: 20px 16px;
  }

  .panel-title {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 12px;
  }

  .inbox-list {
    gap: 8px;
  }

  .email-item {
    padding: 12px;
  }

  .email-subject {
    font-size: 0.9rem;
  }

  .email-sender {
    font-size: 0.8rem;
  }

  #email-view-subject {
    font-size: 1.2rem;
    padding-right: 10px;
  }

  .viewer-btn span {
    display: none;
  }

  .viewer-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .e-view-actions {
    gap: 8px;
  }

  .e-view-header {
    padding: 12px;
  }

  .alert-box {
    padding: 10px;
  }

  .alert-title {
    font-size: 0.9rem;
  }
}

.email-modal-container {
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
}

.e-view-header {
  padding: 24px;
}

.e-view-alerts {
  padding: 0 24px;
}

.e-view-content-wrapper {
  padding: 0 24px 24px 24px;
}

.email-white-paper {
  padding: 30px;
  border-radius: 12px;
}

.glass-effect-footer {
  border-top: 1px solid var(--glass-border);
  background: var(--badge-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 50px 0;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}

.glass-effect-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(139, 92, 246, 0.5),
      transparent);
}

.footer-layout {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.footer-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-card:hover {
  background: var(--glass-bg);
  border-color: var(--primary-gradient);
  transform: translateY(-2px);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 16px;
  transition: all 0.3s;
}

.i-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.i-book {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.i-tele {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.i-code {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.footer-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

.link-info {
  flex-grow: 1;
}

.link-title {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.link-desc {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.arrow-icon {
  color: var(--text-secondary);
  opacity: 0.5;
  transition: 0.3s;
}

.footer-card:hover .arrow-icon {
  opacity: 1;
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.footer-bottom strong {
  color: var(--text-primary);
  font-weight: 600;
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.5;
}

.notification-bar {
  margin-bottom: 30px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 0;
  height: 54px;
  display: flex;
  align-items: center;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  padding-left: 100%;
  animation: marquee 35s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee-spacer {
  width: 150px;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.notification-bar i.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 8px;
}

.notification-bar .fa-star {
  margin-left: 8px;
}

.divider {
  display: inline-block;
  width: 50px;
}

kbd {
  background: var(--badge-bg);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}

.custom-create-section {
  width: 100%;
  margin: 0 auto 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  position: relative;
  z-index: 10;
}

.notif-dropdown {
  position: absolute;
  top: 88px;
  right: 20px;
  width: 380px;
  background: var(--bg-base);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  display: none;
  padding: 16px;
  overflow: hidden;
}

.notif-dropdown.show {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.h-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.h-header h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.mark-read-btn {
  background: 0 0;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s;
}

.mark-read-btn:hover {
  color: #34d399;
  text-decoration: none;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.notif-item {
  background: var(--bg-base);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.item-warning {
  border-color: rgba(234, 179, 8, 0.2);
}

.item-warning .n-icon {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.item-info {
  border-color: rgba(59, 130, 246, 0.2);
}

.item-info .n-icon {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.n-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.n-content {
  flex-grow: 1;
}

.n-title {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.n-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

.notif-item .n-title .fa-check {
  display: none;
  color: #10b981;
  opacity: 1 !important;
}

.notif-item.read .n-title .fa-check {
  display: inline-block;
}

.notif-item.read {
  opacity: 0.6;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(15, 17, 26, 0.5);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.e-view-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.viewer-btn {
  flex: 1;
  min-width: 140px;
  padding: 10px;
  border-radius: 8px;
  background: var(--badge-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.viewer-btn:hover {
  background: var(--glass-border);
  transform: translateY(-2px);
}

.image-protection-bar {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #fbbf24;
}

.image-protection-bar button {
  background: #fbbf24;
  color: #000;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.75rem;
}

.protected-content img {
  display: none !important;
}

.protected-content .img-placeholder {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: var(--badge-bg);
  border: 1px dashed var(--text-secondary);
  margin: 5px;
  border-radius: 4px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show,
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  display: flex !important;
}

.modal-container {
  width: 500px;
  max-width: 90%;
  background: var(--bg-base);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
}

.modal-overlay.show .modal-container {
  transform: scale(1) translateY(0);
}

#confirm-modal {
  z-index: 10005;
}

.confirm-modal-container {
  max-width: 400px;
  text-align: center;
}

.modal-icon-header {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.confirm-icon-danger {
  color: #ef4444;
}

.confirm-icon-success {
  color: #10b981;
}

.confirm-icon-warning {
  color: #f59e0b;
}

.confirm-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.confirm-modal-message {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-actions button {
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.btn-cancel {
  background: 0 0;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.btn-cancel:hover {
  background: var(--badge-bg);
  color: var(--text-primary);
}

.btn-confirm-ok {
  background: #ef4444;
  border: none;
  color: #fff;
}

.btn-confirm-ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--badge-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
  z-index: 20;
}

.modal-close:hover {
  background: var(--glass-border);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}


.auth-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.auth-view.active {
  display: block;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-right: 40px;
}

.auth-header i {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.auth-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-form-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.auth-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: 0;
  transition: all 0.2s;
}

.auth-input:focus {
  border-color: #8b5cf6;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  transition: filter 0.2s;
}

.submit-btn:hover {
  filter: brightness(1.1);
}

.btn-purple {
  background: #8b5cf6;
}

.btn-green {
  background: #10b981;
}

.auth-footer-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.auth-footer-link a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s;
}

.auth-footer-link a:hover {
  color: #8b5cf6;
  text-decoration: underline;
}

.email-modal-container {
  width: 800px;
  max-width: 95%;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  padding: 0;
  background: var(--bg-base);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.e-view-header {
  background: var(--bg-base);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.e-view-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#email-view-subject {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  flex: 1;
  padding-right: 20px;
}

.cc-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.e-view-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-download {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-delete-mail {
  width: 36px;
  height: 36px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete-mail:hover {
  background: #ef4444;
  color: #fff;
}

.modal-close-static {
  width: 36px;
  height: 36px;
  background: var(--badge-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-static:hover {
  background: var(--glass-border);
  color: var(--text-primary);
}

.e-view-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.meta-line strong {
  color: var(--text-primary);
  margin-right: 6px;
}

.e-view-alerts {
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.alert-box {
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.green-alert {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
}

.green-alert .alert-icon {
  color: #10b981;
  font-size: 1.2rem;
}

.alert-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.green-alert .alert-title {
  color: #059669;
  font-weight: 700;
  font-size: 0.95rem;
}

.green-alert .alert-sub {
  color: #10b981;
  font-size: 0.8rem;
}

.yellow-alert {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid #eab308;
  justify-content: space-between;
}

.alert-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yellow-alert .alert-icon {
  color: #facc15;
  font-size: 1.2rem;
}

.yellow-alert .alert-title {
  color: #854d0e;
  font-weight: 700;
  font-size: 0.95rem;
}

.yellow-alert .alert-sub {
  color: #a16207;
  font-size: 0.8rem;
}

.btn-load-img {
  background: #eab308;
  color: #1a202c;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-load-img:hover {
  background: #facc15;
}

.e-view-content-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 32px 32px 32px;
  background: var(--bg-base);
}

.email-white-paper {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  color: #1a202c;
  min-height: 400px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.email-white-paper h1,
.email-white-paper h2,
.email-white-paper h3,
.email-white-paper li,
.email-white-paper p {
  color: #1a202c;
}

.email-white-paper::-webkit-scrollbar {
  width: 0;
}

.skeleton {
  background: var(--badge-bg);
  background: linear-gradient(to right,
      var(--badge-bg) 8%,
      var(--glass-border) 18%,
      var(--badge-bg) 33%);
  background-size: 800px 104px;
  animation: shimmer 1.5s infinite linear;
  border-radius: 6px;
}

@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-item {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--badge-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 24px;
}

.profile-avatar-box {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.profile-info-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#profile-username {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

.profile-badge-vip {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 50px;
  width: fit-content;
}

.profile-content {
  padding-top: 0;
}

.section-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.my-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
}

.my-inbox-list::-webkit-scrollbar {
  width: 4px;
}

.my-inbox-list::-webkit-scrollbar-track {
  background: 0 0;
}

.my-inbox-list::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

.my-inbox-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.saved-inbox-item {
  background: var(--badge-bg);
  border: 1px solid transparent;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.item-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.my-inbox-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(139, 92, 246, 0.3);
}

.inbox-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin-right: 12px;
}

.saved-inbox-item:hover {
  background: var(--glass-border);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}

.saved-inbox-item.active {
  border-color: var(--primary-purple);
  background: rgba(139, 92, 246, 0.1);
}

.saved-inbox-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 3px;
  background: var(--primary-purple);
  border-radius: 0 4px 4px 0;
}

.inbox-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  margin-right: 12px;
}

.inbox-info .email-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-info .status-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.inbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.btn-item-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--badge-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-item-action:hover {
  background: var(--primary-purple);
  color: #fff;
}

.btn-item-action.delete:hover {
  background: #ef4444;
  color: #fff;
}

.saved-inbox-item i {
  font-size: 0.9rem;
}

#show-change-pwd {
  width: 100%;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  backdrop-filter: blur(4px);
}

#show-my-inboxes {
  width: 100%;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  backdrop-filter: blur(4px);
}

#show-change-pwd:hover {
  background: #8b5cf6;
  color: #fff;
  transform: scale(1.02);
}

#show-my-inboxes:hover {
  background: #10b981;
  color: #fff;
  transform: scale(1.02);
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.page-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--badge-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.page-btn:hover:not(:disabled) {
  background: var(--primary-purple);
  color: #fff;
  border-color: var(--primary-purple);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.logout-btn {
  width: 100%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.logout-btn:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.02);
}

.auth-view {
  display: none;
}

.auth-view.active {
  display: block;
}

.notif-btn {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  background: #ef4444;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: Inter, sans-serif;
  color: #fff !important;
  border: 2px solid var(--bg-base, #0f0f23);
  padding: 0;
  z-index: 100;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg-base);
}

.red-alert {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

.red-alert .alert-icon,
.red-alert .alert-title {
  color: #ef4444 !important;
}

.orange-alert {
  border-color: #f97316 !important;
  background: rgba(249, 115, 22, 0.1) !important;
}

.orange-alert .alert-icon,
.orange-alert .alert-title {
  color: #f97316 !important;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  min-width: 320px;
  position: relative;
  animation: toastSlideIn 0.3s ease-out forwards;
}

@media (max-width: 768px) {
  .toast-container {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }

  .toast {
    min-width: auto;
    width: 100%;
    animation: toastSlideInMobile 0.3s forwards;
  }
}

.toast.hiding {
  animation: toastSlideOut 0.3s forwards;
}

.toast-icon {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #3b82f6;
}

.toast.error .toast-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.toast.info .toast-icon {
  color: #3b82f6;
}

.toast-content {
  flex: 1;
  padding-right: 20px;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: #fff;
}

.toast-msg {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.4;
}

.toast-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: 0 0;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #fff;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideInMobile {
  from {
    transform: translateY(120%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes toastSlideOutMobile {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(120%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .toast.hiding {
    animation: toastSlideOutMobile 0.3s forwards;
  }
}

.sys-notif-modal-container {
  max-width: 500px;
  padding: 0;
}

.sys-notif-modal-container .modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.sys-notif-modal-container .modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.sys-notif-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sys-notif-badge.info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.sys-notif-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.sys-notif-badge.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.sys-notif-modal-container .modal-body {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.sys-notif-modal-container .modal-body p {
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sys-notif-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding-top: 15px;
  border-top: 1px solid var(--glass-border);
}

.sys-notif-modal-container .modal-close-static {
  position: static;
  background: var(--badge-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--glass-border);
}

.setting-label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-primary);
  gap: 10px;
}

.setting-label i {
  color: #8b5cf6;
  width: 20px;
  text-align: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4b5563;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-image: linear-gradient(135deg, #4f46e5, #818cf8);
}

input:focus+.slider {
  box-shadow: 0 0 1px #8b5cf6;
}

input:checked+.slider:before {
  transform: translateX(20px);
}

.attachment-container {
  padding: 15px 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.quick-tools-section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
  position: relative;
  overflow: visible;
}

.quick-tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-tools-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.quick-tools-content {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.flat-input {
  flex-grow: 1;
  width: 100%;
  min-width: 0;
  height: 42px;
  background: var(--input-flat-bg);
  border: 1px solid var(--input-flat-border);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: Inter, sans-serif;
  outline: 0;
  transition: all 0.2s ease;
}

.flat-input:focus {
  background: rgba(0, 0, 0, 0.5);
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.flat-input::placeholder {
  color: var(--placeholder-color);
}

.flat-btn {
  height: 42px;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#btn-2fa-action {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.3);
}

#btn-2fa-action:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px -2px rgba(234, 88, 12, 0.4);
}

#btn-add-domain {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

#btn-add-domain:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px -2px rgba(37, 99, 235, 0.4);
}

#btn-2fa-action.active {
  background: linear-gradient(135deg, #10b981, #059669);
}

.otp-mini-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.2);
}

.otp-mini-fill {
  height: 100%;
  background: #34d399;
  width: 100%;
  transition: width 1s linear;
}

@media (max-width: 900px) {
  .quick-tools-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .tool-group {
    width: 100%;
  }
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.attachment-item {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 220px;
  gap: 12px;
  transition: all 0.2s;
  cursor: default;
}

.attachment-item:hover {
  border-color: #8b5cf6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.att-icon {
  font-size: 1.5rem;
  color: #8b5cf6;
  width: 32px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.att-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.att-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.att-size {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.att-download {
  background: var(--badge-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  border-radius: 50%;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.att-download:hover {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
}

.faq-section {
  padding: 80px 0;
  position: relative;
  z-index: 10;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}

.faq-item:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.2);
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
  user-select: none;
}

.faq-question i {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-purple);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0, 1, 0, 1);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 0 25px 25px 25px;
  max-height: 1000px;
  transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 500px) {

  .logo span,
  #lang-text,
  .account-btn span {
    display: none !important;
  }

  .header-actions {
    gap: 8px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .input-main-group {
    flex-direction: column;
    gap: 8px;
  }

  #cc-name-input,
  .cc-select-wrapper {
    width: 100%;
    flex: none;
  }

  .at-symbol {
    display: none;
  }

  .inbox-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 40px 16px 30px 16px;
  }

  .header-content h1 {
    font-size: 1.8rem;
  }

  .inbox-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
    margin-bottom: 16px;
  }

  .item-icon {
    display: none;
  }

  .item-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
  }

  .action-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
  }

  .inline-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .inline-actions .action-btn {
    width: 100%;
    justify-content: center;
  }

  .quick-tools-section {
    padding: 16px;
  }

  .tool-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .flat-input {
    width: 100%;
    min-height: 44px;
  }

  .flat-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .code-tabs {
    font-size: 0.8rem;
  }

  .code-block pre {
    font-size: 0.8rem;
    padding: 12px;
  }

  .endpoint-card {
    padding: 16px;
  }

  .modal-container {
    width: 95%;
    padding: 20px;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }
}

.footer-section {
  background: var(--footer-bg);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px 0;
  margin-top: 80px;
  color: var(--text-primary);
  font-family: Inter, sans-serif;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.logo-icon.small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: #fff;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 350px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--glass-icon-bg);
  border: 1px solid var(--glass-icon-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.footer-heading {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 5px;
}

.footer-bottom-bar {
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom-bar strong {
  color: var(--text-primary);
}

.footer-bottom-bar .right-text a {
  color: #6b7280;
  transition: color 0.2s;
}

.footer-bottom-bar .right-text a:hover {
  color: #9ca3af;
}

@media (max-width: 768px) {
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* Domain Status Badge */
.domain-status-badge {
  background-color: #15803d;
  /* Darker Green for better contrast */
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 12px;
  border-radius: 8px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

@media (max-width: 640px) {
  .domain-status-badge {
    font-size: 0.75rem;
    padding: 0 8px;
    height: 36px;
    margin-left: 6px;
  }

  .domain-status-badge i {
    font-size: 0.7rem;
    margin-right: 4px;
  }
}

@media (max-width: 400px) {
  .domain-status-badge {
    font-size: 0;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 4px;
  }

  .domain-status-badge i {
    margin-right: 0;
    font-size: 0.9rem;
  }
}

/* Status Badge States */
.domain-status-badge.offline {
  background-color: #b91c1c;
  /* Red */
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
  animation: none;
}

.domain-status-badge.checking:hover {
  background-color: #92400e;
}

.domain-status-badge.offline:hover {
  background-color: #991b1b;
}

.domain-status-badge.checking {
  background-color: #b45309;
  /* Amber */
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
  animation: none;
}

/* --- Blog Article Professional Features --- */

/* Reading Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 10000;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, #8b5cf6, #d946ef, #fbbf24);
  width: 0%;
  transition: width 0.2s ease-out;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* Related Posts Section */
.related-posts {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
}

.related-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-title i {
  color: #8b5cf6;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.related-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 12px;
}

.related-card:hover {
  transform: translateX(5px);
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.05);
}

.related-thumb {
  width: 100px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-card:hover .related-thumb img {
  transform: scale(1.1);
}

.related-info {
  padding: 0;
  flex: 1;
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #8b5cf6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  background: #7c3aed;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}