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

    html{
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    body{
      font-family: 'Cairo', Arial, sans-serif;
      background: #f3f3f1;
      color: #1f2933;
      direction: rtl;
    }

    a{
      color: inherit;
      text-decoration: none;
    }

    .hidden{
      display: none !important;
    }

    .myads-page{
      width: min(1060px, calc(100% - 32px));
      margin: 24px auto 46px;
    }

    .myads-summary-card,
.myads-panel{
      background: #fff;
      border: 1px solid #e4e4df;
      border-radius: 4px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    }

    .myads-summary-card{
      min-height: 180px;
      padding: 28px 28px 18px;
      margin-bottom: 14px;
    }

    .myads-main-row{
      display: grid;
      grid-template-columns: 112px minmax(0, 1fr);
      gap: 24px;
      align-items: center;
      direction: rtl;
    }

    .myads-avatar-wrap{
      width: 112px;
      height: 112px;
      border-radius: 50%;
      background: #d8d8d4;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .myads-avatar-wrap img{
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .myads-user-info{
      min-width: 0;
      text-align: right;
    }

    .myads-user-info h1{
      font-size: 28px;
      line-height: 1.25;
      color: #111827;
      font-weight: 800;
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .myads-count-line{
      color: #29313d;
      font-size: 15px;
      font-weight: 500;
    }

    .myads-meta-row{
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: flex-start;
      align-items: center;
      gap: 28px;
      width: 100%;
      margin-top: 24px;
      padding-top: 0;
      color: #29313d;
      font-size: 14px;
      border-top: 0;
      direction: rtl;
    }

    .myads-meta-item{
      display: inline-flex;
      align-items: center;
      gap: 7px;
      white-space: nowrap;
    }

    .myads-meta-item i{
      color: #2f3a44;
      font-size: 15px;
    }

    .myads-panel{
      padding: 28px 28px 34px;
      min-height: 420px;
    }

    .myads-panel-title{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 22px;
      padding-bottom: 18px;
      border-bottom: 1px solid #d8d8d3;
    }

    .myads-panel-title h2{
      font-size: 29px;
      line-height: 1.25;
      font-weight: 900;
      color: #111;
    }

    .myads-add-button{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 42px;
      padding: 0 18px;
      border-radius: 999px;
      border: 0;
      background: #0a65d8;
      color: #fff;
      font-family: inherit;
      font-size: 14px;
      font-weight: 900;
      cursor: pointer;
      white-space: nowrap;
    }

    .ads-grid{
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
    }

    .ad-card{
      position: relative;
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 22px;
      align-items: center;
      padding: 18px 0;
      border-bottom: 1px solid #e5e5df;
      cursor: pointer;
      transition: background-color .15s ease;
      direction: ltr;
      background: #fff;
    }

    .ad-card:hover{
      background: #fafafa;
    }

    .ad-card:last-child{
      border-bottom: 0;
    }

    .ad-card > img{
      width: 220px;
      height: 155px;
      object-fit: cover;
      background: #eef7f2;
      border: 1px solid #d7e6dc;
      border-radius: 2px;
      display: block;
    }

    .ad-status{
      position: absolute;
      left: 8px;
      top: 26px;
      background: #e7f7ed;
      color: #14833b;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      z-index: 2;
    }

    .ad-info{
      min-width: 0;
      text-align: right;
      direction: rtl;
    }

    .ad-title{
      font-size: 20px;
      line-height: 1.35;
      font-weight: 700;
      color: #111827;
      margin-bottom: 7px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding-left: 54px;
    }

    .ad-meta{
      font-size: 14px;
      color: #6b7280;
      margin-bottom: 10px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ad-price{
      font-size: 20px;
      font-weight: 900;
      color: #0a65d8;
      margin-bottom: 16px;
    }

    .ad-actions{
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-start;
    }

    .ad-actions button{
      min-height: 40px;
      padding: 0 18px;
      border: 1.6px solid #0a65d8;
      border-radius: 999px;
      background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
      color: #0a65d8;
      font-family: inherit;
      font-size: 13.5px;
      font-weight: 900;
      line-height: 1;
      display: inline-flex;
      flex-direction: row-reverse;
      align-items: center;
      justify-content: center;
      gap: 9px;
      text-decoration: none;
      cursor: pointer;
      white-space: nowrap;
      transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
      box-shadow: 0 3px 10px rgba(10, 101, 216, .10);
    }

    .ad-actions button:hover{
      background: #0a65d8;
      border-color: #0a65d8;
      color: #fff;
      transform: translateY(-1px);
      box-shadow: 0 7px 18px rgba(10, 101, 216, .22);
    }

    .ad-actions button:active{
      transform: translateY(0);
      box-shadow: 0 3px 9px rgba(10, 101, 216, .16);
    }

    .ad-actions .action-icon{
      width: 18px;
      height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 18px;
    }

    .ad-actions .action-icon svg{
      width: 18px;
      height: 18px;
      display: block;
      stroke: currentColor;
      stroke-width: 2.3;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
      transition: transform .16s ease;
    }

    .ad-actions button:hover .action-icon svg{
      transform: scale(1.08);
    }

    .ad-actions .btn-delete{
      color: #0a65d8;
      border-color: #0a65d8;
    }

    .ad-actions .btn-delete:hover{
      color: #fff;
      border-color: #0a65d8;
      background: #0a65d8;
    }

    .empty-state{
      min-height: 300px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 34px 16px 20px;
      color: #333;
    }

    .empty-illustration{
      width: 112px;
      height: 92px;
      margin-bottom: 22px;
      position: relative;
    }

    .empty-box{
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: 0;
      height: 50px;
      background: #d49b62;
      border-radius: 4px 4px 8px 8px;
    }

    .empty-box::before{
      content: '';
      position: absolute;
      left: 14px;
      right: 14px;
      top: 0;
      height: 18px;
      background: #b9824f;
      border-radius: 0 0 16px 16px;
    }

    .empty-ghost{
      position: absolute;
      left: 38px;
      top: 0;
      width: 42px;
      height: 62px;
      background: #eaf8fb;
      border-radius: 22px 22px 8px 8px;
      z-index: 2;
    }

    .empty-ghost::before,
.empty-ghost::after{
      content: '';
      position: absolute;
      top: 22px;
      width: 5px;
      height: 5px;
      background: #2f3a44;
      border-radius: 50%;
    }

    .empty-ghost::before{ left: 12px; }
    .empty-ghost::after{ right: 12px; }

    .empty-lock{
      position: absolute;
      left: 50%;
      bottom: 17px;
      transform: translateX(-50%);
      width: 18px;
      height: 18px;
      background: #f2d28c;
      border-radius: 50%;
      z-index: 3;
    }

    .empty-state h2{
      font-size: 19px;
      font-weight: 900;
      color: #111;
      margin-bottom: 8px;
    }

    .empty-state p{
      font-size: 15px;
      color: #777;
      line-height: 1.7;
      margin-bottom: 22px;
    }

    .add-ad-cta{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 156px;
      height: 48px;
      padding: 0 24px;
      border-radius: 999px;
      background: #0a65d8;
      color: #fff;
      font-size: 15px;
      font-weight: 900;
      border: 0;
      cursor: pointer;
      transition: filter .15s ease, transform .15s ease;
    }

    .add-ad-cta:hover{
      filter: brightness(.97);
      transform: translateY(-1px);
    }

    .loading-state{
      padding: 34px 10px;
      color: #777;
      text-align: center;
      font-weight: 700;
    }

    @media (max-width: 800px){
      .myads-page{
        width: 100%;
        margin: 0 auto 30px;
        padding: 12px;
      }

      .myads-summary-card,
.myads-panel{
        border-radius: 10px;
      }

      .myads-summary-card{
        padding: 18px 16px;
      }

      .myads-main-row{
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px;
      }

      .myads-avatar-wrap{
        width: 78px;
        height: 78px;
      }

      .myads-user-info h1{
        font-size: 22px;
      }

      .myads-count-line{
        font-size: 13px;
      }

      .myads-meta-row{
        gap: 12px;
        margin-top: 16px;
        padding-top: 0;
        font-size: 12px;
      }

      .myads-panel{
        padding: 20px 16px 26px;
      }

      .myads-panel-title{
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 16px;
      }

      .myads-panel-title h2{
        font-size: 23px;
      }

      .ad-card{
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        padding: 13px 0;
      }

      .ad-card > img{
        width: 112px;
        height: 88px;
      }

      .ad-status{
        left: 4px;
        top: 18px;
        font-size: 11px;
        padding: 3px 8px;
      }

      .ad-title{
        font-size: 16px;
        padding-left: 48px;
      }

      .ad-meta{
        font-size: 12px;
      }

      .ad-price{
        font-size: 16px;
        margin-bottom: 10px;
      }

      .ad-actions a,
.ad-actions button{
        min-height: 36px;
        padding: 0 12px;
        font-size: 12.5px;
        gap: 7px;
      }

      .ad-actions .action-icon,
.ad-actions .action-icon svg{
        width: 16px;
        height: 16px;
        flex-basis: 16px;
      }
    }
