* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #262626;
  direction: rtl;
  line-height: 1.5;
  padding: 0.3rem;
  margin: 0;
  min-width: 120px;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0.5rem;
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

/* استایل‌های مدرن برای پروفایل */
.modern-profile-container {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin-bottom: 0.5rem;
  position: relative;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-profile-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent
  );
}

.modern-profile-header {
  padding: 1rem;
  color: white;
  min-width: 0;
  width: 100%;
}

.profile-avatar-section {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: 100%;
}

/* بخش جدید برای توضیحات پروفایل */
.profile-description-section {
  width: 100%;
  margin-bottom: 1rem;
  min-width: 0;
}

.profile-description-container {
  margin-top: 0;
  width: 100%;
}

.profile-description-wrapper {
  position: relative;
  width: 100%;
}

.profile-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  word-break: break-word;
  margin-bottom: 0;
  max-height: 3.6em;
  overflow: hidden;
  transition: max-height 0.4s ease;
  width: 100%;
}

.profile-description.expanded {
  max-height: 500px;
}

.read-more-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
  padding: 0.4rem 0 0 0;
  margin: 0.4rem 0 0 0;
  display: block;
  width: 100%;
  text-align: right;
}

.read-more-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* استایل استوری جایگزین آواتار */
.profile-avatar {
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  min-width: 50px;
}

.story-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: story-pulse 2s infinite;
}

@keyframes story-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.profile-pic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-pic i {
  font-size: 20px;
  color: white;
}

.story-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ff3040;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-indicator i {
  color: white;
  font-size: 7px;
}

.profile-info-section {
  flex: 1;
  min-width: 0;
  min-width: 120px;
}

.profile-name-container {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modern-profile-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}

/* استایل اعلان سفارشی */
.custom-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  left: 20px;
  background: #4299e1;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10010;
  transform: translateY(-100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.custom-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.notification-icon {
  font-size: 20px;
  margin-left: 10px;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 480px) {
  .custom-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 12px 15px;
  }
  
  .notification-icon {
    font-size: 18px;
    margin-left: 8px;
  }
  
  .notification-message {
    font-size: 13px;
  }
}

/* استایل تگ‌لاین جدید */
.profile-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  word-break: break-word;
}

/* استایل‌های مربوط به لینک سایت و نمایش تعداد لینک‌های بیشتر */
.profile-url-container {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.profile-url {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: opacity 0.3s ease;
  word-break: break-all;
  line-height: 1.3;
  gap: 9px;
  cursor: pointer;
}

.profile-url:hover {
  opacity: 0.8;
}

.link-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-url i {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
}

/* استایل برای متن آدرس همراه با تعداد لینک‌ها */
.url-text {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
}

/* استایل برای حالت LTR */
body:not([dir="rtl"]) .profile-url {
  flex-direction: row-reverse;
}

body:not([dir="rtl"]) .profile-url .url-text {
  text-align: left;
}

.modern-profile-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.4rem;
  flex-wrap: wrap;
  width: 100%;
}

.modern-stat {
  flex: 1;
  min-width: 60px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  word-break: break-word;
  text-align: center;
}

.modern-stat-icon {
  font-size: 14px;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.modern-stat-number {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-top: 0.1rem;
  color: #fff;
  line-height: 1.2;
}

.modern-profile-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.modern-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 0;
}

