/* ================= TOPBAR ================= */
.abir-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.abir-topbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.branding-link .logo-mark {
  width: 32px;
  height: 32px;
  object-fit: cover;
  display: flex;
  border-radius: 4px;
}

.branding-link .logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.search-field-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.search-field-btn:hover {
  border-color: var(--turquoise-primary);
}

.kbd-shortcut {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 12px;
}

.nav-item-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-right: 1.5rem;
}

.nav-item-link:hover, .nav-item-link.active {
  color: var(--turquoise-primary);
}

.cta-lets-talk {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border: 1px solid var(--turquoise-primary);
  color: var(--turquoise-primary);
  border-radius: 20px;
  background: transparent;
  transition: all 0.2s ease;
}

.cta-lets-talk:hover {
  background: var(--turquoise-primary);
  color: #000;
  box-shadow: 0 0 12px var(--turquoise-glow);
}

.cta-compact {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.theme-toggle-btn, .icon-control-btn, .hamburger-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
}

/* Mobile Search Bar overlay inside topbar */
.mobile-search-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-search-bar.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  padding: 8px 12px;
  outline: none;
}

.mobile-search-bar .back-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-dropdown-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-muted);
}

.mobile-link.active, .mobile-link:hover {
  color: var(--turquoise-primary);
}

.close-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
}

/* Search Modal */
.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 90%;
  max-width: 550px;
  padding: 1.25rem;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.search-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-body);
}

