/* ==============================================
   DateComp — Dark Theme with Cyan Accent
   Inspired by Astro-DatecompWebSide
   ============================================== */

/* ─── CSS Variables ─── */
:root {
  --bg-deep: #05070d;
  --bg-mid: #0a0f1a;
  --bg-footer: #02040a;
  --cyan: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-300: #67e8f9;
  --border-subtle: rgba(255,255,255,.06);
  --border-mid: rgba(255,255,255,.08);
  --text-primary: #fff;
  --text-secondary: rgba(255,255,255,.7);
  --text-tertiary: rgba(255,255,255,.5);
  --text-muted: rgba(255,255,255,.3);
  --glass-bg: rgba(255,255,255,.02);
  --glass-hover: rgba(255,255,255,.04);
  --glow-cyan: rgba(6,182,212,.08);
  --glow-cyan-strong: rgba(6,182,212,.12);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Keyframes ─── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
@keyframes count-up { from { opacity: 0; } to { opacity: 1; } }

/* ─── Preloader ─── */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg-deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.loader {
  width: 48px; height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--cyan);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Navbar ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(5,7,13,.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.nav-logo { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: none; align-items: center; gap: 32px; font-size: .875rem; font-weight: 500; }
.nav-links a { color: var(--text-secondary); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 500; color: var(--text-tertiary); }
.lang-switch a { padding: 4px 8px; border-radius: 4px; transition: all .2s; }
.lang-switch a:hover { background: rgba(255,255,255,.1); color: #fff; }
.lang-switch a.active { color: #fff; }
.lang-switch span { color: rgba(255,255,255,.2); }

/* Hamburger */
.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu { display: none; border-top: 1px solid rgba(255,255,255,.05); background: var(--bg-deep); padding: 16px 24px 24px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: .875rem; font-weight: 500; color: var(--text-secondary); transition: all .2s; }
.mobile-menu a:hover { background: rgba(255,255,255,.05); color: #fff; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}

/* ─── Section Common ─── */
.section { position: relative; padding: 96px 24px; }
.section-alt { background: var(--bg-mid); }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-divider { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--cyan-500) 20%, transparent); opacity: .2; }
.section-header { max-width: 672px; margin: 0 auto; text-align: center; }
.section-header h2 { font-size: 1.875rem; font-weight: 700; letter-spacing: -.025em; }
.section-header p { margin-top: 12px; font-size: 1.125rem; color: var(--text-tertiary); }

@media (min-width: 640px) {
  .section { padding: 128px 24px; }
  .section-header h2 { font-size: 2.25rem; }
}

/* ─── Grid Background ─── */
.glow-grid {
  pointer-events: none; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(128,128,128,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128,128,128,.07) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ─── Glow Orbs ─── */
.glow-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-orb-tr { width: 384px; height: 384px; right: -128px; top: -128px; background: rgba(6,182,212,.1); filter: blur(120px); }
.glow-orb-bl { width: 320px; height: 320px; left: -128px; bottom: -128px; background: rgba(6,182,212,.1); filter: blur(100px); }
.glow-orb-center { width: 100%; height: 100%; background: radial-gradient(circle at 50% 50%, rgba(6,182,212,.04), transparent 70%); }

/* ─── Hero ─── */
.hero-section { display: flex; min-height: 90vh; align-items: center; overflow: hidden; }
.hero-content { position: relative; z-index: 10; max-width: 768px; }
.hero-title {
  font-size: 2.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -.025em;
  background: linear-gradient(to bottom right, #fff, #cffafe, var(--cyan-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { margin-top: 24px; max-width: 672px; font-size: 1.125rem; line-height: 1.75; color: rgba(207,250,254,.7); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 12px 24px; font-size: .875rem; font-weight: 500;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--cyan-500); color: #fff; box-shadow: 0 0 20px rgba(6,182,212,.25); }
.btn-primary:hover { background: var(--cyan-400); }
.btn-secondary { background: rgba(255,255,255,.1); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,.15); }
.btn-outline { border: 1px solid rgba(255,255,255,.2); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.05); }
.btn-ghost { background: transparent; color: var(--text-tertiary); }
.btn-ghost:hover { background: rgba(255,255,255,.05); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .8125rem; }

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
}
@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
  .hero-subtitle { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

/* ─── About Section ─── */
.about-grid { display: grid; gap: 64px; margin-top: 64px; }
.about-text h3 { font-size: 1.5rem; font-weight: 600; color: #fff; }
.about-text p { margin-top: 16px; line-height: 1.75; color: rgba(255,255,255,.6); }

/* Value cards */
.values-list { display: flex; flex-direction: column; gap: 16px; }
.value-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .3s;
}
.value-card:hover {
  border-color: rgba(6,182,212,.3); background: var(--glass-hover);
  box-shadow: 0 0 30px var(--glow-cyan);
}
.value-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(6,182,212,.1); color: var(--cyan-400);
  flex-shrink: 0; margin-top: 2px;
}
.value-icon svg { width: 20px; height: 20px; }
.value-body h4 { font-size: .875rem; font-weight: 600; color: #fff; }
.value-body p { margin-top: 4px; font-size: .875rem; color: rgba(255,255,255,.4); }

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Team ─── */
.team-section { margin-top: 80px; text-align: center; }
.team-section h3 { font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 24px; }
.team-members { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.team-member {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .3s;
}
.team-member:hover { border-color: rgba(6,182,212,.3); background: var(--glass-hover); }
.team-member:hover .editor-del-btn { opacity: 1; }
.team-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(6,182,212,.2);
  font-size: .875rem; font-weight: 600; color: var(--cyan-300);
  flex-shrink: 0;
}
.team-info .team-name { font-size: .875rem; font-weight: 500; color: #fff; }
.team-info .team-linkedin {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 2px; font-size: .75rem; color: var(--cyan-400);
  transition: color .2s;
}
.team-info .team-linkedin:hover { color: var(--cyan-300); }
.team-info .team-linkedin svg { width: 12px; height: 12px; }

/* ─── Capabilities ─── */
.capabilities-grid { display: grid; gap: 24px; margin-top: 64px; }
.capability-card {
  position: relative; overflow: hidden;
  padding: 24px; border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .3s;
}
.capability-card:hover {
  border-color: rgba(6,182,212,.3); background: var(--glass-hover);
  box-shadow: 0 0 30px var(--glow-cyan-strong);
  transform: translateY(-4px);
}
.capability-card .glow-dot {
  position: absolute; right: -16px; top: -16px;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(6,182,212,.1); filter: blur(16px);
  opacity: 0; transition: opacity .3s;
}
.capability-card:hover .glow-dot { opacity: 1; }
.capability-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(6,182,212,.1); color: var(--cyan-400);
}
.capability-icon svg { width: 24px; height: 24px; }
.capability-card h3 { margin-top: 16px; font-size: 1rem; font-weight: 600; color: #fff; }
.capability-card p { margin-top: 8px; font-size: .875rem; line-height: 1.65; color: rgba(255,255,255,.45); }

@media (min-width: 640px) { .capabilities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .capabilities-grid { grid-template-columns: repeat(3, 1fr); } }

/* ─── Projects Grid ─── */
.projects-grid { display: grid; gap: 24px; margin-top: 64px; }
.project-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .3s;
}
.project-card:hover {
  border-color: rgba(6,182,212,.3);
  box-shadow: 0 0 30px var(--glow-cyan-strong);
  transform: translateY(-4px);
}
.project-image {
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; height: 192px;
  background: linear-gradient(to bottom right, rgba(6,182,212,.1), rgba(6,182,212,.05), rgba(168,85,247,.05));
}
.project-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.project-card:hover .project-image img { transform: scale(1.05); }
.project-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg-mid), rgba(10,15,26,.5), transparent);
}
.project-image-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(6,182,212,.08), transparent 70%); }
.project-image-initials { position: relative; font-size: 2.25rem; font-weight: 700; letter-spacing: .1em; color: rgba(34,211,238,.3); transition: color .3s; }
.project-card:hover .project-image-initials { color: rgba(34,211,238,.5); }
.project-image-gradient { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, var(--bg-mid), transparent); }
.project-icon {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.125rem;
}
.project-body { flex: 1; padding: 20px; display: flex; flex-direction: column; }
.project-body h3 { font-size: 1rem; font-weight: 600; color: #fff; transition: color .3s; }
.project-card:hover .project-body h3 { color: var(--cyan-300); }
.project-body .project-desc {
  margin-top: 8px; flex: 1; font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.45);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-body .project-link {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 500; color: var(--cyan-400);
  transition: color .3s;
}
.project-body .project-link:hover { color: var(--cyan-300); }
.project-body .project-link svg { width: 14px; height: 14px; transition: transform .3s; }
.project-body .project-link:hover svg { transform: translateX(4px); }

.project-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag { padding: 2px 8px; border-radius: 6px; background: rgba(6,182,212,.1); font-size: .625rem; font-weight: 500; color: var(--cyan-400); }

@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

/* View all link */
.view-all-link { margin-top: 48px; text-align: center; }
.view-all-link a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  border: 1px solid rgba(6,182,212,.2);
  background: rgba(6,182,212,.05);
  font-size: .875rem; font-weight: 500; color: var(--cyan-400);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: all .2s;
}
.view-all-link a:hover { border-color: rgba(6,182,212,.4); background: rgba(6,182,212,.1); color: var(--cyan-300); }
.view-all-link svg { width: 16px; height: 16px; transition: transform .2s; }
.view-all-link a:hover svg { transform: translateX(4px); }

