/* ============================================
   ANTI RIBET - Clean Academic UI
   Design: Simple, functional, student-friendly
   ============================================ */

:root {
  /* Fun Student Palette */
  --bg-main: #FFFBEB; /* Light Cream (Paper-like) */
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #FEF3C7;
  
  --text-primary: #18181b; /* Zinc 900 */
  --text-secondary: #52525b; /* Zinc 600 */
  --text-muted: #71717a;
  --text-placeholder: #a1a1aa;
  
  /* Pop Accents */
  --accent: #2563EB; /* Bright Blue */
  --accent-hover: #1D4ED8;
  --accent-light: #DBEAFE;
  
  --marker-yellow: #FDE047;
  --marker-pink: #F9A8D4;
  --marker-green: #86EFAC;
  
  /* Borders & Shadows (Neo-Brutalism Lite) */
  --border: #e4e4e7;
  --border-strong: #18181b;
  --shadow-sm: 2px 2px 0px rgba(0,0,0,1);
  --shadow: 4px 4px 0px rgba(0,0,0,1);
  --shadow-lg: 6px 6px 0px rgba(0,0,0,1);
  
  /* Spacing */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Landing Theme - Pop Student */
  --landing-bg: #FFFBEB;
  --glass-bg: #ffffff;
}

/* Base Theme Extensions */
.premium-page {
  background: var(--bg-main);
  color: var(--text-primary);
  background-image: radial-gradient(#E5E7EB 1px, transparent 1px);
  background-size: 20px 20px; /* Dot pattern like notebook */
}

.premium-page h1, 
.premium-page h2, 
.premium-page h3, 
.premium-page h4 {
  color: var(--text-primary);
  font-weight: 800; /* Bolder headings */
  letter-spacing: -0.03em;
}

.premium-page p {
  color: var(--text-secondary);
}

.hero-section {
    padding: 4rem 0;
    background: transparent;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.premium-navbar {
  background: #ffffff !important;
  border-bottom: 3px solid var(--border-strong) !important;
}

/* Fun Card Interface */
.glass-card-premium {
  background: #ffffff !important;
  border: 2px solid var(--border-strong) !important;
  box-shadow: var(--shadow) !important;
  color: var(--text-primary) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: var(--radius) !important;
}

.glass-card-premium:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0,0,0,1) !important;
}

.glass-card-premium h1,
.glass-card-premium h2,
.glass-card-premium h3,
.glass-card-premium h4,
.glass-card-premium div {
  color: var(--text-primary) !important;
}

.premium-navbar .navbar-menu a.active {
  background: var(--marker-yellow) !important;
  color: var(--text-primary) !important;
  border: 2px solid var(--border-strong);
  font-weight: 700;
  transform: rotate(-2deg);
}

.premium-navbar .navbar-menu a:hover {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

.glass-input {
  background: #ffffff !important;
  border: 2px solid var(--border-strong) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-sm);
}

.glass-input:focus {
  background: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: var(--shadow) !important;
  transform: translate(-1px, -1px);
}

/* ============ BASE RESET ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p { color: var(--text-secondary); }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ============ LAYOUT ============ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============ TOP NAVBAR ============ */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand:hover { text-decoration: none; }

.navbar-menu {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.navbar-menu a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.navbar-menu a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-menu a.active {
  background: var(--accent-light);
  color: var(--accent);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700; /* Bolder text */
  border-radius: var(--radius);
  border: 2px solid transparent; /* Thicker border base */
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--border-strong);
  box-shadow: 4px 4px 0px rgba(0,0,0,1);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0,0,0,1);
  background: var(--accent);
}
.btn-primary:active {
  transform: translate(0px, 0px);
  box-shadow: 0px 0px 0px rgba(0,0,0,1);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-strong);
  box-shadow: 2px 2px 0px rgba(0,0,0,1);
}
.btn-secondary:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px rgba(0,0,0,1);
}

.btn-premium {
  background: var(--marker-yellow); /* Pop Yellow */
  color: var(--text-primary);
  border: 2px solid var(--border-strong) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 4px 4px 0px rgba(0,0,0,1);
  position: relative;
  overflow: hidden;
}

.btn-premium::after {
  display: none; /* Remove shine */
}

.btn-premium:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 6px 6px 0px rgba(0,0,0,1);
  filter: none;
  background: var(--marker-pink); /* Hover to Pink */
  text-decoration: none !important;
}

.btn-premium:hover::after { opacity: 1; }

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  font-weight: 500;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: white !important;
  text-decoration: none !important;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-white { color: white !important; }
