/* from views/account/alerts.php */
.alerts-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.alert-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.alert-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.alert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alert-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 3rem;
}

.alert-content {
    flex: 1;
}

.alert-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.alert-content h3 a {
    color: #333;
    text-decoration: none;
}

.alert-content h3 a:hover {
    color: #007bff;
}

.alert-info {
    margin-bottom: 1rem;
}

.alert-info p {
    margin: 0.5rem 0;
    color: #666;
}

.alert-info .current-price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1rem;
}

.price-drop {
    color: #28a745 !important;
    font-weight: bold;
    margin-top: 0.5rem;
}

.alert-actions {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .alert-item {
        flex-direction: column;
    }
    
    .alert-image {
        width: 100%;
        height: 200px;
    }
}


/* from views/account/statistics.php */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s var(--ease);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--brand);
    line-height: 1.2;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.stats-table {
    margin-top: 2rem;
    background: var(--card);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.stats-table table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th {
    background: var(--bg-soft);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.stats-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.stats-table tr:hover {
    background: var(--bg-soft);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-approved {
    background: #10b981;
    color: white;
}

.status-pending {
    background: #f59e0b;
    color: white;
}

.status-rejected {
    background: #ef4444;
    color: white;
}

@media (max-width: 768px) {
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-table {
        font-size: 0.9rem;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 0.75rem 0.5rem;
    }
}


/* from views/boost/index.php */
.boost-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.boost-package {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s var(--ease);
}

.boost-package:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--brand);
}

.featured-package {
    border-color: var(--brand);
    background: linear-gradient(135deg, var(--card) 0%, rgba(79, 70, 229, 0.05) 100%);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.package-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
}

.badge-popular {
    background: var(--brand);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.package-price {
    margin: 1.5rem 0;
    text-align: center;
}

.package-price .amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--brand);
    display: block;
}

.package-price .duration {
    color: var(--muted);
    font-size: 0.9rem;
}

.package-description {
    color: var(--muted);
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.package-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.package-actions .btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

.listing-preview {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border-left: 4px solid var(--brand);
}

.boost-info {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
}

.boost-info ul {
    list-style: none;
    padding: 0;
}

.boost-info li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.boost-info li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .boost-packages {
        grid-template-columns: 1fr;
    }
}
/* ===== TONMR Universal Responsive Master Patch ===== */

/* 0) Baza: daşmaların əsas düşməni */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ overflow-x:hidden !important; }

/* 1) Media elementlər ekranı yarıb çıxmasın */
img,video,iframe,canvas,svg{ max-width:100% !important; height:auto !important; }

/* 2) Uzun söz/link/telefon nömrəsi qırılsın (admin cədvəldə çox olur) */
p,li,a,span,div,h1,h2,h3,h4,td,th{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* 3) Flex/grid uşaqlarında daşma problemi (çox kritik!) */
.flex > *, .row > *, [style*="display:flex"] > *{
  min-width:0; /* bu olmadan mobil çox vaxt daşır */
}

/* 4) Mobil/tablet: bütün TABLE-lar öz içində scroll olsun (admin üçün həyat qurtarır) */
@media (max-width: 992px){
  table{
    display:block !important;
    max-width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }
  th,td{ white-space:nowrap !important; }

  /* table üzündən gizlənən action button-lar görünəcək */
  td:last-child, th:last-child{
    position: sticky;
    right: 0;
    background: inherit;
  }
}

/* 5) Formlar: input/select/button mobilə tam uyğun (admin filterlər üçün) */
@media (max-width: 992px){
  input,textarea,select,button{
    max-width:100% !important;
    font:inherit;
  }
  input[type="text"],input[type="email"],input[type="tel"],input[type="password"],textarea,select{
    width:100% !important;
  }

  /* Yan-yana controls varsa alt-alta düşsün (filter/bulk/action bar) */
  .row,.filters,.actions,.toolbar,.top-actions,.bulk-actions,[class*="filter"],[class*="action"]{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
    align-items:stretch !important;
  }

  button,.btn,[class*="btn"],input[type="submit"]{
    width:100% !important;
  }
}

/* 6) Container-lar mobilə sığsın (bəzən geniş max-width sıxıb daşır) */
.container,.content,.page-content,main,[class*="container"],[class*="content"]{
  max-width:100%;
}