/* ─── Insights / Tech Carousel ─── */
.tech-carousel-wrap { margin-top: 64px; }
.tech-track {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.tech-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 12px; border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: all .2s;
}
.tech-item:hover { border-color: rgba(6,182,212,.2); background: var(--glass-hover); }
.tech-item .tech-emoji { font-size: 1.125rem; }
.tech-item .tech-name { font-size: .875rem; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }

/* ─── Contact ─── */
.contact-grid { display: grid; gap: 64px; margin-top: 64px; }
.contact-info-panel {
  padding: 20px; border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.contact-info-panel h3 { font-size: .875rem; font-weight: 600; color: #fff; }
.contact-info-panel dl { margin-top: 16px; }
.contact-info-panel dt { font-size: .75rem; font-weight: 500; color: var(--text-muted); margin-top: 12px; }
.contact-info-panel dt:first-of-type { margin-top: 0; }
.contact-info-panel dd { margin-top: 4px; font-size: .875rem; color: var(--text-secondary); }
.contact-info-panel dd a { color: var(--cyan-400); transition: color .2s; }
.contact-info-panel dd a:hover { color: var(--cyan-300); }

.contact-form-wrap {
  padding: 24px; border-radius: 16px;
  border: 1px solid var(--border-mid);
  background: var(--glass-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 768px) { .contact-form-wrap { padding: 32px; } }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.6); }
.form-input, .form-textarea {
  width: 100%; padding: 10px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #fff; font-size: .875rem; font-family: inherit;
  transition: all .2s; outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--cyan-500);
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 4px rgba(6,182,212,.2);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,.3); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { margin-top: 4px; font-size: .75rem; color: #f87171; }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 2fr 3fr; }
}

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 20px; border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #0f172a; color: #fff;
  font-size: .875rem; box-shadow: 0 8px 32px rgba(0,0,0,.4);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp .3s ease;
  display: flex; align-items: center; gap: 8px; max-width: 400px;
}
.toast.success { border-color: rgba(34,197,94,.3); }
.toast.error { border-color: rgba(239,68,68,.3); }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.05);
  background: var(--bg-footer);
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 64px 24px; }
.footer-grid { display: grid; gap: 48px; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand p { margin-top: 16px; font-size: .875rem; line-height: 1.65; color: var(--text-tertiary); max-width: 320px; }
.footer-col h4 { margin-bottom: 16px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .875rem; color: var(--text-tertiary); transition: color .2s; }
.footer-col a:hover { color: rgba(255,255,255,.8); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-tertiary); transition: all .2s;
}
.footer-social a:hover { border-color: rgba(255,255,255,.2); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.05); text-align: center; font-size: .875rem; color: var(--text-muted); }

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