.text-gradient {
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-block { width: 100%; }

/* ============ FORM ELEMENTS ============ */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control::placeholder {
  color: var(--text-placeholder);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
  min-height: 200px;
  resize: vertical;
  line-height: 1.6;
}

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.card-flat {
  box-shadow: none;
}

.card-elevated {
  box-shadow: var(--shadow);
  border: none;
}

/* ============ MODE TABS ============ */
.mode-tabs {
  display: flex;
  gap: 0.375rem;
  padding: 0.25rem;
  background: var(--bg-input);
  border-radius: var(--radius);
  width: fit-content;
}

.mode-tab {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.mode-tab:hover {
  color: var(--text-primary);
}

.mode-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ============ WORKSPACE LAYOUT ============ */
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  min-height: calc(100vh - 56px - 3rem);
}

@media (max-width: 800px) {
  .workspace {
    grid-template-columns: 1fr;
  }
}

.workspace-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============ INPUT AREA ============ */
.input-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.input-area textarea {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.7;
  padding: 1rem;
}

/* Upload Zone */
.upload-zone {
  display: block; /* Ensure it behaves like a block */
  width: 100%;
  padding: 2rem;
  border: 3px dashed var(--text-muted); /* Distinct dashed border */
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-secondary); /* Darker text */
  background: var(--bg-card);
  transition: all 0.2s ease;
  cursor: pointer;
  margin-top: 1rem;
}

.upload-zone:hover, .upload-zone.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  transform: scale(1.02);
}

.upload-zone-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block; /* Fix emoji/icon alignment */
}

.upload-zone-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Fix Placeholder Contrast */
.form-control::placeholder {
  color: var(--text-muted);
  opacity: 1; /* Ensure Firefox doesn't reduce opacity */
}

/* ============ OUTPUT AREA ============ */
.output-area {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.output-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.output-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.output-content {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.output-content h1,
.output-content h2,
.output-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.output-content h1:first-child,
.output-content h2:first-child,
.output-content h3:first-child {
  margin-top: 0;
}

.output-content p {
  margin-bottom: 1rem;
}

.output-content ul, .output-content ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.output-content li {
  margin-bottom: 0.375rem;
}

/* ============ LOADING STATE ============ */
.loading-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ============ ALERTS ============ */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-warning {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ============ BADGE ============ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-secondary);
}

.badge-primary {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

/* ============ FOOTER ============ */
.footer {
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============ LANDING & HERO ============ */
.hero-premium {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.text-accent-gradient {
    background: linear-gradient(90deg, #ff80b5, #9089fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}
.hero-actions {
    display: flex;
    gap: 1rem;
}
.hero-image { position: relative; }
.floating-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.section-padding { padding: 6rem 0; }
.glass-cta {
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@media (max-width: 991px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
}

/* Feature Icon Colors */
.feature-icon {
    width: 3rem; height: 3rem;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.bg-indigo-light { background: #e0e7ff; }
.bg-purple-light { background: #f3e8ff; }
.bg-pink-light { background: #fce7f3; }
.bg-blue-light { background: #dbeafe; }
.bg-amber-light { background: #fef3c7; }
.bg-green-light { background: #dcfce7; }

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        padding: 0 1rem;
        height: auto;
        min-height: 56px;
    }
    
    .navbar-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        width: 28px !important;
        height: 28px !important;
    }
    
    .navbar-menu {
        display: none !important;
    }
    
    .d-none-mobile {
        display: none !important;
    }
    
    .navbar-actions {
        gap: 0.5rem;
    }
    
    .navbar-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    /* Hero Section Mobile */
    .hero-premium {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-title span {
        font-size: 2rem !important;
        padding: 0 0.25rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .floating-img {
        box-shadow: 6px 6px 0px #000 !important;
    }
    
    /* Marquee Mobile */
    .marquee-content {
        font-size: 0.75rem !important;
    }
    
    /* Section Padding Mobile */
    .section-padding {
        padding: 3rem 0 !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    /* Grid Mobile */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
    }
    
    /* Cards Mobile */
    .glass-card-premium {
        padding: 1.25rem !important;
    }
    
    .card {
        padding: 1rem;
    }
    
    /* CTA Mobile */
    .glass-cta {
        padding: 2rem 1.5rem !important;
    }
    
    .glass-cta h2 {
        font-size: 1.75rem !important;
    }
    
    .glass-cta p {
        font-size: 1rem !important;
    }
    
    /* Buttons Mobile */
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 1rem;
    }
    
    /* Mascot Sticker Mobile */
    .mascot-sticker {
        width: 80px !important;
        height: 80px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .mascot-sticker::after {
        display: none !important;
    }
    
    /* Doodles - Hide on Mobile */
    .doodle {
        display: none !important;
    }
    
    /* Typography Mobile */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    
    /* Workspace Mobile */
    .workspace {
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .output-area {
        max-height: 400px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
    
    .glass-cta {
        padding: 1.5rem 1rem !important;
        transform: rotate(0deg) !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    /* Auth Pages Mobile */
    .auth-page {
        padding: 1rem !important;
    }
    
    .auth-card {
        max-width: 100% !important;
    }
    
    .glass-card-premium {
        box-shadow: 4px 4px 0px #000 !important;
    }
}

/* Fix Firefox min-height auto issue */
@media (max-width: 768px) {
    .hero-premium {
        min-height: 0 !important;
        height: auto !important;
    }
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border: 3px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--marker-yellow);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--bg-input);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all 0.15s;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 1);
}

.form-input::placeholder {
  color: var(--text-placeholder);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .modal-content {
    max-width: 100%;
    margin: 0.5rem;
  }
  
  .modal-header,
  .modal-body {
    padding: 1rem;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}
