* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none !important;
}

*,
*:focus,
*:focus-visible,
*:focus-within,
*:active {
  outline: none !important;
  box-shadow: none !important;
}

*::-moz-focusring,
*::-moz-focus-inner {
  outline: none !important;
  border: none !important;
}

button,
input,
textarea,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --card: #ffffff;
  --text: #0a0a0a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #0a0a0a;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --primary: #0a0a0a;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #ca8a04;
  --info: #2563eb;
  --purple: #7c3aed;
  --pink: #db2777;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: #000;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  animation: slideDown 0.4s ease-out;
  overflow: visible;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
  transition: all 0.3s ease;
  font-size: 20px;
  flex-shrink: 0;
}

.logo:hover .logo-icon {
  background: var(--border);
  color: #fff;
  transform: rotate(-10deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-icon.small {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--border);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 18px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link i {
  font-size: 14px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--border);
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  border-color: var(--border-light);
  background: var(--bg-secondary);
}

.nav-link:hover::after {
  width: 60%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 9999;
  border-radius: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--border);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
  pointer-events: none;
}

.mobile-menu-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

.mobile-menu-btn.active {
  border-color: var(--border);
  background: var(--border);
}

.mobile-menu-btn.active span {
  background: #fff;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  width: 20px;
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 20px;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 80%;
  height: 100%;
  background: #fff;
  border-left: 2px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.mobile-nav-overlay.active .mobile-nav {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 2px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  color: var(--border);
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.mobile-nav-close:hover {
  background: var(--border);
  color: #fff;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover {
  background: var(--bg-secondary);
  padding-left: 26px;
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

.hero-section {
  text-align: center;
  padding: 40px 0;
  animation: fadeInUp 0.6s ease-out;
}

.hero-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 800;
  color: var(--border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.version-badge {
  font-size: 13px;
  font-weight: 700;
  background: var(--border);
  color: #fff;
  padding: 5px 14px;
  border: 2px solid var(--border);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-black {
  background: var(--border);
  color: #fff;
}

.btn-black:hover {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background: #fff;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--border);
  background: var(--bg-secondary);
}

.btn-danger {
  background: #fff;
  border-color: var(--danger);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.card {
  background: #fff;
  border: 2px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  pointer-events: none;
}

.card:hover::before {
  border-color: var(--border);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-padded {
  padding: 28px;
}

.snippet-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.section-actions {
  display: flex;
  gap: 10px;
}

.section-badge {
  font-size: 12px;
  font-weight: 700;
  background: var(--border);
  color: #fff;
  padding: 4px 12px;
  border: 1px solid var(--border);
}

.snippet-card {
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.snippet-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--border);
  transition: height 0.3s ease;
}

.snippet-card:hover::after {
  height: 100%;
}

.snippet-card:hover {
  background: var(--bg-secondary);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.snippet-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.snippet-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.snippet-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.snippet-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
  font-size: 20px;
  transition: all 0.3s ease;
}

.snippet-card:hover .snippet-icon {
  transform: scale(1.15) rotate(-8deg);
  background: var(--border);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.snippet-info {
  flex: 1;
  min-width: 0;
}

.snippet-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.snippet-lang {
  font-size: 10px;
  font-weight: 700;
  background: var(--border);
  color: #fff;
  padding: 3px 10px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.snippet-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.snippet-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 16px;
}

.snippet-date {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
  background: var(--bg-tertiary);
  padding: 5px 12px;
  border: 1px solid var(--border-light);
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.snippet-card:hover .snippet-date {
  background: var(--border);
  color: #fff;
  border-color: var(--border);
}

.btn-action-dots {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: var(--text);
  flex-shrink: 0;
}

.btn-action-dots:hover {
  background: var(--border);
  color: #fff;
  transform: scale(1.1);
}

.empty-state {
  text-align: center;
  padding: 100px 24px;
  margin-top: 48px;
  border: 2px solid var(--border);
  animation: fadeInUp 0.6s ease-out;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border: 2px solid var(--border);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 32px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.empty-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.how-it-works {
  margin-top: 56px;
  border: 2px solid var(--border);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.how-it-works .section-title {
  margin: 0;
  padding: 24px 28px;
  border-bottom: 2px solid var(--border);
  background: var(--bg-secondary);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
  position: relative;
}

.step:last-child {
  border-bottom: none;
}

.step:hover {
  background: var(--bg-secondary);
}

.step:hover .step-number {
  transform: scale(1.2) rotate(-8deg);
  background: var(--border);
  color: #fff;
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.step-number {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--border);
  flex-shrink: 0;
  background: #fff;
  transition: all 0.3s ease;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

footer {
  border-top: 2px solid var(--border);
  background: #fff;
  padding: 32px 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 2px solid var(--border-light);
  transition: all 0.2s ease;
}

.contact-link:hover {
  border-color: var(--border);
  color: var(--border);
  background: var(--bg-secondary);
}

.contact-link i {
  font-size: 16px;
}

.scroll-top {
  position: fixed;
  bottom: -60px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  background: var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 90;
  font-size: 18px;
}

.scroll-top.visible {
  bottom: 24px;
}

.scroll-top:hover {
  background: #1a1a1a;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.alert {
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.alert-error {
  background: #fef2f2;
  border-color: var(--danger);
  color: var(--danger);
}

.alert-success {
  background: #f0fdf4;
  border-color: var(--success);
  color: var(--success);
}

.alert-info {
  background: #eff6ff;
  border-color: var(--info);
  color: var(--info);
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
  border: 2px solid var(--border);
  background: #fff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:hover {
  background: var(--bg-secondary);
}

.form-input:focus {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.08);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-textarea {
  min-height: 200px;
  resize: vertical;
  font-family: 'Ubuntu Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.8;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-hint::before {
  content: '💡';
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  border: 2px solid var(--border);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
  pointer-events: none;
  background: var(--border);
}

.toast-success {
  background: var(--border);
  border-color: var(--border);
}

.toast-error {
  background: var(--danger);
  border-color: var(--danger);
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-load {
  animation: fadeInUp 0.5s ease-out forwards;
}

.spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: all 0.2s ease;
  font-weight: 500;
  padding: 10px 16px;
  border: 2px solid transparent;
}

.back-btn:hover {
  color: var(--border);
  border-color: var(--border-light);
  background: var(--bg-secondary);
  transform: translateX(-6px);
}

.page-header {
  margin-bottom: 40px;
  animation: fadeInUp 0.5s ease-out;
}

.page-title {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 800;
  color: var(--border);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.page-desc {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.action-buttons .btn {
  flex: 1;
  min-width: 130px;
}

.snippet-info-card {
  background: #fff;
  border: 2px solid var(--border);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  animation: fadeInUp 0.5s ease-out;
  box-shadow: var(--shadow-md);
}

.snippet-info-card:hover .snippet-icon-large {
  transform: scale(1.1) rotate(-8deg);
  background: var(--border);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.snippet-icon-large {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.snippet-info-text {
  flex: 1;
  min-width: 0;
}

.snippet-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 8px;
  font-family: 'Ubuntu Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}

.snippet-id {
  font-size: 12px;
  color: var(--text-light);
  font-family: 'Ubuntu Mono', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.snippet-id::before {
  content: '#';
  color: var(--text-muted);
}

.actions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 2px solid var(--border);
  padding: 22px 26px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.action-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  transition: height 0.3s ease;
}

.action-item:not(.delete)::before {
  background: var(--info);
}

.action-item.delete::before {
  background: var(--danger);
}

.action-item:hover::before {
  height: 100%;
}

.action-item:hover {
  background: var(--bg-secondary);
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.action-item.delete:hover {
  background: #fef2f2;
  border-color: var(--danger);
}

.action-icon {
  width: 52px;
  height: 52px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: #fff;
  transition: all 0.3s ease;
}

.action-icon.edit {
  color: var(--info);
  border-color: var(--info);
}

.action-icon.delete {
  color: var(--danger);
  border-color: var(--danger);
}

.action-item:hover .action-icon.edit {
  background: var(--info);
  color: #fff;
  border-color: var(--info);
}

.action-item:hover .action-icon.delete {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.action-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.action-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--border);
  letter-spacing: -0.3px;
}

.action-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.action-arrow {
  font-size: 18px;
  color: var(--border-light);
  transition: transform 0.3s ease;
}

.action-item:hover .action-arrow {
  transform: translateX(8px);
  color: var(--border);
}

.code-viewer {
  border: 2px solid var(--border);
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
  box-shadow: var(--shadow-lg);
  background: #282c34;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #21252b;
  border-bottom: 2px solid var(--border);
}

.code-dots {
  display: flex;
  gap: 8px;
}

.code-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.code-dot:hover {
  transform: scale(1.2);
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-filename {
  font-size: 13px;
  color: #abb2bf;
  font-family: 'Ubuntu Mono', monospace;
  margin-left: 14px;
  font-weight: 600;
}

.code-content {
  background: #282c34;
  overflow-x: auto;
  max-height: 70vh;
  position: relative;
}

.code-content pre {
  margin: 0;
  padding: 16px 20px;
  font-family: 'Ubuntu Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  background: transparent;
  min-height: 100%;
  text-align: left;
}

.code-content pre[class*="language-"] {
  background: transparent;
}

.code-content code {
  display: block;
  font-family: 'Ubuntu Mono', 'Fira Code', monospace;
  color: #abb2bf;
}

.code-content .line-numbers-rows {
  border-right: 1px solid #404040;
  background: #282c34;
}

.code-content .line-numbers-rows > span {
  color: #636d83;
  padding-right: 16px;
  border-right: 1px solid #404040;
}

.code-content .line-numbers-rows > span:before {
  color: #636d83;
}

.code-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #21252b;
  border-top: 2px solid var(--border);
  font-size: 12px;
  color: #abb2bf;
  font-weight: 500;
}

@media (max-width: 768px) {
  .header-content {
    padding: 12px 16px;
    padding-right: 70px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .logo-text {
    font-size: 14px;
  }

  .logo-tagline {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  main {
    padding: 60px 16px 32px;
  }

  .hero-section {
    padding: 24px 0;
  }

  .hero-title {
    font-size: 26px;
    flex-direction: column;
    gap: 8px;
  }

  .version-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .section-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .section-title {
    font-size: 16px;
  }

  .snippet-card {
    margin: 0;
    border-left: 2px solid var(--border);
    border-right: 2px solid var(--border);
  }

  .snippet-card-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .snippet-card-content {
    padding: 14px 16px;
    gap: 12px;
    width: 100%;
  }

  .snippet-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
    flex-shrink: 0;
  }

  .snippet-info {
    flex: 1;
    min-width: 0;
  }

  .snippet-name {
    font-size: 13px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .snippet-lang {
    font-size: 9px;
    padding: 2px 6px;
    flex-shrink: 0;
  }

  .snippet-desc {
    font-size: 11px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .snippet-meta {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 14px;
    border-top: 1px solid var(--border-light);
    margin-top: 0;
  }

  .snippet-date {
    font-size: 10px;
    padding: 4px 10px;
  }

  .btn-action-dots {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
    padding: 14px 22px;
  }

  .page-title {
    font-size: 24px;
  }

  .code-content {
    max-height: 50vh;
  }

  .code-content pre {
    font-size: 12px;
    padding: 14px 16px;
  }

  .snippet-info-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .snippet-icon-large {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }

  .snippet-title {
    font-size: 17px;
  }

  .action-item {
    padding: 20px 22px;
  }

  .action-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .action-label {
    font-size: 15px;
  }

  .action-desc {
    font-size: 12px;
  }

  .steps {
    gap: 0;
  }

  .step {
    padding: 20px 22px;
    gap: 16px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .step-content h4 {
    font-size: 15px;
  }

  .step-content p {
    font-size: 13px;
  }

  .form-input {
    padding: 13px 16px;
    font-size: 13px;
  }

  .form-label {
    font-size: 11px;
  }

  .card-padded {
    padding: 24px;
  }

  .btn {
    padding: 13px 22px;
    font-size: 13px;
  }

  .empty-state {
    padding: 70px 16px;
  }

  .empty-icon {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .empty-title {
    font-size: 19px;
  }

  .empty-desc {
    font-size: 14px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .code-header {
    padding: 12px 14px;
  }

  .code-footer {
    padding: 10px 14px;
    font-size: 11px;
  }

  .contact-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .scroll-top {
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 10px 12px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .logo-text {
    font-size: 13px;
  }

  main {
    padding: 55px 12px 28px;
  }

  .hero-title {
    font-size: 24px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 13px;
  }

  .card-padded {
    padding: 20px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 13px;
  }

  .form-textarea {
    min-height: 160px;
    font-size: 12px;
  }

  .form-label {
    font-size: 10px;
  }

  .form-hint {
    font-size: 10px;
  }

  .snippet-card-content {
    padding: 12px 14px;
    gap: 10px;
  }

  .snippet-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .snippet-name {
    font-size: 12px;
  }

  .snippet-lang {
    font-size: 8px;
    padding: 2px 5px;
  }

  .btn-action-dots {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .section-title {
    font-size: 15px;
  }

  .page-title {
    font-size: 20px;
    gap: 10px;
  }

  .page-desc {
    font-size: 13px;
  }

  .back-btn {
    font-size: 12px;
    margin-bottom: 20px;
    padding: 8px 12px;
  }

  .snippet-info-card {
    padding: 20px;
    gap: 16px;
  }

  .snippet-icon-large {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .snippet-title {
    font-size: 15px;
  }

  .action-item {
    padding: 18px 20px;
    gap: 14px;
  }

  .action-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .action-label {
    font-size: 14px;
  }

  .action-desc {
    font-size: 11px;
  }

  .action-arrow {
    font-size: 16px;
  }

  .code-content pre {
    font-size: 11px;
    padding: 12px 14px;
  }

  .code-header {
    padding: 10px 12px;
  }

  .code-filename {
    font-size: 11px;
    margin-left: 10px;
  }

  .code-footer {
    padding: 8px 12px;
    font-size: 10px;
  }

  .step {
    padding: 18px 20px;
    gap: 14px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .step-content h4 {
    font-size: 14px;
  }

  .step-content p {
    font-size: 12px;
  }

  .alert {
    padding: 16px 18px;
    font-size: 13px;
  }

  .toast {
    padding: 16px 20px;
    font-size: 13px;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  footer {
    padding: 28px 0;
  }

  .copyright {
    font-size: 12px;
  }

  .contact-links {
    gap: 8px;
  }

  .contact-link {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  main {
    padding: 40px 20px;
  }

  .snippet-list {
    gap: 12px;
  }

  .snippet-card-content {
    padding: 16px 18px;
  }

  .header-content {
    padding: 12px 20px;
  }
}

@media (min-width: 1025px) {
  .snippet-card:hover {
    box-shadow: var(--shadow-lg);
  }

  .card:hover {
    box-shadow: var(--shadow-lg);
  }
}

@media print {
  header, footer, .btn, .action-buttons, .back-btn, .scroll-top, .mobile-menu-btn {
    display: none !important;
  }

  main {
    padding: 20px 0;
  }

  .code-viewer {
    border: 1px solid #000;
    box-shadow: none;
  }

  .code-content {
    max-height: none;
    background: #fff;
  }

  .code-content pre {
    color: #000;
  }
}