/* ─── WhatsApp Float ─── */
.whatsapp-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ─── Scroll Reveal ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Editor Overlay ─── */
.editing .editable {
  cursor: pointer; border-radius: 4px; padding: 2px 6px;
  transition: all .15s;
}
.editing .editable:hover {
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 0 2px rgba(6,182,212,.4);
}
.editing .editable-empty { font-style: italic; color: var(--text-muted); }
.editor-toolbar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; border-radius: 16px;
  border: 1px solid rgba(6,182,212,.3);
  background: rgba(9,13,26,.95); color: #fff;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  font-size: .8125rem;
}
.editor-toolbar .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); animation: pulse-glow 2s ease-in-out infinite; }
.editor-toolbar .toolbar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px; border: none;
  font-size: .8rem; font-weight: 500; cursor: pointer;
  transition: all .2s ease;
}
.editor-toolbar .toolbar-btn svg { width: 16px; height: 16px; }
.editor-toolbar .toolbar-btn.save { background: var(--cyan-500); color: #fff; box-shadow: 0 0 12px rgba(6,182,212,.25); }
.editor-toolbar .toolbar-btn.save:hover { background: var(--cyan-400); box-shadow: 0 0 20px rgba(6,182,212,.4); transform: translateY(-1px); }
.editor-toolbar .toolbar-btn.cancel { background: rgba(255,255,255,.06); color: var(--text-secondary); border: 1px solid rgba(255,255,255,.08); }
.editor-toolbar .toolbar-btn.cancel:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.15); }

