/* ============================================
   BUTTON SYSTEM
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--dur-fast);
  border-radius: inherit;
}
.btn:active::after { opacity: 0.06; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: white;
  box-shadow: 0 4px 16px hsla(258, 90%, 66%, 0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(258, 90%, 66%, 0.45);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

/* Secondary */
.btn-secondary {
  background: hsla(220, 20%, 50%, 0.12);
  color: var(--txt-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover:not(:disabled) {
  background: hsla(220, 20%, 50%, 0.2);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  color: var(--txt-secondary);
  background: transparent;
}
.btn-ghost:hover:not(:disabled) {
  color: var(--txt-primary);
  background: hsla(220, 20%, 50%, 0.1);
}

/* Danger */
.btn-danger {
  background: hsla(4, 90%, 60%, 0.15);
  color: var(--clr-error);
  border: 1px solid hsla(4, 90%, 60%, 0.3);
}
.btn-danger:hover:not(:disabled) {
  background: hsla(4, 90%, 60%, 0.25);
  transform: translateY(-1px);
}

/* Accent */
.btn-accent {
  background: linear-gradient(135deg, var(--clr-accent), hsl(210, 90%, 60%));
  color: var(--txt-inverse);
  font-weight: 700;
}
.btn-accent:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-glow);
}

/* Sizes */
.btn-sm { padding: 7px var(--space-4); font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px var(--space-8); font-size: 1rem; border-radius: var(--radius-lg); }
.btn-icon { padding: var(--space-3); border-radius: var(--radius-sm); }

/* Loading state */
.btn.loading { pointer-events: none; }
.btn.loading .btn-text { opacity: 0; }
.btn.loading::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--txt-secondary);
  letter-spacing: 0.3px;
}
.form-input {
  padding: 12px var(--space-4);
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--txt-primary);
  font-size: 0.95rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast),
              background var(--dur-fast);
  outline: none;
}
.form-input::placeholder { color: var(--txt-muted); }
.form-input:focus {
  border-color: var(--clr-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px hsla(258, 90%, 66%, 0.15);
}
.form-input.error {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px hsla(4, 90%, 60%, 0.12);
}
.form-hint {
  font-size: 0.8rem;
  color: var(--txt-muted);
}
.form-error {
  font-size: 0.8rem;
  color: var(--clr-error);
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

input[type="file"]::file-selector-button {
  background: var(--bg-input);
  color: var(--txt-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-right: 12px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  transition: all var(--dur-fast);
}
input[type="file"]::file-selector-button:hover {
  background: hsla(258, 90%, 66%, 0.1);
  border-color: var(--clr-primary);
  color: var(--clr-primary-light);
}
.form-select {
  padding: 12px var(--space-4);
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--txt-primary);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px hsla(258, 90%, 66%, 0.15);
}

/* ============================================
   CARD COMPONENT
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur-slow) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-input);
  position: relative;
  overflow: hidden;
}
.card-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.card-body {
  padding: var(--space-5) var(--space-6);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt-primary);
  line-height: 1.35;
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--dur-fast);
}
.card:hover .card-title { color: var(--clr-primary-light); }
.card-excerpt {
  font-size: 0.88rem;
  color: var(--txt-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-glass);
  margin-top: var(--space-4);
}
.card-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: hsla(258, 90%, 66%, 0.1);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  transition: all var(--dur-fast);
}

.avatar-wrapper {
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
}

.avatar-wrapper:hover, .user-menu-trigger:hover .avatar-wrapper {
  transform: scale(1.1);
  border-color: var(--clr-primary-light) !important;
  box-shadow: 0 0 15px hsla(258, 90%, 66%, 0.4);
}

.user-menu-trigger {
  padding: 2px;
  border-radius: 50%;
  transition: all var(--dur-fast);
}
.author-name {
  font-size: 0.82rem;
  color: var(--txt-secondary);
  font-weight: 500;
}
.card-date {
  font-size: 0.8rem;
  color: var(--txt-muted);
}

/* ============================================
   SKELETON SCREENS
   ============================================ */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-card) 25%,
    var(--bg-card-hover) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.skeleton-img   { height: 200px; }
.skeleton-body  { padding: var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.skeleton-badge { height: 22px; width: 80px; border-radius: var(--radius-full); }
.skeleton-title { height: 20px; }
.skeleton-title-short { height: 20px; width: 65%; }
.skeleton-text  { height: 14px; }
.skeleton-text-short { height: 14px; width: 45%; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(230, 22%, 5%, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: fadeIn var(--dur-normal) var(--ease-out);
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: scaleIn var(--dur-slow) var(--ease-spring);
}
.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.modal-desc {
  color: var(--txt-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-6);
}
.modal-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  justify-content: flex-end;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, hsla(258,90%,66%,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, hsla(192,95%,60%,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: hsla(258, 90%, 66%, 0.1);
  border: 1px solid hsla(258, 90%, 66%, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  animation: fadeInDown var(--dur-slow) var(--ease-out) 0.1s both;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-5);
  animation: fadeInDown var(--dur-slow) var(--ease-out) 0.2s both;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--txt-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
  animation: fadeInDown var(--dur-slow) var(--ease-out) 0.3s both;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInDown var(--dur-slow) var(--ease-out) 0.4s both;
}

/* ============================================
   BLOG POST GRID
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}
.featured-post {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-height: 420px;
}
.featured-post .card-img {
  height: 100%;
  max-height: 420px;
  border-radius: 0;
}
.featured-post .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-10);
}
.featured-post .card-title {
  font-size: 1.5rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* ============================================
   RICH TEXT CONTENT (Article body)
   ============================================ */
.prose {
  font-family: var(--font-prose);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--txt-primary);
}
.prose h2, .prose h3 { font-family: var(--font-ui); font-weight: 700; margin: var(--space-8) 0 var(--space-4); }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin-bottom: var(--space-5); }
.prose ul, .prose ol { padding-left: var(--space-6); margin-bottom: var(--space-5); }
.prose li { margin-bottom: var(--space-2); }
.prose blockquote {
  border-left: 3px solid var(--clr-primary);
  padding: var(--space-4) var(--space-6);
  background: hsla(258, 90%, 66%, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--txt-secondary);
}
.prose code {
  background: var(--bg-input);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
  color: var(--clr-accent);
}
.prose strong { font-weight: 700; color: var(--txt-primary); }
.prose a { color: var(--clr-primary-light); text-decoration: underline; text-underline-offset: 3px; }
.prose img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-md);
}

