:root {
  color-scheme: light;
}

html,
body {
  direction: rtl !important;
  text-align: right !important;
  font-family: Tahoma, Vazirmatn, "Segoe UI", Arial, sans-serif !important;
  background: #f7f8fb !important;
}

body,
input,
button,
textarea,
select {
  font-family: Tahoma, Vazirmatn, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

a {
  text-decoration: none !important;
}

header,
nav,
main,
section,
form,
[class*="mantine"] {
  direction: rtl;
}

svg {
  flex-shrink: 0;
}

input,
textarea {
  text-align: right !important;
}

button,
[role="button"] {
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.mantine-Container-root {
  max-width: 760px !important;
}

.mantine-Title-root {
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

.mantine-Text-root {
  line-height: 1.9 !important;
}

.mantine-Paper-root,
.mantine-Card-root {
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

.mantine-Button-root {
  min-height: 42px !important;
}

.mantine-TextInput-label,
.mantine-PasswordInput-label,
.mantine-Textarea-label,
.mantine-Select-label,
.mantine-NumberInput-label,
.mantine-DateInput-label {
  margin-bottom: 6px !important;
  font-weight: 700 !important;
}

.mantine-Input-input,
.mantine-PasswordInput-input {
  min-height: 42px !important;
  border-radius: 8px !important;
}

.mantine-Dropzone-root {
  border-radius: 8px !important;
  border-style: solid !important;
  background: #ffffff !important;
}

img[src*="logo"],
img[alt*="Pingvin"],
a[href*="github.com/stonith404"] {
  display: none !important;
}

.mantine-Group-root {
  direction: rtl;
}

.mantine-Menu-dropdown,
.mantine-Modal-content,
.mantine-Popover-dropdown {
  direction: rtl !important;
  text-align: right !important;
}

body:has(.meltcraft-simple-home) {
  background: #f5f7fb !important;
}

.meltcraft-simple-home {
  max-width: 820px;
  margin: 72px auto 40px;
  padding: 0 20px;
  color: #172033;
}

.meltcraft-simple-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 34px;
}

.meltcraft-simple-card h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.45;
  color: #111827;
}

.meltcraft-simple-card p {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 16px;
  line-height: 2;
}

.meltcraft-simple-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.meltcraft-simple-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #374151;
  font-size: 15px;
}

.meltcraft-simple-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4f46e5;
}

.meltcraft-simple-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.meltcraft-primary-action,
.meltcraft-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.meltcraft-primary-action {
  color: #ffffff !important;
  background: #4f46e5;
}

.meltcraft-secondary-action {
  color: #374151 !important;
  background: #eef2ff;
}

footer,
[role="contentinfo"] {
  display: none !important;
}

@media (max-width: 640px) {
  .mantine-Container-root {
    max-width: 100% !important;
    padding-inline: 14px !important;
  }

  .mantine-Title-root {
    font-size: 24px !important;
  }

  .meltcraft-simple-home {
    margin-top: 34px;
    padding: 0 14px;
  }

  .meltcraft-simple-card {
    padding: 24px;
  }

  .meltcraft-simple-card h1 {
    font-size: 26px;
  }
}