/* Editor Modal */
.editor-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.editor-modal {
  width: 90%; max-width: 672px; max-height: 85vh; overflow-y: auto;
  padding: 24px; border-radius: 20px;
  border: 1px solid var(--border-mid);
  background: #090d1a; color: #fff;
  box-shadow: 0 25px 80px rgba(0,0,0,.6);
}
.editor-modal h3 { font-size: .875rem; font-weight: 600; }
.editor-modal .field-path { margin-top: 2px; margin-bottom: 16px; font-size: .75rem; color: var(--text-muted); }
.editor-modal textarea {
  width: 100%; padding: 16px 20px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.9); font-size: 1rem; line-height: 1.65;
  outline: none; resize: vertical; font-family: inherit;
  transition: all .2s;
}
.editor-modal textarea:focus {
  border-color: rgba(6,182,212,.5);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 4px rgba(6,182,212,.2);
}
.editor-modal-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.editor-modal-actions .hint { font-size: .75rem; color: rgba(255,255,255,.2); }
.editor-modal-actions .btns { display: flex; gap: 10px; }
.editor-modal-actions .modal-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: none;
  font-size: .85rem; font-weight: 500; cursor: pointer;
  transition: all .2s ease;
}
.editor-modal-actions .modal-btn svg { width: 16px; height: 16px; }
.editor-modal-actions .modal-btn.save { background: var(--cyan-500); color: #fff; box-shadow: 0 0 12px rgba(6,182,212,.2); }
.editor-modal-actions .modal-btn.save:hover { background: var(--cyan-400); box-shadow: 0 0 20px rgba(6,182,212,.35); transform: translateY(-1px); }
.editor-modal-actions .modal-btn.cancel { background: rgba(255,255,255,.06); color: var(--text-secondary); border: 1px solid rgba(255,255,255,.08); }
.editor-modal-actions .modal-btn.cancel:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.15); }

/* Editor delete buttons */
.editor-del-btn {
  position: absolute; right: 8px; top: 8px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(239,68,68,.1); color: #f87171;
  border: none; cursor: pointer;
  opacity: 0; transition: all .2s;
}
.project-card:hover .editor-del-btn { opacity: 1; }
.editor-del-btn:hover { background: rgba(239,68,68,.2); }

/* Editor image replace button */
.editor-img-btn {
  position: absolute; left: 8px; top: 8px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(6,182,212,.1); color: var(--cyan-400);
  border: none; cursor: pointer;
  opacity: 0; transition: all .2s;
}
.project-card:hover .editor-img-btn { opacity: 1; }
.editor-img-btn:hover { background: rgba(6,182,212,.2); }

/* Editor add project card */
.editor-add-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 280px; border-radius: 16px;
  border: 2px dashed var(--border-subtle);
  background: rgba(255,255,255,.01);
  color: rgba(255,255,255,.25);
  cursor: pointer; transition: all .2s;
}
.editor-add-card:hover { border-color: rgba(6,182,212,.3); color: var(--cyan-400); }
.editor-add-card span { margin-top: 8px; font-size: .875rem; font-weight: 500; }

/* Editor form for adding projects */
.editor-form {
  padding: 24px; border-radius: 16px;
  border: 2px solid rgba(6,182,212,.3);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.editor-form h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 16px; }
.editor-form .form-row { margin-bottom: 12px; }

/* Emoji picker */
.emoji-picker { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.emoji-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: none; background: rgba(255,255,255,.04);
  font-size: 1.125rem; cursor: pointer; transition: all .2s;
}
.emoji-btn:hover { background: rgba(255,255,255,.08); }
.emoji-btn.selected { background: rgba(6,182,212,.3); box-shadow: 0 0 0 1px rgba(6,182,212,.5); transform: scale(1.1); }
