@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@400;500;700;900&display=swap');

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-blue: #1555EA;
  --color-red: #ED1C22;
  --color-yellow: #FFEB01;
  --color-green: #1BC508;
  --color-cream: #FEFCE1;
  --color-night: #241E20;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-black);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  background: var(--color-black);
  padding: 16px 0;
  border-bottom: 4px solid var(--color-yellow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-yellow);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid transparent;
  transition: all 0.16s var(--ease-out);
}

.nav-link:hover {
  background: var(--color-yellow);
  color: var(--color-black);
  border-color: var(--color-yellow);
}

.nav-link.active {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

/* Main content */
main {
  padding: 0 0 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero / Home */
.hero {
  text-align: center;
  padding: 80px 20px;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container:has(.content-area:not(:empty)) .hero {
  min-height: auto;
}

.hero-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title span {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 8px 20px;
  border: 4px solid var(--color-black);
  box-shadow: 6px 6px 0 var(--color-red);
  transform: rotate(-1deg);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--color-night);
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-token {
  display: block;
  margin: -40px auto 60px;
  padding: 12px 30px;
  background: var(--color-yellow);
  color: var(--color-black);
  border: 6px solid var(--color-black);
  box-shadow: 8px 8px 0 var(--color-red);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-dollar {
  font-size: 1.8rem;
  font-weight: 900;
  margin-right: 2px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.btn {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 20px 40px;
  border: 4px solid var(--color-black);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.16s var(--ease-out);
  position: relative;
  min-width: 220px;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-blue {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 6px 6px 0 var(--color-black);
}

.btn-blue:hover {
  box-shadow: 3px 3px 0 var(--color-black);
  transform: translate(3px, 3px);
}

.btn-red {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 6px 6px 0 var(--color-black);
}

.btn-red:hover {
  box-shadow: 3px 3px 0 var(--color-black);
  transform: translate(3px, 3px);
}

.btn-green {
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: 6px 6px 0 var(--color-black);
}

.btn-green:hover {
  box-shadow: 3px 3px 0 var(--color-black);
  transform: translate(3px, 3px);
}

.btn-yellow {
  background: var(--color-yellow);
  color: var(--color-black);
  box-shadow: 6px 6px 0 var(--color-black);
}

.btn-yellow:hover {
  box-shadow: 3px 3px 0 var(--color-black);
  transform: translate(3px, 3px);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.8rem;
  min-width: auto;
  border-width: 3px;
  box-shadow: 4px 4px 0 var(--color-black);
}

/* History page */
.page-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 40px;
  padding: 12px 24px;
  background: var(--color-yellow);
  border: 4px solid var(--color-black);
  box-shadow: 6px 6px 0 var(--color-red);
  display: inline-block;
  transform: rotate(-0.5deg);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-black);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  background: var(--color-white);
  border: 3px solid var(--color-black);
  padding: 24px;
  box-shadow: 4px 4px 0 var(--color-blue);
  transition: all 0.16s var(--ease-out);
}

.timeline-item:hover {
  box-shadow: 6px 6px 0 var(--color-blue);
  transform: translate(-2px, -2px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 28px;
  width: 16px;
  height: 16px;
  background: var(--color-red);
  border: 3px solid var(--color-black);
  border-radius: 50%;
}

.timeline-item:nth-child(even) {
  box-shadow: 4px 4px 0 var(--color-green);
}

.timeline-item:nth-child(even):hover {
  box-shadow: 6px 6px 0 var(--color-green);
}

.timeline-item:nth-child(even)::before {
  background: var(--color-green);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.timeline-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-night);
}

/* Directory page */
.directory-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.category-card {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border: 3px solid var(--color-black);
  background: var(--color-white);
  cursor: pointer;
  transition: all 0.16s var(--ease-out);
  text-align: center;
  box-shadow: 3px 3px 0 var(--color-black);
}

.category-card:hover {
  background: var(--color-yellow);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-black);
}

.category-card.active {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 1px 1px 0 var(--color-black);
  transform: translate(2px, 2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--color-white);
  border: 3px solid var(--color-black);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--color-red);
  transition: all 0.16s var(--ease-out);
  cursor: pointer;
}

.project-card:hover {
  box-shadow: 6px 6px 0 var(--color-red);
  transform: translate(-2px, -2px);
}

.project-card:nth-child(even) {
  box-shadow: 4px 4px 0 var(--color-blue);
}

.project-card:nth-child(even):hover {
  box-shadow: 6px 6px 0 var(--color-blue);
}

.project-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-black);
  image-rendering: pixelated;
}