.modern-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.modern-btn-content {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.modern-btn i:first-child {
  margin-left: 0.5rem;
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.modern-btn-arrow {
  font-size: 11px;
  opacity: 0.7;
  flex-shrink: 0;
}

.modern-btn-text {
  flex: 1;
  text-align: right;
  word-break: break-word;
  line-height: 1.3;
}

.profile-footer {
  margin-top: 1rem;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  min-width: 0;
  width: 100%;
}

.footer-left {
  text-align: right;
  flex: 1;
  min-width: 100px;
}

.footer-right {
  text-align: left;
  flex: 1;
  min-width: 100px;
}

.profile-footer a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  word-break: break-word;
}

.profile-footer a:hover {
  opacity: 0.8;
}

.credits {
  font-size: 8px;
  opacity: 0.7;
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* استایل‌های مربوط به مودال تماس با ما */
.loopi-modal {
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.loopi-modal.open {
  transform: translateY(0);
}

.loopi-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.loopi-overlay.active {
  display: block;
}

/* جلوگیری از اسکرول هنگام باز بودن مودال */
body.modal-open {
  overflow: hidden;
}

/* تنظیمات هدر مودال با فاصله مناسب از خط تیره */
.loopi-modal-header {
  position: relative;
  padding: 28px 20px 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  min-height: 60px;
}

.loopi-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  text-align: center;
  flex: 1;
  margin: 8px 10px 4px 10px;
  line-height: 1.4;
  position: relative;
  top: 2px;
}

/* استایل‌های مربوط به drag handle */
.drag-handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 0 auto;
  cursor: grab;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.drag-handle:active {
  cursor: grabbing;
}

/* استایل برای حالت dragging */
.loopi-modal.dragging {
  transition: none;
}

.loopi-modal.dragging .loopi-body-wrapper {
  overflow: hidden;
}

/* تنظیمات دکمه‌های بستن در هدر */
.loopi-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.loopi-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.loopi-header-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* استایل‌های ویور استوری */
.story-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.story-content {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
}

.story-progress {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  z-index: 1001;
}

.story-progress-bar {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.story-header {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  padding: 0 15px;
  display: flex;
  align-items: center;
  z-index: 1001;
}

.story-profile {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 10px;
}

.story-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-user-info {
  flex: 1;
  color: white;
}

.story-username {
  font-weight: 600;
  font-size: 14px;
}

.story-time {
  font-size: 12px;
  opacity: 0.8;
}

.story-close {
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.story-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  cursor: pointer;
  z-index: 1001;
}

.story-nav.prev {
  left: 0;
}

.story-nav.next {
  right: 0;
}

/* رسپانسیو برای دسکتاپ */
@media (min-width: 1025px) {
  body {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .container {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .modern-profile-header {
    padding: 1.5rem;
  }
  
  .profile-avatar {
    min-width: 70px;
  }
  
  .story-ring {
    width: 70px;
    height: 70px;
  }
  
  .profile-pic {
    width: 66px;
    height: 66px;
  }
  
  .profile-pic i {
    font-size: 28px;
  }
  
  .modern-profile-name {
    font-size: 20px;
  }
  
  .profile-tagline {
    font-size: 14px;
  }
  
  .profile-url {
    font-size: 13px;
    gap: 9px;
  }
  
  .profile-url i {
    font-size: 10px;
  }
  
  .profile-description {
    font-size: 13px;
  }
  
  .read-more-btn {
    font-size: 12px;
    padding: 0.5rem 0 0 0;
    margin: 0.5rem 0 0 0;
  }
  
  .modern-profile-stats {
    gap: 0.6rem;
  }
  
  .modern-stat {
    padding: 0.8rem 0.6rem;
    font-size: 11px;
    min-width: 70px;
  }
  
  .modern-stat-icon {
    font-size: 16px;
  }
  
  .modern-stat-number {
    font-size: 16px;
  }
  
  .modern-btn {
    font-size: 14px;
    padding: 0.9rem 1rem;
  }
  
  .modern-btn i:first-child {
    font-size: 16px;
  }
  
  /* تنظیمات مودال برای دسکتاپ */
  .loopi-modal-header {
    padding: 32px 20px 18px 20px;
  }
  
  .drag-handle {
    top: 14px;
  }
}

/* رسپانسیو برای تبلت */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    padding: 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .container {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .modern-profile-header {
    padding: 1.2rem;
  }
  
  .profile-avatar {
    min-width: 60px;
  }
  
  .story-ring {
    width: 60px;
    height: 60px;
  }
  
  .profile-pic {
    width: 56px;
    height: 56px;
  }
  
  .profile-pic i {
    font-size: 24px;
  }
  
  .modern-profile-name {
    font-size: 18px;
  }
  
  .profile-url {
    gap: 9px;
  }
  
  .read-more-btn {
    padding: 0.4rem 0 0 0;
    margin: 0.4rem 0 0 0;
  }
  
  .modern-profile-stats {
    gap: 0.5rem;
  }
  
  .modern-stat {
    padding: 0.7rem 0.5rem;
    min-width: 65px;
  }
  
  .modern-btn {
    padding: 0.8rem 0.9rem;
  }
}

/* رسپانسیو برای موبایل معمولی */
@media (max-width: 768px) {
  body {
    padding: 0.4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .modern-profile-header {
    padding: 0.8rem;
  }
  
  .profile-avatar-section {
    gap: 0.6rem;
    margin-bottom: 0.6rem;
  }
  
  .profile-tagline {
    font-size: 12px;
  }
  
  .profile-url {
    gap: 9px;
    font-size: 11px;
  }
  
  .profile-url i {
    font-size: 9px;
  }
  
  .profile-description-section {
    margin-bottom: 0.8rem;
  }
  
  .read-more-btn {
    padding: 0.3rem 0 0 0;
    margin: 0.3rem 0 0 0;
  }
  
  .modern-profile-stats {
    margin-bottom: 0.8rem;
    gap: 0.3rem;
  }
  
  .modern-stat {
    min-width: 55px;
    padding: 0.5rem 0.3rem;
  }
  
  .modern-profile-buttons {
    gap: 0.4rem;
  }
}

/* برای صفحات کوچک - زیر 360px */
@media (max-width: 360px) {
  body {
    padding: 0.3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .modern-profile-header {
    padding: 0.7rem;
  }
  
  .profile-avatar-section {
    gap: 0.5rem;
  }
  
  .profile-avatar {
    min-width: 45px;
  }
  
  .story-ring {
    width: 45px;
    height: 45px;
  }
  
  .profile-pic {
    width: 41px;
    height: 41px;
  }
  
  .profile-pic i {
    font-size: 18px;
  }
  
  .modern-profile-name {
    font-size: 15px;
  }
  
  .profile-url {
    gap: 7px;
    font-size: 10px;
  }
  
  .modern-profile-stats {
    gap: 0.2rem;
  }
  
  .modern-stat {
    min-width: 50px;
    padding: 0.4rem 0.2rem;
    font-size: 9px;
  }
  
  .modern-stat-icon {
    font-size: 12px;
  }
  
  .modern-stat-number {
    font-size: 12px;
  }
  
  .modern-btn {
    padding: 0.6rem 0.7rem;
    font-size: 12px;
  }
  
  .modern-btn i:first-child {
    font-size: 13px;
    margin-left: 0.4rem;
  }
  
  /* تنظیمات مودال برای صفحات کوچک */
  .loopi-modal-header {
    padding: 26px 16px 14px 16px;
    min-height: 56px;
  }
  
  .loopi-header-title {
    font-size: 16px;
    margin: 6px 8px 3px 8px;
  }
  
  .drag-handle {
    top: 10px;
    width: 36px;
  }
}

/* برای صفحات بسیار کوچک - زیر 280px */
@media (max-width: 280px) {
  body {
    padding: 0.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-width: 120px;
  }
  
  .modern-profile-container {
    border-radius: 0.6rem;
  }
  
  .modern-profile-header {
    padding: 0.6rem;
  }
  
  .profile-avatar-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }
  
  .profile-info-section {
    width: 100%;
  }
  
  .profile-name-container {
    justify-content: center;
  }
  
  .profile-url-container {
    justify-content: center;
  }
  
  .profile-description-section {
    text-align: center;
  }
  
  .profile-url {
    gap: 5px;
    font-size: 9px;
  }
  
  .read-more-btn {
    padding: 0.3rem 0 0 0;
    margin: 0.3rem 0 0 0;
    text-align: center;
    font-size: 10px;
  }
  
  .modern-profile-stats {
    gap: 0.2rem;
  }
  
  .modern-stat {
    min-width: 45px;
    padding: 0.4rem 0.2rem;
    font-size: 8px;
  }
  
  .modern-stat-icon {
    font-size: 11px;
  }
  
  .modern-stat-number {
    font-size: 11px;
  }
  
  .modern-btn {
    padding: 0.5rem 0.6rem;
    font-size: 11px;
  }
  
  .modern-btn i:first-child {
    font-size: 12px;
    margin-left: 0.3rem;
  }
  
  .profile-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
    font-size: 9px;
  }
  
  .footer-left, .footer-right {
    text-align: center;
    width: 100%;
    min-width: auto;
  }
  
  .credits {
    font-size: 7px;
  }
  
  /* تنظیمات مودال برای صفحات بسیار کوچک */
  .loopi-modal-header {
    padding: 24px 12px 12px 12px;
    min-height: 52px;
  }
  
  .loopi-header-title {
    font-size: 15px;
    margin: 4px 6px 2px 6px;
  }
  
  .drag-handle {
    top: 8px;
    width: 32px;
  }
}

/* برای صفحات فوق العاده کوچک - زیر 200px */
@media (max-width: 200px) {
  body {
    padding: 0.15rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-width: 100px;
  }
  
  .modern-profile-header {
    padding: 0.4rem;
  }
  
  .profile-avatar {
    min-width: 40px;
  }
  
  .story-ring {
    width: 40px;
    height: 40px;
  }
  
  .profile-pic {
    width: 36px;
    height: 36px;
  }
  
  .profile-pic i {
    font-size: 16px;
  }
  
  .modern-profile-name {
    font-size: 14px;
  }
  
  .profile-url {
    gap: 4px;
    font-size: 9px;
  }
  
  .profile-description {
    font-size: 9px;
  }
  
  .read-more-btn {
    padding: 0.2rem 0 0 0;
    margin: 0.2rem 0 0 0;
    font-size: 8px;
  }
  
  .modern-profile-stats {
    flex-direction: column;
    gap: 0.15rem;
  }
  
  .modern-stat {
    min-width: auto;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    font-size: 7px;
  }
  
  .modern-stat-icon {
    font-size: 10px;
    margin-bottom: 0;
    margin-left: 0.3rem;
  }
  
  .modern-stat-number {
    font-size: 10px;
  }
  
  .modern-btn {
    padding: 0.4rem 0.5rem;
    font-size: 10px;
    flex-direction: column;
    text-align: center;
    gap: 0.2rem;
  }
  
  .modern-btn-content {
    flex-direction: column;
    gap: 0.2rem;
  }
  
  .modern-btn i:first-child {
    margin-left: 0;
    font-size: 11px;
  }
  
  .modern-btn-arrow {
    display: none;
  }
  
  .profile-footer {
    font-size: 8px;
    gap: 0.4rem;
  }
  
  .credits {
    font-size: 6px;
  }
}

/* برای صفحات فوق العاده کوچک - زیر 150px */
@media (max-width: 150px) {
  body {
    padding: 0.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-width: 80px;
  }
  
  .modern-profile-header {
    padding: 0.3rem;
  }
  
  .profile-avatar {
    min-width: 35px;
  }
  
  .story-ring {
    width: 35px;
    height: 35px;
  }
  
  .profile-pic {
    width: 31px;
    height: 31px;
  }
  
  .profile-pic i {
    font-size: 14px;
  }
  
  .story-indicator {
    width: 10px;
    height: 10px;
    top: -1px;
    right: -1px;
  }
  
  .story-indicator i {
    font-size: 5px;
  }
  
  .modern-profile-name {
    font-size: 12px;
  }
  
  .profile-url {
    gap: 3px;
    font-size: 8px;
  }
  
  .profile-description {
    font-size: 8px;
  }
  
  .read-more-btn {
    padding: 0.15rem 0 0 0;
    margin: 0.15rem 0 0 0;
    font-size: 7px;
  }
  
  .modern-stat {
    padding: 0.25rem 0.4rem;
    font-size: 6px;
  }
  
  .modern-stat-icon {
    font-size: 9px;
  }
  
  .modern-stat-number {
    font-size: 9px;
  }
  
  .modern-btn {
    padding: 0.3rem 0.4rem;
    font-size: 9px;
  }
  
  .modern-btn i:first-child {
    font-size: 10px;
  }
  
  .profile-footer {
    font-size: 7px;
    gap: 0.3rem;
  }
  
  .credits {
    font-size: 5px;
  }
}

/* حالت landscape در موبایل */
@media (max-height: 500px) and (orientation: landscape) {
  body {
    padding: 0.3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .modern-profile-header {
    padding: 0.6rem;
  }
  
  .profile-avatar-section {
    margin-bottom: 0.5rem;
  }
  
  .profile-description-section {
    margin-bottom: 0.6rem;
  }
  
  .read-more-btn {
    padding: 0.2rem 0 0 0;
    margin: 0.2rem 0 0 0;
  }
  
  .modern-profile-stats {
    margin-bottom: 0.6rem;
  }
  
  .modern-profile-buttons {
    gap: 0.3rem;
  }
  
  .modern-btn {
    padding: 0.5rem 0.6rem;
  }
}
