.error-code {
    background: #2e55fa;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
    color: snow;
}

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

.message-login {
    display: flex;
    justify-content: center;
}

.message-login p {
    background-color: #2e55fa;
    color: snow;
    width: 50%;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
}

.logo-type {
    text-align: center;
    font-size: 32px;
    font-family: cursive;
}


.self-po {
    position: relative;
    display: inline-block;
    border: 2px solid #2e55fa;
    outline-offset: 3px;
    border-radius: 100%;
    width: 150px;
    height: 150px;
}


/* چرا ما؟ Section */
.why-us {
    background: #f9fafc;
    padding: 80px 0;
    text-align: center;
    direction: rtl;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 50px;
    position: relative;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tile {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: default;
}

.tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tile .icon {
    font-size: 38px;
    color: #007bff;
    margin-bottom: 15px;
}

.tile h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.tile p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}


/* پایه کارت */
.post-bx.wrapped {
  position: relative;
  overflow: visible;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(22,37,84,0.06);
}

/* مشترک برای همه نوارها */
.ribbon-wrap {
  position: absolute;
  z-index: 50; /* اگر با پلاگین تداخل داشت عدد بزرگتر بذار */
  pointer-events: none; /* تا کلیک‌ها رو مسدود نکنه */
  transform-origin: center;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

/* ---- بالای باکس: روبان با متن ---- */
.ribbon-top {
  top: 17px;
  left: -14px;
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  transform: rotate(-36deg);
  background: linear-gradient(135deg,#f43f5e 0%, #d93657 100%);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* متن داخل روبان بالایی */
.ribbon-top .ribbon-text {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  pointer-events: none;
}



/* ریسپانسیو: موبایل اندازه‌ها رو جمع‌تر کن */
@media (max-width: 576px) {
  .ribbon-top { top: 17px; left: -8px; height: 36px; padding: 0 10px; transform: rotate(-36deg); }
  .ribbon-top .ribbon-text { font-size: 12px; }
  .ribbon-right, .ribbon-left { display: none; } /* برای موبایل فقط باند بالایی کفایت می‌کنه */
  .ribbon-bottom { display: none; }
}

/* اگر خواستی رنگ‌های دیگر داشته باشی */
.ribbon-top.ribbon--gold { background: linear-gradient(135deg,#f6d365,#fda085); color:#4a2f00; }
.ribbon-right.ribbon--gold,
.ribbon-bottom.ribbon--gold,
.ribbon-left.ribbon--gold { background: linear-gradient(180deg,#f6d365,#fda085); }

/* اطمینان از نمایش روی پلاگین‌ها */
.post-bx.wrapped { z-index: 1; }
.post-bx.wrapped .ribbon-wrap { z-index: 60; }