.project-card-body {
  padding: 16px;
}

.project-card-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  margin-bottom: 6px;
}

.project-card-name {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-card-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-night);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Vote buttons */
.vote-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--color-cream);
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 2px solid var(--color-black);
  background: var(--color-white);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.16s var(--ease-out);
  box-shadow: 2px 2px 0 var(--color-black);
}

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

.vote-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--color-black);
}

.vote-btn.like-btn.active {
  background: var(--color-green);
  color: var(--color-white);
}

.vote-btn.dislike-btn.active {
  background: var(--color-red);
  color: var(--color-white);
}

.vote-icon {
  font-size: 1rem;
}

.vote-count {
  font-size: 0.85rem;
}

.modal-vote-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 3px solid var(--color-black);
}

.modal-vote-buttons {
  justify-content: center;
  border-top: none;
  padding-top: 0;
}

.modal-vote-buttons .vote-btn {
  padding: 10px 20px;
  font-size: 1rem;
}

/* Ideas section */
.ideas-container {
  margin-top: 20px;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.idea-category-card {
  background: var(--color-white);
  border: 3px solid var(--color-black);
  padding: 20px;
  box-shadow: 4px 4px 0 var(--color-blue);
  transition: all 0.16s var(--ease-out);
}

.idea-category-card:hover {
  box-shadow: 6px 6px 0 var(--color-blue);
  transform: translate(-2px, -2px);
}

.idea-category-card:nth-child(even) {
  box-shadow: 4px 4px 0 var(--color-green);
}

.idea-category-card:nth-child(even):hover {
  box-shadow: 6px 6px 0 var(--color-green);
}

.idea-category-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-black);
  color: var(--color-blue);
}

.idea-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.idea-item {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-cream);
  color: var(--color-night);
  position: relative;
  padding-left: 20px;
}

.idea-item:last-child {
  border-bottom: none;
}

.idea-item::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-weight: 700;
}

.affiliate-badge {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-black);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 2px 8px;
  border: 2px solid var(--color-black);
  box-shadow: 2px 2px 0 var(--color-black);
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-night);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-green);
  cursor: pointer;
  flex-shrink: 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-cream);
  border: 4px solid var(--color-black);
  box-shadow: 8px 8px 0 var(--color-red);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 20px 24px;
  border-bottom: 4px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-close {
  background: var(--color-red);
  color: var(--color-white);
  border: 3px solid var(--color-black);
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s var(--ease-out);
}

.modal-close:hover {
  background: var(--color-yellow);
  color: var(--color-black);
}

.modal-body {
  padding: 24px;
}

.modal-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border: 3px solid var(--color-black);
  margin-bottom: 16px;
}

.modal-field {
  margin-bottom: 12px;
}

.modal-field-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  margin-bottom: 4px;
}

.modal-field-value {
  font-size: 1rem;
  line-height: 1.5;
}

.modal-field-value a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.form-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 3px solid var(--color-black);
  background: var(--color-white);
  transition: all 0.16s var(--ease-out);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 4px 4px 0 var(--color-blue);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-file {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Submit / Application page */
.submit-page {
  max-width: 600px;
  margin: 0 auto;
}

.submit-page .form-card {
  background: var(--color-white);
  border: 4px solid var(--color-black);
  padding: 32px;
  box-shadow: 6px 6px 0 var(--color-green);
}

/* Admin */
.admin-section {
  margin-bottom: 40px;
}

.admin-section h2 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: var(--color-red);
  color: var(--color-white);
  border: 3px solid var(--color-black);
  display: inline-block;
}