.esc-badge {
  font-size: 0.7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.recommended-label {
  font-family: var(--font-muted);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.search-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-link-item {
  color: var(--text-primary);
  padding: 8px;
  border-radius: 4px;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.search-link-item:hover {
  background: var(--bg-secondary);
  color: var(--turquoise-primary);
}

/* ================= CODE WINDOW ================= */
.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.code-window-header {
  background: var(--bg-secondary);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
  display: flex;
  gap: 6px;
}

.window-controls .control {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: #0f1216;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 8px;
}

.code-tab {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted, #B8B8B8);
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 10px 14px;
  margin: 0;
  cursor: pointer;
  border-radius: 0;
  outline: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.code-tab:hover {
  color: var(--text-primary, #FFFFFF);
  background: rgba(255, 255, 255, 0.04);
}

.code-tab:focus-visible {
  color: var(--turquoise-primary, #40E0D0);
  box-shadow: inset 0 0 0 1px var(--turquoise-primary, #40E0D0);
}

.code-tab.active {
  color: var(--turquoise-primary, #40E0D0);
  background: rgba(64, 224, 208, 0.08);
  border-bottom-color: var(--turquoise-primary, #40E0D0);
}

[data-theme="light"] .tab-list {
  background: #ececec;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .code-tab {
  color: #555555;
}

[data-theme="light"] .code-tab:hover,
[data-theme="light"] .code-tab.active {
  color: var(--turquoise-primary, #00A896);
  background: rgba(0, 168, 150, 0.08);
}

/* ================= STATS CARDS ================= */
.stat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  border-radius: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--turquoise-primary);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--turquoise-primary);
}

.stat-label {
  font-family: var(--font-muted);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ================= SKILLS MARQUEE ================= */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  gap: 1rem;
  animation: scrollMarquee 25s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.skill-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ================= ABOUT PROFILE IMAGE ================= */
.profile-image-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.profile-img {
  width: 100%;
  display: block;
  filter: grayscale(20%);
  transition: transform 0.3s ease;
}

.profile-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(0,0,0,0.75);
  font-family: var(--font-media);
  font-size: 0.8rem;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-image-container:hover .profile-caption {
  opacity: 1;
}

/* ================= SERVICES CARDS ================= */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 8px;
  height: 100%;
  transition: border-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--turquoise-primary);
}

.service-icon {
  font-size: 2rem;
  color: var(--turquoise-primary);
  margin-bottom: 1rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ================= PROJECT CARDS ================= */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-image-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.project-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.project-image-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-preview-img {
  filter: blur(2px);
}

.project-card:hover .project-image-overlay {
  opacity: 1;
}

.action-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--turquoise-primary);
  color: var(--turquoise-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.action-circle-btn:hover {
  background: var(--turquoise-primary);
  color: #000;
}

.action-circle-btn.muted {
  border-color: var(--border-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
}

.project-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-favicon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.project-title:hover {
  text-decoration: underline;
  color: var(--turquoise-primary);
}

.tech-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--text-muted);
}

/* ================= SOCIAL CARDS ================= */
.social-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.social-card:hover {
  border-color: var(--turquoise-primary);
  transform: translateY(-2px);
}

/* ================= BUTTONS & FORMS ================= */
.cta-primary {
  background: var(--turquoise-primary);
  color: #000;
  font-family: var(--font-ui);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.cta-primary:hover {
  background: var(--turquoise-hover);
  box-shadow: 0 0 12px var(--turquoise-glow);
  color: #000;
}

.cta-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-ui);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  display: inline-block;
  transition: border-color 0.2s;
}

.cta-secondary:hover {
  border-color: var(--turquoise-primary);
  color: var(--turquoise-primary);
}

.cta-outline {
  border: 1px dashed var(--turquoise-primary);
  color: var(--turquoise-primary);
  font-family: var(--font-ui);
  padding: 10px 24px;
  border-radius: 4px;
}

.abir-input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.abir-input:focus {
  background: var(--bg-card);
  border-color: var(--turquoise-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem var(--turquoise-glow);
}

.abir-input::placeholder,
.form-control::placeholder,
.form-select::placeholder,
textarea.abir-input::placeholder,
.abir-input::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder,
.abir-input::-moz-placeholder,
.form-control::-moz-placeholder,
.selected-text.placeholder {
  color: #D2D2D2 !important;
  opacity: 1 !important;
}

[data-theme="light"] .abir-input::placeholder,
[data-theme="light"] .form-control::placeholder,
[data-theme="light"] .form-select::placeholder,
[data-theme="light"] textarea.abir-input::placeholder,
[data-theme="light"] .abir-input::-webkit-input-placeholder,
[data-theme="light"] .form-control::-webkit-input-placeholder,
[data-theme="light"] .abir-input::-moz-placeholder,
[data-theme="light"] .form-control::-moz-placeholder,
[data-theme="light"] .selected-text.placeholder {
  color: #5E6368 !important;
  opacity: 1 !important;
}

/* ================= FOOTER ================= */
.abir-footer {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  overflow: hidden;
}

.footer-branding {
  position: relative;
  min-height: 7.5rem;
}

.footer-artwork-bg {
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-58%);
  width: 14rem;
  height: 14rem;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.footer-artwork-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 70%;
  display: block;
}

.footer-title,
.footer-copyright {
  position: relative;
  z-index: 1;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.footer-copyright {
  font-family: var(--font-muted);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-group-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
}

.footer-links-list li {
  margin-bottom: 0.5rem;
}

.footer-links-list a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--turquoise-primary);
}

.admin-link {
  opacity: 0.5;
}

.admin-link:hover {
  opacity: 1;
}

/* Toast */
.abir-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--turquoise-primary);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  z-index: 3000;
  display: none;
}

/* Card & Container Corner Enforcement */
.service-card, 
.project-card, 
.setup-card,
.about-card,
.profile-image-container {
  border-radius: 16px !important;
}

.cta-primary, 
.cta-secondary, 
.cta-outline, 
.skill-chip-static {
  border-radius: 12px !important;
}

/* About Page Hero Image */
.profile-image-container {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.profile-image-container img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-image-container:hover img {
  transform: scale(1.03);
}

/* Buttons */
.cta-primary {
  background: var(--turquoise-primary);
  color: #000;
  font-family: var(--font-ui);
  font-weight: 600;
  padding: 12px 26px;
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.cta-primary:hover {
  background: var(--turquoise-hover);
  box-shadow: 0 0 18px var(--turquoise-glow);
  transform: translateY(-2px);
  color: #000;
}

.cta-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-ui);
  font-weight: 600;
  padding: 12px 26px;
  display: inline-block;
  transition: all 0.25s ease;
  cursor: pointer;
}

.cta-secondary:hover {
  border-color: var(--turquoise-primary);
  color: #000;
  background: var(--turquoise-primary);
  box-shadow: 0 0 16px var(--turquoise-glow);
  transform: translateY(-2px);
}

.cta-outline {
  border: 1px dashed var(--turquoise-primary);
  color: var(--turquoise-primary);
  font-family: var(--font-ui);
  padding: 12px 26px;
  display: inline-block;
  transition: all 0.2s;
}

.cta-outline:hover {
  background: var(--turquoise-glow);
  color: var(--turquoise-primary);
}

/* Informational Skill Badges */
.skill-chip-static {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  user-select: none;
}

/* Hardware Specs Table */
.setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.specs-table td.spec-label {
  color: var(--turquoise-primary);
  font-family: var(--font-ui);
  font-weight: 600;
  width: 35%;
}

/* Viewport Progress Indicators */
.progress-container {
  margin-bottom: 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.progress-track {
  height: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--turquoise-primary);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px;
}

/* Filter Buttons */
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--turquoise-primary);
}