/* ============================================
   ADMIN RICH TEXT EDITOR
   ============================================ */
.editor-toolbar {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  padding: var(--space-3);
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.editor-toolbar button {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--txt-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--dur-fast);
}
.editor-toolbar button:hover { background: var(--border-medium); color: var(--txt-primary); }
.editor-toolbar button.active { background: var(--clr-primary); color: white; }
.editor-toolbar .sep {
  width: 1px;
  background: var(--border-subtle);
  align-self: stretch;
  margin: 4px 2px;
}
.editor-content {
  min-height: 300px;
  padding: var(--space-5);
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-top: 1px solid var(--border-glass);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--txt-primary);
  font-size: 0.95rem;
  line-height: 1.7;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.editor-content:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px hsla(258, 90%, 66%, 0.15);
}

/* ============================================
   ADMIN DASHBOARD CARDS
   ============================================ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  transition: transform var(--dur-normal), box-shadow var(--dur-normal);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.purple { background: hsla(258,90%,66%,0.15); }
.stat-icon.cyan   { background: hsla(192,95%,60%,0.15); }
.stat-icon.green  { background: hsla(142,70%,50%,0.15); }
.stat-icon.orange { background: hsla(30,100%,65%,0.15); }
.stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--txt-secondary); margin-top: 4px; }

/* ============================================
   ADMIN TABLE
   ============================================ */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--txt-muted);
  border-bottom: 1px solid var(--border-glass);
}
.admin-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: hsla(220, 20%, 50%, 0.05); }
.table-actions { display: flex; gap: var(--space-2); }

/* ============================================
   SIDEBAR (Categories)
   ============================================ */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--txt-muted);
  margin-bottom: var(--space-4);
}
.category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast);
  margin-bottom: var(--space-1);
}
.category-pill:hover { background: hsla(220, 20%, 50%, 0.1); color: var(--txt-primary); }
.category-pill.active { background: hsla(258,90%,66%,0.12); color: var(--clr-primary-light); }
.category-count {
  font-size: 0.78rem;
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--txt-muted);
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-wrapper {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--txt-muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.search-input {
  padding-left: 38px !important;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--txt-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: all var(--dur-fast);
}
.page-btn:hover { color: var(--txt-primary); border-color: var(--border-medium); }
.page-btn.active {
  background: var(--clr-primary);
  color: white;
  border-color: var(--clr-primary);
  box-shadow: 0 4px 12px hsla(258, 90%, 66%, 0.3);
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  z-index: 99;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px hsla(258, 90%, 66%, 0.5);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  filter: grayscale(0.3);
}
.empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.empty-desc {
  color: var(--txt-secondary);
  margin-bottom: var(--space-6);
  font-size: 0.95rem;
}

/* ============================================
   TAG CHIPS
   ============================================ */
.tags-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-chip {
  padding: 5px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--txt-secondary);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.tag-chip:hover { border-color: var(--clr-primary); color: var(--clr-primary-light); }

/* ============================================
   RESPONSIVE COMPONENTS
   ============================================ */
@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; max-height: none; }
  .featured-post .card-img { height: 260px; max-height: 260px; }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MODAL DIALOG
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: hsla(230, 22%, 5%, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn var(--dur-fast) ease-out;
}
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: var(--space-8);
  box-shadow: var(--shadow-2xl);
  animation: scaleIn var(--dur-fast) var(--ease-out);
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-desc {
  color: var(--txt-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  font-size: 0.95rem;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* QR Button Mobile Fix */
@media (max-width: 480px) {
  .qr-btn-text { display: none; }
  #btn-post-qr { 
    padding: 0 !important; 
    border-radius: 50% !important; 
    width: 42px !important; 
    height: 42px !important; 
    min-width: 42px !important;
    justify-content: center;
    gap: 0 !important;
  }
  #btn-post-qr svg { margin: 0; }
}

/* ============================================
   USER DROPDOWN MENU
   ============================================ */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 12px;
  background: var(--bg-surface);
  min-width: 240px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(25px);
  z-index: 1000;
  padding: 10px;
  overflow: hidden;
  animation: dropdownIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-content.show {
  display: block;
}

.dropdown-header {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
}

.dropdown-header strong { font-size: 0.95rem; color: var(--txt-main); margin-bottom: 4px; display: block; }
.dropdown-header span { font-size: 0.75rem; color: var(--txt-muted); word-break: break-all; }

.dropdown-content hr {
  margin: 8px 0;
  border: 0;
  border-top: 1px solid var(--border-glass);
}

.dropdown-content a, .dropdown-content button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  text-align: left;
  text-decoration: none;
  color: var(--txt-main);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-content a:hover, .dropdown-content button:hover {
  background: hsla(258, 90%, 66%, 0.1);
  color: var(--clr-primary-light);
  transform: translateX(5px);
}