.admin-list {
  display: grid;
  gap: 16px;
}

.admin-card {
  background: var(--color-white);
  border: 3px solid var(--color-black);
  padding: 20px;
  box-shadow: 4px 4px 0 var(--color-yellow);
}

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

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-card-actions {
  display: flex;
  gap: 8px;
}

.admin-card-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-night);
}

.admin-card-body p {
  margin-bottom: 6px;
}

.admin-card-body strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.admin-card-image {
  max-width: 200px;
  max-height: 150px;
  border: 2px solid var(--color-black);
  margin-top: 8px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 2px solid var(--color-black);
}

.badge-pending { background: var(--color-yellow); }
.badge-approved { background: var(--color-green); color: var(--color-white); }
.badge-rejected { background: var(--color-red); color: var(--color-white); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-night);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 20px 0;
  border-top: 4px solid var(--color-blue);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Success message */
.success-msg {
  background: var(--color-green);
  color: var(--color-white);
  border: 3px solid var(--color-black);
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 4px 4px 0 var(--color-black);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: 2px solid transparent;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 5px;
  border-radius: 0;
  transition: all 0.16s var(--ease-out);
  line-height: 1;
  color: var(--color-yellow);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  border-color: var(--color-yellow);
  transform: scale(1.2);
}

.lang-btn.active {
  border-color: var(--color-yellow);
  background: var(--color-yellow);
  color: var(--color-black);
  transform: scale(1.15);
}

/* Content area for SPA */
.content-area {
  margin-top: 60px;
  padding-bottom: 40px;
}

.content-area:empty {
  display: none;
}