.filter-btn.active {
  background: var(--turquoise-primary);
  color: #000;
  border-color: var(--turquoise-primary);
  font-weight: 600;
  box-shadow: 0 0 12px var(--turquoise-glow);
}

/* Project Card Outer Framework */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px !important;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--turquoise-primary);
  box-shadow: 0 12px 30px rgba(64, 224, 208, 0.12);
}

/* Image & Overlay Interactions */
.project-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card-img {
  filter: blur(3px);
  transform: scale(1.04);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

/* Circle Action Buttons */
.action-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--turquoise-primary);
  color: var(--turquoise-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.action-circle-btn:hover {
  background: var(--turquoise-primary);
  color: #000;
  box-shadow: 0 0 14px var(--turquoise-glow);
}

.action-circle-btn.muted-btn {
  border-color: var(--border-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
}

.action-circle-btn.muted-btn:hover {
  background: var(--bg-card);
  color: var(--text-muted);
  box-shadow: none;
}

/* Badges & Favicons */
.project-favicon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.project-category-badge {
  font-family: var(--font-code);
  font-size: 0.725rem;
  color: var(--turquoise-primary);
  background: var(--turquoise-glow);
  padding: 2px 8px;
  border-radius: 4px;
}

.tech-badge {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Mobile Action Controls */
.btn-mobile-action {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.btn-mobile-action.disabled {
  opacity: 0.5;
}

/* Toast Message */
.abir-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--turquoise-primary);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.abir-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Feedback Surface Container */
.feedback-card-surface {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Star Rating Controls */
.rating-star-group .star-btn {
  font-size: 1.6rem;
  color: var(--border-subtle);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rating-star-group .star-btn:hover,
.rating-star-group .star-btn.hovered,
.rating-star-group .star-btn.selected {
  color: var(--turquoise-primary);
  transform: scale(1.15);
}

/* Status Messages */
.feedback-status-message {
  border-radius: 16px;
  padding: 2rem;
}

.feedback-status-message.success-box {
  background: rgba(64, 224, 208, 0.05);
  border: 1px solid var(--turquoise-primary);
  color: var(--text-primary);
}

.feedback-status-message.success-box .status-icon {
  font-size: 3rem;
  color: var(--turquoise-primary);
}

.feedback-status-message.error-box {
  background: rgba(235, 87, 87, 0.05);
  border: 1px solid #EB5757;
  color: var(--text-primary);
}

.feedback-status-message.error-box .status-icon {
  font-size: 3rem;
  color: #EB5757;
}

/* ================= CATEGORY TEMPORARY THEMES ================= */

/* Bug Report Temporary Theme (Red) */
body.theme-bug-report {
  --border-subtle: rgba(235, 87, 87, 0.3);
  --turquoise-glow: rgba(235, 87, 87, 0.25);
}

body.theme-bug-report .feedback-card-surface {
  border-color: rgba(235, 87, 87, 0.4);
  box-shadow: 0 0 35px rgba(235, 87, 87, 0.12);
}

body.theme-bug-report .abir-input:focus {
  border-color: #EB5757;
  box-shadow: 0 0 0 0.2rem rgba(235, 87, 87, 0.25);
}

body.theme-bug-report .rating-star-group .star-btn:hover,
body.theme-bug-report .rating-star-group .star-btn.hovered,
body.theme-bug-report .rating-star-group .star-btn.selected {
  color: #EB5757;
}

body.theme-bug-report .cta-primary {
  background: #EB5757;
  color: #FFFFFF;
}

body.theme-bug-report .cta-primary:hover {
  background: #D43F3F;
  box-shadow: 0 0 18px rgba(235, 87, 87, 0.3);
}

/* UI/UX Temporary Theme (Purple) */
body.theme-ui-ux {
  --border-subtle: rgba(155, 81, 224, 0.3);
  --turquoise-glow: rgba(155, 81, 224, 0.25);
}

body.theme-ui-ux .feedback-card-surface {
  border-color: rgba(155, 81, 224, 0.4);
  box-shadow: 0 0 35px rgba(155, 81, 224, 0.12);
}

body.theme-ui-ux .abir-input:focus {
  border-color: #9B51E0;
  box-shadow: 0 0 0 0.2rem rgba(155, 81, 224, 0.25);
}

body.theme-ui-ux .rating-star-group .star-btn:hover,
body.theme-ui-ux .rating-star-group .star-btn.hovered,
body.theme-ui-ux .rating-star-group .star-btn.selected {
  color: #9B51E0;
}

body.theme-ui-ux .cta-primary {
  background: #9B51E0;
  color: #FFFFFF;
}

body.theme-ui-ux .cta-primary:hover {
  background: #8238C7;
  box-shadow: 0 0 18px rgba(155, 81, 224, 0.3);
}

/* Surface Container */
.project-request-surface {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.form-section-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-number {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--turquoise-primary);
  background: var(--turquoise-glow);
  padding: 2px 8px;
  border-radius: 6px;
}

.section-divider {
  border-color: var(--border-subtle);
  opacity: 1;
}

.underline-link {
  text-decoration: underline;
  transition: opacity 0.2s;
}

.underline-link:hover {
  opacity: 0.8;
}

.field-footer-help {
  font-size: 0.825rem;
  line-height: 1.5;
}

.currency-prefix {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--turquoise-primary);
  font-family: var(--font-code);
  font-weight: 600;
}

/* ================= CUSTOM DROPDOWN ================= */
.custom-dropdown-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.custom-dropdown-container:focus,
.custom-dropdown-container.open {
  border-color: var(--turquoise-primary);
  box-shadow: 0 0 0 0.2rem var(--turquoise-glow);
}

.custom-dropdown-container.is-invalid {
  border-color: #EB5757 !important;
}

.selected-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.selected-text.placeholder {
  color: var(--text-muted);
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.custom-dropdown-container.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-options-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px 0;
  list-style: none;
  z-index: 1050;
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.custom-dropdown-container.open .dropdown-options-list {
  display: block;
}

.dropdown-option-item {
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.dropdown-option-item:hover,
.dropdown-option-item.focused {
  background: var(--bg-secondary);
  color: var(--turquoise-primary);
}

.dropdown-option-item.selected {
  color: var(--turquoise-primary);
  font-weight: 600;
  background: var(--turquoise-glow);
}

/* ================= CUSTOM CALENDAR ================= */
.custom-calendar-trigger-wrapper {
  position: relative;
}

.calendar-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.custom-calendar-card {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1rem;
  z-index: 1050;
  box-shadow: 0 16px 36px rgba(0,0,0,0.7);
  display: none;
  user-select: none;
}

.custom-calendar-card.active {
  display: block;
}

.cal-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.cal-nav-btn:hover {
  border-color: var(--turquoise-primary);
  color: var(--turquoise-primary);
}

.cal-month-year {
  font-size: 0.95rem;
}

.calendar-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cal-day.empty {
  cursor: default;
}

.cal-day:hover:not(.disabled):not(.empty) {
  background: var(--bg-secondary);
  color: var(--turquoise-primary);
}

.cal-day.today {
  border: 1px solid var(--turquoise-primary);
}

.cal-day.selected {
  background: var(--turquoise-primary) !important;
  color: #000000 !important;
  font-weight: 600;
}

.cal-day.disabled {
  color: var(--border-subtle);
  cursor: not-allowed;
  opacity: 0.3;
}

/* ================= BLOG & RESOURCE COMPONENTS ================= */

/* Welcome Greeting Card */
.blog-welcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.welcome-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--turquoise-primary);
}

.welcome-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Article Card System */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px !important;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--turquoise-primary);
  box-shadow: 0 12px 30px rgba(64, 224, 208, 0.12);
}

.article-visual-area {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  height: 140px;
}

.article-visual-icon {
  font-size: 2.8rem;
  color: var(--turquoise-primary);
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.article-card:hover .article-visual-icon {
  transform: scale(1.1);
  opacity: 1;
}

.article-meta-row {
  font-family: var(--font-code);
  font-size: 0.725rem;
}

.article-meta-text {
  color: var(--text-muted);
}

.article-meta-bullet {
  color: var(--turquoise-primary);
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.article-title a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: var(--turquoise-primary);
}

.article-read-btn {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--turquoise-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.article-read-btn:hover {
  color: var(--turquoise-hover);
}

.article-read-btn .transition-icon {
  transition: transform 0.2s ease;
}

.article-read-btn:hover .transition-icon {
  transform: translateX(4px);
}

/* Copy button */
.code-copy-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted, #B8B8B8);
  font-family: var(--font-ui, 'Manrope', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.code-copy-btn i {
  font-size: 0.7rem;
}

.code-copy-btn:hover,
.code-copy-btn.copied {
  color: #000;
  background: var(--turquoise-primary, #40E0D0);
  border-color: var(--turquoise-primary, #40E0D0);
}

/* Code area */
.code-window-body {
  display: flex;
  align-items: stretch;
  max-height: 320px;
  overflow: auto;
  background: #0b0d10;
}

.code-gutter {
  flex-shrink: 0;
  min-width: 2.5rem;
  padding: 1rem 0.55rem 1rem 0.7rem;
  text-align: right;
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #5b6570;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.code-pre {
  margin: 0;
  padding: 1rem 1rem 1rem 0.9rem;
  flex: 1;
  overflow: auto;
  background: transparent;
}

.code-window-body code,
.code-pre code,
#codeViewer {
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.82rem;
  line-height: 1.65;
  color: #e8eef2;
  display: block;
  white-space: pre;
  background: transparent;
}

/* Syntax colors */
.tok-key { color: #7dd3fc; }
.tok-str { color: #86efac; }
.tok-num { color: #fbbf24; }
.tok-com { color: #6b7280; font-style: italic; }
.tok-fn  { color: #c4b5fd; }
.tok-tag { color: #40E0D0; }
.tok-attr { color: #93c5fd; }

/* Footer */
.code-window-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  background: #12151a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  color: var(--text-muted, #B8B8B8);
}

.code-window-body {
  display: flex;
  align-items: stretch;
  max-height: 320px;
  overflow: auto;
  background: #0b0d10;
}

.code-gutter {
  flex-shrink: 0;
  min-width: 2.6rem;
  padding: 1rem 0.55rem 1rem 0.7rem;
  text-align: right;
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #5b6570;
  user-select: none;
  white-space: pre;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.code-pre {
  margin: 0;
  padding: 1rem 1rem 1rem 0.9rem;
  flex: 1;
  min-width: 0;
  overflow: auto;
  white-space: pre;
  background: transparent;
}

.code-window-body {
  display: flex;
  align-items: stretch;
  max-height: 420px;
  overflow: auto;
  background: #0b0d10;
  scrollbar-width: none;
}

.code-window-body::-webkit-scrollbar,
.code-pre::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.code-pre {
  margin: 0;
  padding: 1rem 1rem 1rem 0.9rem;
  flex: 1;
  min-width: 0;
  overflow: visible;
  white-space: pre;
}

.footer-social-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.footer-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  background: var(--bg-card);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-bubble:hover {
  color: #000;
  background: var(--turquoise-primary);
  border-color: var(--turquoise-primary);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--text-primary);
}

.page-description {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

article h2 {
  font-family: var(--font-heading);
}

article code {
  font-family: var(--font-code);
  font-size: 0.86em;
  color: var(--turquoise-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  word-break: break-all;
}

article ol,
article ul {
  padding-left: 1.2rem;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--topbar-height, 72px) + 3.5rem) 1.25rem 5rem;
}

.legal-page .legal-updated {
  font-family: var(--font-muted, "DM Sans", sans-serif);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.legal-page h1 {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 2rem 0 0.55rem;
}

.legal-page p {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 0.8rem;
}

.legal-page a {
  color: var(--turquoise-primary);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.legal-page .legal-links a {
  font-family: var(--font-ui, Manrope, sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-left: 0;
}

.legal-check .form-check-input {
  float: none;
  margin: 0.25rem 0 0;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  cursor: pointer;
}

.legal-check .form-check-input:checked {
  background-color: var(--turquoise-primary);
  border-color: var(--turquoise-primary);
}

.legal-check .form-check-input:focus {
  box-shadow: 0 0 0 3px var(--turquoise-glow);
}

.legal-check .form-check-label {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.legal-check a {
  color: var(--turquoise-primary);
  text-decoration: none;
}

.legal-check a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.was-validated .legal-check .form-check-input:invalid {
  border-color: #e35d6a;
}

.was-validated .legal-check .form-check-input:invalid ~ .invalid-feedback {
  display: block;
}

.stat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  border-radius: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--turquoise-primary);
  transform: scale(1.04);
}

.stat-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  color: var(--turquoise-primary);
  opacity: 0.85;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--turquoise-primary);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-muted);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.stat-icon {
  flex-shrink: 0;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--turquoise-primary);
  opacity: 0.9;
}

.stat-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  transform-origin: center;
  will-change: transform;
}

.stat-card:hover {
  transform: scale(1.06);
  border-color: var(--turquoise-primary);
  box-shadow: 0 10px 24px var(--turquoise-glow);
}

@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .stat-card:hover {
    transition: none;
    transform: none;
  }
}

a.stat-card {
  transition: transform 0.22s ease, border-color 0.22s ease;
  transform-origin: center center;
}

a.stat-card:hover {
  transform: scale(1.06);
  border-color: var(--turquoise-primary);
}

.window-controls .control.close { background: #ff5f57; }
.window-controls .control.minimize { background: #febc2e; }
.window-controls .control.maximize { background: #28c840; }

.update-entry {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-subtle);
}

.update-entry ul {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
}

.update-entry li {
  font-family: var(--font-body, Inter, sans-serif);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.update-item {
  position: relative;
  margin: 0 0 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(64, 224, 208, 0.08), transparent 42%),
    var(--bg-card);
  overflow: hidden;
}

.update-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.update-item summary::-webkit-details-marker { display: none; }

.update-item summary::after {
  content: "";
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(var(--text-primary), var(--text-primary)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--text-primary), var(--text-primary)) center / 1.5px 12px no-repeat;
}

.update-item[open] summary::after {
  background: linear-gradient(var(--text-primary), var(--text-primary)) center / 12px 1.5px no-repeat;
}

.update-item[open] {
  border-color: rgba(64, 224, 208, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.update-body { padding: 0 1.2rem 1.2rem; }

.update-point {
  margin: 0 0 1.3rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(64, 224, 208, 0.45);
}

.update-point p {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.compare figure {
  margin: 0;
  padding: 0.45rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-subtle);
}

.compare figcaption {
  font-family: var(--font-ui, Manrope, sans-serif);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise-primary);
  margin: 0.15rem 0.3rem 0.4rem;
}

.compare img,
.compare video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #000;
}

.update-comment {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.update-comment input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 0.55rem 0;
}

.update-comment input:focus { outline: none; }

.update-comment button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--turquoise-primary);
  color: #041312;
  display: grid;
  place-items: center;
}

.update-comment i { transform: rotate(45deg); }

[data-theme="light"] .update-item {
  background:
    linear-gradient(180deg, rgba(26, 174, 159, 0.12), transparent 46%),
    var(--bg-card);
}

[data-theme="light"] .compare figure { background: #f4f7f7; }

@media (max-width: 640px) {
  .compare { grid-template-columns: 1fr; }
}

.update-item {
  position: relative;
  margin: 0 0 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(64, 224, 208, 0.08), transparent 42%),
    var(--bg-card);
  overflow: hidden;
}

.update-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.update-item summary::-webkit-details-marker { display: none; }

.update-item summary::after {
  content: "";
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(var(--text-primary), var(--text-primary)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--text-primary), var(--text-primary)) center / 1.5px 12px no-repeat;
}

.update-item[open] summary::after {
  background: linear-gradient(var(--text-primary), var(--text-primary)) center / 12px 1.5px no-repeat;
}

.update-item[open] {
  border-color: rgba(64, 224, 208, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.update-body { padding: 0 1.2rem 1.2rem; }

.update-point {
  margin: 0 0 1.3rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(64, 224, 208, 0.45);
}

.update-point p { margin: 0 0 0.75rem; color: var(--text-primary); }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.compare figure {
  margin: 0;
  padding: 0.45rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-subtle);
}

.compare figcaption {
  font-family: var(--font-ui, Manrope, sans-serif);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise-primary);
  margin: 0.15rem 0.3rem 0.4rem;
}

.compare img,
.compare video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #000;
}

.update-comment {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.3rem 0 1.4rem;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.update-comment input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 0.55rem 0;
}

.update-comment input:focus { outline: none; }

.update-comment button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--turquoise-primary);
  color: #041312;
  display: grid;
  place-items: center;
}

.update-comment i { transform: rotate(45deg); }

.comment-status {
  position: absolute;
  left: 1rem;
  bottom: -1.3rem;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.update-comment input {
  min-width: 0;
  width: 100%;
  font-size: 16px;
}

.update-comment button {
  flex-shrink: 0;
}

@media (max-width: 420px) {
  .update-comment {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 0.55rem;
    gap: 0.4rem;
  }

  .update-comment input {
    flex: 1 1 100%;
    padding: 0.65rem 0.7rem;
  }

  .update-comment button {
    margin-left: auto;
    width: 44px;
    height: 44px;
  }

  .comment-status {
    position: static;
    flex-basis: 100%;
    margin-top: 0.15rem;
  }
}

[data-theme="light"] .update-item {
  background:
    linear-gradient(180deg, rgba(26, 174, 159, 0.12), transparent 46%),
    var(--bg-card);
}

[data-theme="light"] .compare figure { background: #f4f7f7; }

@media (max-width: 640px) {
  .compare { grid-template-columns: 1fr; }
}

.skill-logo {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 0.4rem;
}

.skill-logo-dark { display: none; }

[data-theme="light"] .skill-logo-light { display: none; }
[data-theme="light"] .skill-logo-dark { display: inline-block; }

.skill-credit {
  margin: 0.7rem 0 0;
  text-align: center;
  font-family: var(--font-muted, "DM Sans", sans-serif);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.patreon-bubble {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1200;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #041312;
  background:
    radial-gradient(circle at 30% 25%, #7ff3ea, #40e0d0 42%, #129688 100%);
  box-shadow:
    0 10px 24px rgba(64, 224, 208, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 0;
  cursor: pointer;
  overflow: visible;
}

.patreon-bubble i {
  font-size: 1.55rem;
  position: relative;
  z-index: 2;
}

.patreon-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
}

.patreon-shine::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -70%;
  width: 45%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(18deg);
  animation: patreon-sweep 2.8s ease-in-out infinite;
}

.patreon-sparks,
.patreon-sparks::before,
.patreon-sparks::after {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  pointer-events: none;
}

.patreon-sparks {
  width: 5px;
  height: 5px;
  top: -4px;
  right: 10px;
  animation: patreon-spark 1.8s ease-in-out infinite;
}

.patreon-sparks::before {
  content: "";
  width: 4px;
  height: 4px;
  left: -28px;
  top: 18px;
  animation: patreon-spark 2.2s ease-in-out infinite 0.4s;
}

.patreon-sparks::after {
  content: "";
  width: 3px;
  height: 3px;
  left: 8px;
  top: 48px;
  animation: patreon-spark 1.6s ease-in-out infinite 0.8s;
}

@keyframes patreon-sweep {
  0% { left: -70%; }
  55%, 100% { left: 130%; }
}

@keyframes patreon-spark {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.4); }
}

@media (max-width: 640px) {
  .patreon-bubble {
    width: 54px;
    height: 54px;
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .patreon-shine::after,
  .patreon-sparks,
  .patreon-sparks::before,
  .patreon-sparks::after {
    animation: none;
  }
}

.patreon-label {
  position: absolute;
  right: 74px;
  white-space: nowrap;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-ui, Manrope, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.patreon-bubble:hover .patreon-label,
.patreon-bubble:focus-visible .patreon-label {
  opacity: 1;
  transform: none;
}

.patreon-or {
  margin: 1rem 0 0.6rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

#patreonGoogle { display: flex; justify-content: center; }

.patreon-tiers { display: grid; gap: 0.55rem; }
.patreon-tiers label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.patreon-tiers input { width: auto; }

.patreon-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.patreon-modal[hidden] { display: none; }

.patreon-dialog {
  width: min(100%, 520px);
  padding: 1.7rem;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  animation: patreon-pop 0.28s ease;
}

@keyframes patreon-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.patreon-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.patreon-dialog h2 {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  margin: 0 0 1rem;
}

.patreon-dialog label {
  display: block;
  margin: 0.7rem 0 0.3rem;
  color: var(--text-muted);
}

.patreon-dialog input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.patreon-dialog input:disabled {
  opacity: 0.65;
  color: var(--text-muted);
}

.patreon-next,
.patreon-submit,
.patreon-patrons {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--turquoise-primary);
  color: #041312;
  text-decoration: none;
  font-weight: 700;
}

.patreon-next,
.patreon-submit,
.patreon-close { cursor: pointer; }

.patreon-foot {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
}

.patreon-foot a { color: var(--turquoise-primary); }

.patreon-error {
  margin: 0.8rem 0 0;
  color: #e11d48;
}

.patreon-note {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.patreon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.patron-card {
  padding: 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-card);
}

.patron-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.patron-card h2 {
  font-size: 1rem;
  margin: 0.7rem 0 0.2rem;
}

.patron-card p {
  margin: 0;
  color: var(--text-muted);
}

.update-category { margin: 0 0 1.1rem; }

.update-category h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui, Manrope, sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--turquoise-primary);
}

.update-category ul {
  margin: 0;
  padding-left: 1.1rem;
}

.update-category li {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}