/* ==========================================================================
   YAPIŞKAN NOTLAR STUDIO - ULTRA PREMIUM GLASSMORPHISM & TACTILE DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-canvas: #f6f8fd;
  --bg-grid-dot: rgba(79, 70, 229, 0.08);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.12);
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent: #ec4899;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Rich Gradient Sticky Note Palette */
  --note-yellow-bg: linear-gradient(135deg, #fffde4 0%, #fff176 100%);
  --note-yellow-text: #423b00;
  --note-yellow-border: #fbc02d;

  --note-mint-bg: linear-gradient(135deg, #e8f5e9 0%, #a5d6a7 100%);
  --note-mint-text: #1b5e20;
  --note-mint-border: #81c784;

  --note-blue-bg: linear-gradient(135deg, #e1f5fe 0%, #81d4fa 100%);
  --note-blue-text: #01579b;
  --note-blue-border: #4fc3f7;

  --note-pink-bg: linear-gradient(135deg, #fce4ec 0%, #f48fb1 100%);
  --note-pink-text: #880e4f;
  --note-pink-border: #f06292;

  --note-purple-bg: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%);
  --note-purple-text: #4a148c;
  --note-purple-border: #ba68c8;

  --note-orange-bg: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
  --note-orange-text: #e65100;
  --note-orange-border: #ffb74d;

  --note-dark-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --note-dark-text: #f8fafc;
  --note-dark-border: #334155;
}

body.dark-studio {
  --bg-canvas: #090d16;
  --bg-grid-dot: rgba(255, 255, 255, 0.05);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.82);
  --glass-border: rgba(51, 65, 85, 0.6);
  --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);

  --note-dark-bg: linear-gradient(135deg, #1e293b 0%, #090d16 100%);
  --note-dark-text: #f1f5f9;
  --note-dark-border: #334155;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

[v-cloak] { display: none !important; }

/* Dynamic Ambient Glow Mesh Blobs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatGlow 18s ease-in-out infinite alternate;
}

.blob-1 {
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #818cf8, #c084fc);
}

.blob-2 {
  bottom: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #f472b6, #fb7185);
  animation-delay: -6s;
}

.blob-3 {
  top: 40%;
  left: 35%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #38bdf8, #818cf8);
  animation-delay: -12s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Studio Dot Grid Overlay */
.studio-canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(var(--bg-grid-dot) 1.8px, transparent 1.8px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   LANDING PAGE AESTHETICS
   ========================================================================== */

.landing-container {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--text-main);
  text-decoration: none;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-logo-img:hover {
  transform: scale(1.08) rotate(-3deg);
}

.brand-logo-img-sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.nav-links-center {
  display: flex;
  align-items: center;
  gap: 28px;
}
@media (max-width: 850px) {
  .nav-links-center { display: none; }
}

.nav-link-item {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link-item:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}
body.dark-studio .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 10px 25px -4px rgba(99, 102, 241, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px -4px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-main);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: #fff;
}
body.dark-studio .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

/* Landing Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 70px 0 90px;
}

@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
}

.hero-title span {
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}
@media (max-width: 960px) {
  .hero-ctas { justify-content: center; }
}

.trust-metrics-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px dashed var(--glass-border);
}
@media (max-width: 960px) {
  .trust-metrics-bar { justify-content: center; }
}

.trust-metric-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Interactive Hero Demo Window Mockup */
.hero-demo-window {
  position: relative;
  height: 440px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.window-bar {
  height: 40px;
  background: rgba(0,0,0,0.04);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.dark-studio .window-bar { background: rgba(255,255,255,0.05); }

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.red-dot { background: #ef4444; }
.yellow-dot { background: #f59e0b; }
.green-dot { background: #10b981; }

.window-title-tab {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 12px;
}

.window-canvas-body {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.demo-note {
  position: absolute;
  width: 220px;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.14);
  transform: rotate(-3deg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
}
.demo-note::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 16px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.demo-note:hover {
  transform: scale(1.06) rotate(0deg);
  z-index: 20 !important;
}

.demo-note-1 { top: 30px; left: 30px; background: var(--note-yellow-bg); color: var(--note-yellow-text); }
.demo-note-2 { top: 120px; right: 30px; background: var(--note-mint-bg); color: var(--note-mint-text); transform: rotate(4deg); }
.demo-note-3 { bottom: 40px; left: 100px; background: var(--note-purple-bg); color: var(--note-purple-text); transform: rotate(-2deg); }

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  margin-bottom: 14px;
}

/* Security Showcase Section */
.security-showcase-section {
  padding: 60px 0 90px;
}

.security-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 48px;
  backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 45px;
  align-items: center;
}

@media (max-width: 900px) {
  .security-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 30px;
  }
}

.security-left-col .sec-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.security-left-col .sec-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.security-right-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .security-right-grid {
    grid-template-columns: 1fr;
  }
}

.sec-grid-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px 18px;
  display: flex;
  gap: 14px;
  transition: transform 0.25s ease, background 0.25s ease;
}
body.dark-studio .sec-grid-item { background: rgba(255, 255, 255, 0.04); }

.sec-grid-item:hover {
  transform: translateY(-4px);
  background: rgba(99, 102, 241, 0.06);
}

.sec-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sec-grid-item h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.sec-grid-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Corporate Footer */
.corporate-footer {
  padding: 40px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Landing Features Grid */
.features-section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}

.section-header.single-line-header {
  max-width: 900px;
}

.section-header h2, .single-line-title {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

@media (min-width: 900px) {
  .single-line-title {
    white-space: nowrap;
  }
}
@media (max-width: 899px) {
  .single-line-title {
    font-size: 1.8rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.22);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(168, 85, 247, 0.14));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   AUTH MODAL & FORMS
   ========================================================================== */

.full-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  position: relative;
  z-index: 10;
}

.auth-page-topbar {
  position: absolute;
  top: 24px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-card-split {
  width: 100%;
  max-width: 880px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(28px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

@media (max-width: 768px) {
  .auth-card-split {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .auth-side-banner {
    display: none;
  }
}

/* Left Visual Side Banner */
.auth-side-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  padding: 40px 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-side-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(30px);
}

.banner-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.banner-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.banner-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 28px;
}

.banner-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.banner-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.feat-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.banner-demo-note {
  background: linear-gradient(135deg, #fffde4, #fff176);
  color: #423b00;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
}

/* Right Form Side */
.auth-form-side {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header-text {
  margin-bottom: 24px;
}

.auth-main-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-sub-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-left-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.7;
}

.form-input.with-icon {
  padding-left: 44px;
}

.eye-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.eye-toggle-btn:hover {
  transform: scale(1.15);
  opacity: 1;
}

.btn-submit-auth {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.demo-admin-link {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.demo-admin-link:hover {
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.modal-close:hover { transform: scale(1.2); color: var(--text-main); }

.auth-tabs {
  display: flex;
  background: rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 26px;
}
body.dark-studio .auth-tabs { background: rgba(255,255,255,0.08); }

.auth-tab {
  flex: 1;
  padding: 11px;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-tab.active {
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
body.dark-studio .auth-tab.active {
  background: var(--primary);
  color: #fff;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.75);
  color: var(--text-main);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.dark-studio .form-input { background: rgba(15, 23, 42, 0.65); }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.alert-banner {
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.alert-error { background: rgba(239, 68, 68, 0.14); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-success { background: rgba(16, 185, 129, 0.14); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }

/* ==========================================================================
   USER STICKY NOTES STUDIO WORKSPACE
   ========================================================================== */

.command-pill {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 40px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 500;
  max-width: 98vw;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.brand-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.brand-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.brand-version-badge {
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  letter-spacing: 0.5px;
}

.quick-add-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swatch-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.swatch-btn:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.swatch-yellow { background: #ffe66d; }
.swatch-mint   { background: #a5d6a7; }
.swatch-blue   { background: #81d4fa; }
.swatch-pink   { background: #f48fb1; }
.swatch-purple { background: #ce93d8; }
.swatch-orange { background: #ffcc80; }
.swatch-dark   { background: #1e293b; }

.pill-divider {
  width: 1px;
  height: 22px;
  background: var(--glass-border);
}

.command-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.04);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}
body.dark-studio .command-search { background: rgba(255,255,255,0.06); }
.command-search:focus-within {
  border-color: var(--primary);
}

.search-svg {
  color: var(--text-muted);
}

.command-search input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  width: 130px;
}

.pill-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.pill-btn:hover, .pill-btn.active {
  background: rgba(0,0,0,0.07);
  color: var(--text-main);
}
body.dark-studio .pill-btn:hover, body.dark-studio .pill-btn.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.pill-btn.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  color: var(--primary);
}
body.dark-studio .pill-btn.active {
  background: var(--primary);
  color: #fff;
}

.icon-only-btn {
  padding: 6px;
  min-width: 32px;
  height: 32px;
  justify-content: center;
}

.admin-pill-btn {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}
.admin-pill-btn:hover {
  background: rgba(99, 102, 241, 0.18);
}

.danger-hover:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
}

.logout-pill-btn {
  color: var(--text-muted);
}
.logout-pill-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
}

.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--text-main);
  white-space: nowrap;
}

.user-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-chip-name {
  font-weight: 800;
  font-size: 0.85rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Studio Workspace Canvas */
.studio-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  padding-top: 110px;
}

.studio-canvas.grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
  padding: 120px 45px 45px;
}

/* Tactile Sticky Note Card with Semi-Transparent Tape Effect */
.tactile-note {
  position: absolute;
  width: 280px;
  min-height: 240px;
  border-radius: 20px;
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.18);
  transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: move;
}

/* Realistic Adhesive Tape Overlay */
.tactile-note::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  border-radius: 3px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  pointer-events: none;
}

.studio-canvas.grid-mode .tactile-note {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
}

.tactile-note.tilted-left { transform: rotate(-2deg); }
.tactile-note.tilted-right { transform: rotate(2deg); }
.tactile-note:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 28px 50px -10px rgba(0,0,0,0.28);
}
.tactile-note.is-dragging {
  opacity: 0.92;
  transform: scale(1.06) rotate(0deg);
  box-shadow: 0 35px 70px -12px rgba(0,0,0,0.35);
  z-index: 9999 !important;
}

/* Note Color Variants */
.note-yellow { background: var(--note-yellow-bg); color: var(--note-yellow-text); border: 1px solid var(--note-yellow-border); }
.note-mint   { background: var(--note-mint-bg);   color: var(--note-mint-text);   border: 1px solid var(--note-mint-border); }
.note-blue   { background: var(--note-blue-bg);   color: var(--note-blue-text);   border: 1px solid var(--note-blue-border); }
.note-pink   { background: var(--note-pink-bg);   color: var(--note-pink-text);   border: 1px solid var(--note-pink-border); }
.note-purple { background: var(--note-purple-bg); color: var(--note-purple-text); border: 1px solid var(--note-purple-border); }
.note-orange { background: var(--note-orange-bg); color: var(--note-orange-text); border: 1px solid var(--note-orange-border); }
.note-dark   { background: var(--note-dark-bg);   color: var(--note-dark-text);   border: 1px solid var(--note-dark-border); }

.note-drag-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pin-icon {
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pin-icon.pinned, .pin-icon:hover { opacity: 1; transform: scale(1.2); }

.note-top-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.65;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.tool-icon-btn:hover { opacity: 1; background: rgba(0,0,0,0.06); }
.tool-icon-btn.danger:hover { color: var(--danger); background: rgba(239,68,68,0.15); }

.note-title {
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.15rem;
  font-weight: 800;
  color: inherit;
  margin-bottom: 10px;
  width: 100%;
}
.note-title::placeholder { opacity: 0.55; color: inherit; }

/* Handwriting Body Textarea with Caveat Font */
.note-body {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: inherit;
  resize: none;
  line-height: 1.45;
  width: 100%;
  min-height: 115px;
}
.note-body::placeholder { opacity: 0.55; color: inherit; }

.note-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.75;
}

.color-dots-row {
  display: flex;
  gap: 5px;
}

.mini-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.mini-dot:hover { transform: scale(1.3); }

.dot-y { background: #ffe66d; }
.dot-m { background: #a5d6a7; }
.dot-b { background: #81d4fa; }
.dot-p { background: #f48fb1; }
.dot-pr { background: #ce93d8; }
.dot-o { background: #ffcc80; }
.dot-d { background: #334155; }

/* Studio Empty State */
.studio-empty {
  text-align: center;
  padding: 130px 20px;
  color: var(--text-muted);
}
.studio-empty-icon { font-size: 4rem; margin-bottom: 14px; }
.studio-empty-title { font-size: 1.6rem; font-weight: 900; color: var(--text-main); margin-bottom: 8px; }

/* Studio Toast */
.studio-toast {
  position: fixed;
  bottom: 35px;
  right: 35px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 14px 24px;
  border-radius: 35px;
  box-shadow: var(--glass-shadow);
  font-weight: 800;
  font-size: 0.95rem;
  z-index: 1000;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */

.admin-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 100px auto 50px;
  padding: 0 28px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}

.admin-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Admin Users Table */
.table-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.table-toolbar {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

.admin-search-input {
  padding: 11px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.7);
  outline: none;
  font-size: 0.95rem;
  font-weight: 600;
  width: 280px;
}
body.dark-studio .admin-search-input { background: rgba(15, 23, 42, 0.6); color: #fff; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 18px 28px;
  border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 800;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
}
.badge-active { background: rgba(16, 185, 129, 0.16); color: #059669; }
.badge-banned { background: rgba(239, 68, 68, 0.16); color: #dc2626; }
.badge-admin { background: rgba(99, 102, 241, 0.16); color: var(--primary); }

/* Floating Action Add Note Button */
.fab-add-note {
  position: fixed;
  bottom: 35px;
  left: 35px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 35px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 32px -5px rgba(99, 102, 241, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fab-add-note:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 40px -5px rgba(99, 102, 241, 0.7);
}

/* ==========================================================================
   NOTE REMINDER & UPCOMING REMINDERS FILTER STYLES
   ========================================================================== */

/* Filter Tabs in Command Pill */
.pill-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: 20px;
}
body.dark-studio .pill-filter-tabs { background: rgba(255, 255, 255, 0.08); }

.pill-tab-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pill-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.4);
}
body.dark-studio .pill-tab-btn:hover { background: rgba(255, 255, 255, 0.1); }

.pill-tab-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
body.dark-studio .pill-tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.reminder-pill-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1;
}

/* Note Bottom Reminder Picker */
.note-reminder-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.reminder-picker-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px dashed rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  transition: all 0.2s ease;
  overflow: hidden;
}
body.dark-studio .reminder-picker-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.reminder-picker-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-style: solid;
  border-color: var(--primary);
}

.reminder-picker-btn span {
  pointer-events: none;
}

.reminder-icon {
  font-size: 0.85rem;
}

.reminder-text {
  color: var(--text-main);
}
.reminder-text.is-overdue {
  color: #ef4444;
  font-weight: 900;
}

.reminder-text-placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.reminder-datetime-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.clear-reminder-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 50%;
  transition: color 0.2s ease;
}
.clear-reminder-btn:hover {
  color: #ef4444;
}

/* ==========================================================================
   PROJECTS HUB & MANAGEMENT STYLES
   ========================================================================== */

.projects-hub-container {
  min-height: 100vh;
  padding-bottom: 80px;
}

.projects-header-section {
  max-width: 1200px;
  margin: 100px auto 40px auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.projects-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.projects-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
}

.projects-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.projects-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.projects-search-box svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.projects-search-box input {
  padding: 12px 18px 12px 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  width: 260px;
  transition: all 0.2s ease;
}

.projects-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  width: 300px;
}

.projects-cards-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.4);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-icon-badge {
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-actions {
  display: flex;
  gap: 6px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.project-card:hover .project-card-actions {
  opacity: 1;
}

.proj-action-btn {
  background: rgba(0,0,0,0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
body.dark-studio .proj-action-btn { background: rgba(255,255,255,0.1); }
.proj-action-btn:hover { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.proj-action-btn.danger-hover:hover { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.project-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.project-note-count-pill {
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
}

.project-open-link {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.project-card:hover .project-open-link {
  transform: translateX(4px);
}

/* Active Project Selector in Studio Pill Header */
.active-project-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 12px;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.active-proj-icon {
  font-size: 1rem;
}

.active-proj-dropdown {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}

.proj-edit-mini-btn {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.proj-edit-mini-btn:hover { opacity: 1; }

/* Projects Empty State */
.projects-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  border-radius: 24px;
}
.projects-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.projects-empty-state h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.projects-empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Project Modal */
.project-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  z-index: 999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.project-modal-card {
  background: var(--surface-bg, #ffffff);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
}
body.dark-studio .project-modal-card {
  background: #0f172a;
}

.project-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.project-modal-header h3 {
  font-size: 1.3rem;
  font-weight: 900;
}
.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
}

.project-color-selector, .project-icon-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.proj-color-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-weight: 900;
  transition: all 0.2s ease;
}
.proj-color-chip.selected {
  border-color: var(--text-main);
  color: #fff;
  transform: scale(1.15);
}

.proj-color-chip.color-blue { background: #3b82f6; }
.proj-color-chip.color-emerald { background: #10b981; }
.proj-color-chip.color-purple { background: #8b5cf6; }
.proj-color-chip.color-amber { background: #f59e0b; }
.proj-color-chip.color-rose { background: #f43f5e; }
.proj-color-chip.color-indigo { background: #6366f1; }

.proj-icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}
body.dark-studio .proj-icon-chip { background: rgba(255,255,255,0.08); }
.proj-icon-chip.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1);
}

.project-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN ENHANCEMENTS (@media max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Landing Navigation & Header */
  .landing-nav {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
  }
  
  .nav-links-center {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* 2. Landing Hero Section */
  .hero-section {
    padding: 40px 16px;
    margin-top: 60px;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .trust-metrics-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* 3. Auth Page Mobile Layout */
  .full-auth-page {
    padding: 16px;
  }

  .auth-card-split {
    flex-direction: column;
    border-radius: 20px;
    margin-top: 10px;
  }

  .auth-side-banner {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .auth-form-side {
    padding: 24px 20px;
  }

  .banner-title {
    font-size: 1.4rem;
  }

  /* 4. Projects Hub Mobile View */
  .projects-header-section {
    margin: 80px auto 24px auto;
    padding: 0 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .projects-title {
    font-size: 1.7rem;
  }

  .projects-subtitle {
    font-size: 0.9rem;
  }

  .projects-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .projects-search-box input {
    width: 100% !important;
  }

  .projects-cards-grid {
    padding: 0 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    padding: 18px;
    border-radius: 16px;
  }

  /* 5. Project Studio Mobile Top Pill & Layout */
  .command-pill {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: calc(100% - 24px) !important;
    margin: 12px auto 16px auto !important;
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 20px;
    transform: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 99999 !important;
  }

  .pill-divider {
    display: none;
  }

  .active-project-selector {
    width: auto;
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    padding: 5px 10px;
    overflow: hidden;
  }

  .active-proj-dropdown {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pill-filter-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 14px;
    scrollbar-width: none;
  }
  .pill-filter-tabs::-webkit-scrollbar { display: none; }

  .pill-tab-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .command-search {
    width: 100%;
  }

  .command-search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    font-size: 0.85rem;
  }

  .pill-actions {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    overflow: hidden;
  }

  .pill-actions .pill-btn span {
    display: none; /* Hide text on mobile action buttons for max space, show icons */
  }
  .pill-actions .pill-btn {
    padding: 8px 10px;
  }

  .user-profile-chip {
    padding: 4px 8px;
    max-width: 110px;
  }

  .user-chip-name {
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 6. Mobile Studio Canvas & Notes Layout */
  .studio-canvas {
    padding: 4px 14px 110px 14px !important;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: auto;
    position: relative;
    z-index: 1;
  }

  /* On mobile screens, transform notes into neat, full-width responsive cards */
  .studio-canvas:not(.grid-mode) .tactile-note,
  .tactile-note {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    z-index: 1 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  }

  .tactile-note {
    width: 100% !important;
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
  }

  .note-body {
    font-size: 1.25rem;
    min-height: 80px;
  }

  /* Mobile FAB Add Note Button */
  .fab-add-note {
    bottom: 20px;
    right: 20px;
    left: auto;
    padding: 14px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
  }

  /* 7. Mobile Modal Adjustments */
  .project-modal-card {
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
  }

  .project-color-selector, .project-icon-selector {
    justify-content: space-between;
  }

  .proj-color-chip {
    width: 40px;
    height: 40px;
  }

  .proj-icon-chip {
    width: 46px;
    height: 46px;
  }
}

/* Sub-Project Badge & Controls */
.subproject-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  letter-spacing: 0.2px;
}
body.dark-studio .subproject-badge {
  background: rgba(129, 140, 248, 0.18);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.35);
}

.add-sub-btn {
  font-size: 0.75rem !important;
  padding: 4px 8px !important;
  background: rgba(99, 102, 241, 0.08) !important;
  color: var(--primary) !important;
  border: 1px dashed rgba(99, 102, 241, 0.4) !important;
  border-radius: 6px !important;
}
.add-sub-btn:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-style: solid !important;
}

/* Interactive Checklist / To-Do List Styles */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 140px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.checklist-progress-bar-wrapper {
  margin-bottom: 4px;
}
.checklist-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.checklist-progress-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
body.dark-studio .checklist-progress-track {
  background: rgba(255, 255, 255, 0.12);
}
.checklist-progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.checklist-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s ease;
}
body.dark-studio .checklist-item-row {
  background: rgba(15, 23, 42, 0.35);
}
.checklist-item-row.is-done {
  opacity: 0.65;
}

.checklist-checkbox {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #10b981;
}

.checklist-item-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  font-weight: 600;
}
.checklist-item-row.is-done .checklist-item-input {
  text-decoration: line-through;
  color: var(--text-muted);
}

.checklist-item-del-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.checklist-item-row:hover .checklist-item-del-btn {
  opacity: 1;
}
.checklist-item-del-btn:hover {
  color: #ef4444;
}

.checklist-add-item-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px dashed rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: 4px;
}
body.dark-studio .checklist-add-item-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.checklist-add-item-btn:hover {
  background: var(--primary);
  color: #fff;
  border-style: solid;
}

/* Customer Approval Badges & Modal Styles */
.note-approval-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.note-approval-badge:hover {
  transform: scale(1.05);
}
.note-approval-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
body.dark-studio .note-approval-badge.pending {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}
.note-approval-badge.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
body.dark-studio .note-approval-badge.approved {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.approval-modal {
  max-width: 520px;
  width: 90%;
}
.approval-status-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 10px;
  border: 1px solid transparent;
}
.approval-status-box.pending {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}
body.dark-studio .approval-status-box.pending {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}
.approval-status-box.approved {
  background: #d1fae5;
  border-color: #a7f3d0;
  color: #065f46;
}
body.dark-studio .approval-status-box.approved {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}
.approval-status-box h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 800;
}
.approval-status-box p {
  margin: 0;
  font-size: 0.82rem;
}
.customer-note-text {
  margin-top: 6px !important;
  font-style: italic;
}

.copy-url-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.copy-input {
  font-family: monospace;
  font-size: 0.85rem !important;
}
.copy-btn {
  white-space: nowrap;
  padding: 8px 16px !important;
}

.approval-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

/* Public Customer Approval Page Styles */
.public-approval-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow-y: auto;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #1e293b;
}
body.dark-studio .public-approval-page {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
}

.public-approval-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.public-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.public-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
}
.public-badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
}

.public-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
body.dark-studio .public-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.public-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.public-status-banner.pending {
  background: #fffbebf5;
  border: 1px solid #fef3c7;
}
body.dark-studio .public-status-banner.pending {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.25);
}
.public-status-banner.approved {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
body.dark-studio .public-status-banner.approved {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
}
.public-status-banner h3 {
  margin: 0 0 2px 0;
  font-size: 1rem;
  font-weight: 800;
}
.public-status-banner p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}
.status-banner-icon {
  font-size: 1.5rem;
}

.public-note-header {
  margin-bottom: 16px;
}
.public-note-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.meta-tag {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.7;
}
.public-note-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}

.public-note-content-box {
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  font-size: 0.98rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #1e293b;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}
.public-note-content-box.yellow { background: #fef08a; }
.public-note-content-box.mint { background: #a7f3d0; }
.public-note-content-box.blue { background: #bae6fd; }
.public-note-content-box.pink { background: #fbcfe8; }
.public-note-content-box.purple { background: #ddd6fe; }
.public-note-content-box.orange { background: #fed7aa; }
.public-note-content-box.dark { background: #334155; color: #f8fafc; }

.public-checklist-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.public-checklist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.public-checklist-row.is-done {
  text-decoration: line-through;
  opacity: 0.6;
}

.approved-success-card {
  text-align: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  padding: 24px;
  border-radius: 16px;
}
.success-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.approved-success-card h3 {
  margin: 0 0 6px 0;
  font-weight: 800;
}
.customer-feedback-display {
  margin-top: 14px;
  font-style: italic;
  font-size: 0.9rem;
}

.approval-action-box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.approve-submit-btn {
  padding: 14px !important;
  font-size: 1.05rem !important;
  border-radius: 12px !important;
}

/* ==========================================================================
   NESTED SUB-PROJECTS INSIDE PARENT PROJECT CARD
   ========================================================================== */
.subprojects-nested-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}
body.dark-studio .subprojects-nested-box {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.subprojects-nested-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.subprojects-nested-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.btn-text-tiny {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.btn-text-tiny:hover {
  background: rgba(99, 102, 241, 0.12);
}

.subprojects-nested-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subproject-nested-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
body.dark-studio .subproject-nested-item {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

.subproject-nested-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-glow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
body.dark-studio .subproject-nested-item:hover {
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.subproject-nested-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.subproject-nested-tree-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: monospace;
}

.subproject-nested-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subproject-nested-count {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}
body.dark-studio .subproject-nested-count {
  background: rgba(255, 255, 255, 0.1);
}

.subproject-nested-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.subproject-open-btn {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  margin-right: 4px;
}

.proj-action-btn-small {
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.dark-studio .proj-action-btn-small {
  background: rgba(255, 255, 255, 0.08);
}
.proj-action-btn-small:hover {
  background: var(--primary);
  color: #fff;
}
.proj-action-btn-small.danger-hover:hover {
  background: #ef4444;
  color: #fff;
}

/* ==========================================================================
   DRAG AND DROP PROJECT CARD STYLES
   ========================================================================== */
.project-card[draggable="true"] {
  cursor: grab;
  user-select: none;
}

.project-card[draggable="true"]:active {
  cursor: grabbing;
}

.project-card.dragging {
  opacity: 0.45;
  transform: scale(0.97);
  border: 2px dashed var(--primary) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.project-card.drag-over {
  border: 2px dashed var(--primary) !important;
  transform: translateY(-4px) scale(1.02);
  background: rgba(99, 102, 241, 0.08) !important;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.25) !important;
}

/* ==========================================================================
   ULTRA-PREMIUM ARCHIVE MODAL STYLES
   ========================================================================== */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  animation: fadeInModal 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.archive-drop-pill {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.archive-drop-pill.drag-over {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  transform: scale(1.1) translateY(-2px) !important;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.6) !important;
}

.archive-pill-badge {
  background: #6366f1;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  margin-left: 4px;
}

.archive-modal-card {
  width: 92%;
  max-width: 740px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  animation: modalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-studio .archive-modal-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.archive-modal-header {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(248, 250, 252, 0.8);
}

body.dark-studio .archive-modal-header {
  background: rgba(15, 23, 42, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.archive-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.archive-header-icon {
  font-size: 1.8rem;
  background: rgba(99, 102, 241, 0.12);
  padding: 10px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.archive-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 2px 0;
  color: var(--text-color);
}

.archive-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.archive-btn-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

body.dark-studio .archive-btn-close {
  background: rgba(255, 255, 255, 0.08);
}

.archive-btn-close:hover {
  background: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

.archive-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: 560px;
}

.archive-empty-box {
  text-align: center;
  padding: 50px 20px;
}

.archive-empty-icon {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 12px;
}

.archive-empty-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.archive-empty-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
}

.archived-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.archived-note-card {
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  min-height: 180px;
}

.archived-note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.archived-note-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #1e293b;
}

.archived-note-content {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
}

.archived-note-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.archived-action-btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.archived-action-btn.restore-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #4f46e5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.archived-action-btn.restore-btn:hover {
  background: #6366f1;
  color: #ffffff;
}

.archived-action-btn.delete-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.archived-action-btn.delete-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   MIO CAT MASCOT & FLOATING WIDGET STYLES
   ========================================================================== */
.mio-mascot-container {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.mio-mascot-container * {
  pointer-events: auto;
}

.mio-avatar-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(99, 102, 241, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: mascotBob 3.5s ease-in-out infinite;
  background: #ffffff;
}

@keyframes mascotBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.mio-avatar-wrapper:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.6), 0 0 0 4px #6366f1;
}

.mio-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mio-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border: 3px solid #ffffff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.mio-mini-tag {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #4f46e5;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Mio Speech Bubble */
.mio-speech-bubble {
  width: 320px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2), 0 4px 20px rgba(99, 102, 241, 0.15);
  animation: bubblePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  margin-bottom: 4px;
}

body.dark-studio .mio-speech-bubble {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
}

@keyframes bubblePop {
  from { opacity: 0; transform: translateY(16px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mio-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mio-badge {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.dark-studio .mio-badge {
  background: rgba(99, 102, 241, 0.25);
  color: #818cf8;
}

.mio-bubble-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.mio-bubble-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.mio-bubble-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 6px;
}

.mio-bubble-text {
  font-size: 0.88rem;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 14px;
}

.mio-bubble-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mio-action-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

body.dark-studio .mio-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.mio-action-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.mio-action-btn.primary {
  background: #6366f1;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mio-action-btn.primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

/* Mio Detailed Report Modal */
.mio-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.mio-stat-card {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

body.dark-studio .mio-stat-card {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.mio-stat-card:hover {
  transform: translateY(-3px);
}

.mio-stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.mio-stat-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: #6366f1;
  margin-bottom: 4px;
}

.mio-stat-lbl {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mio-progress-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px dashed rgba(99, 102, 241, 0.25);
  border-radius: 18px;
  padding: 18px 20px;
}

.mio-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.mio-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

body.dark-studio .mio-progress-bar {
  background: rgba(255, 255, 255, 0.12);
}

.mio-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: 99px;
  transition: width 0.4s ease;
}