/* RTL Support */
[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-title span {
  box-shadow: -6px 6px 0 var(--color-red);
  transform: rotate(1deg);
}

[dir="rtl"] .btn-blue,
[dir="rtl"] .btn-red,
[dir="rtl"] .btn-green,
[dir="rtl"] .btn-yellow {
  box-shadow: -6px 6px 0 var(--color-black);
}

[dir="rtl"] .btn-blue:hover,
[dir="rtl"] .btn-red:hover,
[dir="rtl"] .btn-green:hover,
[dir="rtl"] .btn-yellow:hover {
  transform: translate(-3px, 3px);
  box-shadow: -3px 3px 0 var(--color-black);
}

[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 40px;
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 15px;
}

[dir="rtl"] .timeline-item::before {
  left: auto;
  right: -33px;
}

[dir="rtl"] .project-card,
[dir="rtl"] .admin-card {
  box-shadow: -4px 4px 0 var(--color-red);
}

[dir="rtl"] .project-card:hover,
[dir="rtl"] .admin-card:hover {
  box-shadow: -6px 6px 0 var(--color-red);
  transform: translate(2px, -2px);
}

[dir="rtl"] .project-card:nth-child(even),
[dir="rtl"] .admin-card:nth-child(even) {
  box-shadow: -4px 4px 0 var(--color-blue);
}

[dir="rtl"] .project-card:nth-child(even):hover,
[dir="rtl"] .admin-card:nth-child(even):hover {
  box-shadow: -6px 6px 0 var(--color-blue);
}

[dir="rtl"] .page-title {
  box-shadow: -6px 6px 0 var(--color-red);
  transform: rotate(0.5deg);
}

[dir="rtl"] .form-card {
  box-shadow: -6px 6px 0 var(--color-green);
}

[dir="rtl"] .modal {
  box-shadow: -8px 8px 0 var(--color-red);
}

[dir="rtl"] .category-card:hover {
  transform: translate(-2px, 2px);
  box-shadow: 1px 1px 0 var(--color-black);
}

[dir="rtl"] .category-card.active {
  transform: translate(-2px, 2px);
}

[dir="rtl"] .success-msg {
  box-shadow: -4px 4px 0 var(--color-black);
}

[dir="rtl"] .hero-token {
  margin-left: 0;
  margin-right: 12px;
}

@media (max-width: 768px) {
  [dir="rtl"] .timeline {
    padding-left: 0;
    padding-right: 28px;
  }
  [dir="rtl"] .timeline::before {
    left: auto;
    right: 10px;
  }
  [dir="rtl"] .timeline-item::before {
    left: auto;
    right: -24px;
  }
}

@media (max-width: 480px) {
  [dir="rtl"] .timeline {
    padding-right: 22px;
  }
  [dir="rtl"] .timeline::before {
    right: 7px;
  }
  [dir="rtl"] .timeline-item::before {
    right: -20px;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    padding: 60px 16px;
  }
  .hero-title {
    font-size: clamp(1.2rem, 4vw, 2rem);
  }
  .hero-title span {
    padding: 6px 16px;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--color-red);
  }
  .hero-token {
    font-size: 1.4rem;
    padding: 10px 20px;
    border-width: 4px;
    box-shadow: 6px 6px 0 var(--color-red);
  }
  .hero-dollar {
    font-size: 1.4rem;
  }
  .timeline-title {
    font-size: 1.2rem;
  }
  .timeline-content {
    font-size: 0.95rem;
  }
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 0;
  }
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .logo {
    font-size: 0.6rem;
    text-align: center;
  }
  .lang-switcher {
    justify-content: center;
    gap: 4px;
  }
  .lang-btn {
    font-size: 1.2rem;
    padding: 6px 7px;
  }
  main {
    padding: 24px 0;
  }
  .container {
    padding: 0 12px;
  }
  .hero {
    padding: 40px 8px;
  }
  .hero-title {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    margin-bottom: 12px;
  }
  .hero-title span {
    padding: 6px 12px;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--color-red);
  }
  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 30px;
  }
  .hero-token {
    font-size: 1.1rem;
    padding: 8px 16px;
    border-width: 4px;
    box-shadow: 5px 5px 0 var(--color-red);
    margin: -20px auto 40px;
    letter-spacing: 0.06em;
  }
  .hero-dollar {
    font-size: 1.1rem;
  }
  .btn-group {
    gap: 14px;
  }
  .btn {
    min-width: 160px;
    padding: 14px 24px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }
  .btn-small {
    padding: 10px 18px;
    font-size: 0.75rem;
  }
  .page-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 24px;
    padding: 10px 18px;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--color-red);
  }
  .content-area {
    margin-top: 36px;
  }
  .timeline {
    padding-left: 28px;
  }
  .timeline::before {
    left: 10px;
    width: 3px;
  }
  .timeline-item {
    margin-bottom: 24px;
    padding: 16px;
    border-width: 2px;
  }
  .timeline-item::before {
    left: -24px;
    width: 12px;
    height: 12px;
    top: 20px;
  }
  .timeline-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }
  .timeline-content {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .directory-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
  }
  .category-card {
    font-size: 0.7rem;
    padding: 10px 12px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--color-black);
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-card-image {
    height: 150px;
  }
  .project-card-body {
    padding: 12px;
  }
  .project-card-name {
    font-size: 1rem;
  }
  .project-card-desc {
    font-size: 0.85rem;
  }
  .modal-overlay {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
  }
  .modal {
    max-height: 85vh;
    border-width: 3px;
    box-shadow: 5px 5px 0 var(--color-red);
  }
  .modal-header {
    padding: 14px 16px;
    border-bottom-width: 3px;
  }
  .modal-header h2 {
    font-size: 1rem;
  }
  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-image {
    max-height: 200px;
  }
  .submit-page .form-card {
    padding: 20px;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--color-green);
  }
  .form-input,
  .form-textarea,
  .form-select {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  .form-label {
    font-size: 0.75rem;
  }
  .admin-section h2 {
    font-size: 1.1rem;
    padding: 6px 12px;
  }
  .admin-card {
    padding: 14px;
  }
  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .admin-card-title {
    font-size: 0.95rem;
  }
  .admin-card-actions {
    width: 100%;
  }
  .admin-card-actions .btn {
    flex: 1;
    min-width: auto;
  }
  .admin-card-image {
    max-width: 100%;
    max-height: 200px;
  }
  .footer {
    font-size: 0.65rem;
    padding: 16px 0;
  }
  .success-msg {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  .empty-state {
    padding: 40px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 0.5rem;
  }
  .lang-btn {
    font-size: 1.1rem;
    padding: 5px 6px;
  }
  .hero {
    padding: 30px 4px;
  }
  .hero-title {
    font-size: clamp(0.85rem, 3vw, 1.2rem);
  }
  .hero-title span {
    padding: 5px 10px;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--color-red);
  }
  .hero-subtitle {
    font-size: 0.7rem;
    margin-bottom: 24px;
    letter-spacing: 0.06em;
  }
  .hero-token {
    font-size: 0.9rem;
    padding: 6px 12px;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--color-red);
    margin: -12px auto 30px;
    letter-spacing: 0.04em;
  }
  .hero-dollar {
    font-size: 0.9rem;
  }
  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn {
    width: 100%;
    max-width: 280px;
    min-width: auto;
    padding: 14px 20px;
    font-size: 0.8rem;
  }
  .btn-small {
    width: auto;
    max-width: none;
  }
  .page-title {
    font-size: clamp(1.1rem, 4.5vw, 1.6rem);
    padding: 8px 14px;
    margin-bottom: 20px;
  }
  .content-area {
    margin-top: 28px;
  }
  .timeline {
    padding-left: 22px;
  }
  .timeline::before {
    left: 7px;
  }
  .timeline-item {
    padding: 12px;
    margin-bottom: 18px;
  }
  .timeline-item::before {
    left: -20px;
    width: 10px;
    height: 10px;
  }
  .timeline-title {
    font-size: 0.95rem;
  }
  .timeline-content {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .category-card {
    font-size: 0.65rem;
    padding: 8px 8px;
    letter-spacing: 0;
  }
  .project-card-image {
    height: 130px;
  }
  .project-card-body {
    padding: 10px;
  }
  .project-card-name {
    font-size: 0.9rem;
  }
  .project-card-desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
  .vote-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  .vote-icon {
    font-size: 0.9rem;
  }
  .vote-count {
    font-size: 0.75rem;
  }
  .modal-vote-buttons .vote-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  .ideas-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .idea-category-card {
    padding: 16px;
  }
  .idea-category-title {
    font-size: 0.9rem;
  }
  .idea-item {
    font-size: 0.85rem;
  }
  .modal-overlay {
    padding: 6px;
    padding-top: 10px;
  }
  .modal-header {
    padding: 12px 14px;
  }
  .modal-header h2 {
    font-size: 0.9rem;
  }
  .modal-body {
    padding: 14px;
  }
  .submit-page .form-card {
    padding: 16px;
  }
  .admin-card {
    padding: 12px;
  }
  .admin-card-title {
    font-size: 0.85rem;
  }
  .admin-card-body {
    font-size: 0.8rem;
  }
  .footer {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero animations */
.hero {
  animation: fadeIn 0.8s ease-out;
}

.hero-title {
  animation: fadeInDown 0.8s ease-out 0.1s both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-token {
  animation: scaleIn 0.6s ease-out 0.5s both;
}

.btn-group {
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

/* Header animation */
.header {
  animation: fadeInDown 0.5s ease-out;
}

/* Content area animations */
.content-area {
  animation: fadeIn 0.6s ease-out;
}

/* Timeline animations */
.timeline-item {
  animation: fadeInUp 0.6s ease-out both;
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-item:nth-child(4) { animation-delay: 0.2s; }
.timeline-item:nth-child(5) { animation-delay: 0.25s; }
.timeline-item:nth-child(6) { animation-delay: 0.3s; }
.timeline-item:nth-child(7) { animation-delay: 0.35s; }
.timeline-item:nth-child(8) { animation-delay: 0.4s; }
.timeline-item:nth-child(9) { animation-delay: 0.45s; }
.timeline-item:nth-child(10) { animation-delay: 0.5s; }

/* Category cards animations */
.category-card {
  animation: fadeInUp 0.5s ease-out both;
}

.category-card:nth-child(1) { animation-delay: 0.02s; }
.category-card:nth-child(2) { animation-delay: 0.04s; }
.category-card:nth-child(3) { animation-delay: 0.06s; }
.category-card:nth-child(4) { animation-delay: 0.08s; }
.category-card:nth-child(5) { animation-delay: 0.1s; }
.category-card:nth-child(6) { animation-delay: 0.12s; }
.category-card:nth-child(7) { animation-delay: 0.14s; }
.category-card:nth-child(8) { animation-delay: 0.16s; }
.category-card:nth-child(9) { animation-delay: 0.18s; }
.category-card:nth-child(10) { animation-delay: 0.2s; }
.category-card:nth-child(11) { animation-delay: 0.22s; }
.category-card:nth-child(12) { animation-delay: 0.24s; }

/* Project cards animations */
.project-card {
  animation: fadeInUp 0.6s ease-out both;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }

/* Idea cards animations */
.idea-category-card {
  animation: fadeInUp 0.6s ease-out both;
}

.idea-category-card:nth-child(1) { animation-delay: 0.05s; }
.idea-category-card:nth-child(2) { animation-delay: 0.1s; }
.idea-category-card:nth-child(3) { animation-delay: 0.15s; }
.idea-category-card:nth-child(4) { animation-delay: 0.2s; }
.idea-category-card:nth-child(5) { animation-delay: 0.25s; }
.idea-category-card:nth-child(6) { animation-delay: 0.3s; }

/* Modal animations */
.modal-overlay.active {
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active .modal {
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Page title animation */
.page-title {
  animation: fadeInDown 0.6s ease-out;
}

/* Form animations */
.form-card {
  animation: fadeInUp 0.6s ease-out;
}

.form-group {
  animation: fadeInUp 0.5s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
.form-group:nth-child(7) { animation-delay: 0.4s; }

/* Enhanced transitions */
.btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover {
  transition: all 0.2s ease-out;
}

.category-card {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.idea-category-card {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vote-btn {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-btn {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-input,
.form-textarea,
.form-select {
  transition: all 0.3s ease-out;
}

.modal-close {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Footer animation */
.footer {
  animation: fadeIn 0.8s ease-out 1s both;
}

/* Admin cards animation */
.admin-card {
  animation: fadeInUp 0.5s ease-out both;
}

.admin-card:nth-child(1) { animation-delay: 0.05s; }
.admin-card:nth-child(2) { animation-delay: 0.1s; }
.admin-card:nth-child(3) { animation-delay: 0.15s; }
.admin-card:nth-child(4) { animation-delay: 0.2s; }
.admin-card:nth-child(5) { animation-delay: 0.25s; }

/* Success message animation */
.success-msg {
  animation: fadeInDown 0.5s ease-out;
}

/* Empty state animation */
.empty-state {
  animation: fadeIn 0.8s ease-out;
}

/* Directory header animation */
.directory-header {
  animation: fadeInDown 0.6s ease-out;
}

/* Categories grid animation */
.categories-grid {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

/* Projects grid animation */
.projects-grid {
  animation: fadeIn 0.6s ease-out 0.3s both;
}

/* Ideas container animation */
.ideas-container {
  animation: fadeIn 0.6s ease-out;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}
