body { margin: 0; padding: 0; font-family: var(--font-ar); color: var(--text-primary); padding-bottom: calc(96px + var(--sab)); }

.container { padding: 24px; max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }

.page-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: var(--text-lg); font-weight: 800; margin: 0; color: var(--text-primary); }

.categories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.category-card { 
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 32px 16px; 
    text-align: center; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.category-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-icon {
    width: 60px; height: 60px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    background: var(--primary-light);
    color: var(--primary-ink);
}
.category-icon i,
.category-icon svg { width: 26px; height: 26px; flex-shrink: 0; }
.category-name { font-weight: 800; font-size: var(--text-base); color: var(--text-primary); }
.category-count {
    display: inline-block; margin-top: 8px; font-size: var(--text-xs);
    font-weight: 800; padding: 2px 10px; border-radius: var(--radius-full);
}
.category-count.has  { background: rgba(30,107,71,.14); color: var(--success-ink); }
.category-count.none { background: rgba(167,28,32,.14); color: var(--danger-ink); }

.states-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.state-count { display:inline-block; margin-top:6px; font-size:var(--text-xs);
    font-weight:800; padding:2px 10px; border-radius:var(--radius-full); }
.state-count.has { background:rgba(30,107,71,.14); color:var(--success-ink); }
.state-count.none { background: rgba(167,28,32,.14); color: var(--danger-ink); }

.shop-verify.is-ok   { background: #eef8f2; color: #116835; }
.shop-verify.is-warn { background: rgba(245,158,11,.12); color: #8A5206; }
[data-theme="dark"] .shop-verify.is-warn { color: var(--warning-ink); }
.state-card {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: 12px; padding: 16px;
    text-align: center; font-weight: 800; font-size: var(--text-sm); cursor: pointer; transition: all 0.2s; color: var(--text-primary);
}
.state-card:hover { border-color: var(--primary); color: var(--primary-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }


.shop-list-item {
    display: flex; gap: 16px; padding: 16px; border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); margin-bottom: 16px; cursor: pointer;
    transition: all 0.2s ease; background: var(--glass-bg); backdrop-filter: var(--glass-blur);
}
.shop-list-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.shop-img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; background: var(--bg-surface-hover); flex: 0 0 auto; }
.shop-info { flex: 1; min-width: 0; }
.shop-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-top: 12px; max-width: 100%; overflow: hidden; }
.shop-hint {
    flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center;
    font-size: 10.5px; line-height: 1.6; height: 1.6em; overflow: hidden;
    color: var(--text-tertiary,#8d8d96); font-weight: 700; white-space: nowrap;
}
.shop-hint::before { content: ''; width: 0; height: 1.6em; }
.shop-title { font-weight: 800; font-size: var(--text-base); margin: 0 0 6px; color: var(--text-primary); }
.shop-meta { font-size: var(--text-sm); color: var(--text-secondary); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-weight: 600; }
.shop-meta--place { align-items: flex-start; }
.shop-meta--place > i, .shop-meta--place > svg { flex: 0 0 auto; margin-top: 2px; }
.shop-place {
    min-width: 0; line-height: 1.45; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}


.btn-add { padding: 16px; margin-bottom: 20px; }
.sd-upload { border-style: dashed; }
.sd-photo-view { position: fixed; inset: 0; z-index: 9600; background: rgba(0,0,0,.88);
    display: flex; align-items: center; justify-content: center; padding: 16px; }
.sd-photo-view[hidden] { display: none; }
.sd-photo-view img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }
.sd-photo-view__x { position: absolute; inset-block-start: calc(72px + env(safe-area-inset-top, 0px)); inset-inline-end: 14px;
    background: var(--bg-surface); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
html.sd-photo-lock, html.sd-photo-lock body { overflow: hidden; }
.sd-no { color: var(--danger-ink); border-color: var(--danger-ink); }
.sd-undo { color: var(--text-tertiary); text-decoration: underline; }
.sd-link { text-decoration: none; }

.step { display: none; animation: fadeIn 0.3s ease; }
.step.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-app); border: 1px solid var(--border-color); border-radius: var(--radius-xl); width: 100%; max-width: 400px; padding: 32px 24px; position: relative; box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.sd-verify-help { font-size: var(--text-sm); font-weight: 800; line-height: 1;
                  color: var(--text-secondary); }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; background: var(--bg-surface-elevated); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); transition: 0.2s; }
.modal-close:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

.form-label { display: block; font-size: var(--text-sm); font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.form-input { width: 100%; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-surface-elevated); color: var(--text-primary); font-family: var(--font-ar); font-size: var(--text-base); font-weight: 600; outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--primary); }

.sd-comments { margin-bottom: 8px; }
.sd-comments__head { font-weight: 800; font-size: var(--text-base); margin-bottom: 6px; }
.sd-comments__head > i, .sd-comments__head > svg { width: 16px; height: 16px; }

.shop-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 14px; font-size: var(--text-sm); color: var(--text-tertiary); }
.shop-crumbs a { color: var(--text-secondary); font-weight: 700; text-decoration: none; }
.shop-crumbs i, .shop-crumbs svg { width: 14px; height: 14px; color: var(--text-tertiary); }
.shop-crumbs [aria-current] { color: var(--text-primary); font-weight: 800; }
.shop-page-card { max-width: 560px; margin: 0 auto 28px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; }

.wilaya-lead { margin: 0 0 18px; font-size: var(--text-sm); line-height: 1.9; color: var(--text-secondary); }
.wilaya-list a.shop-list-item { color: inherit; text-decoration: none; }
.wilaya-list .shop-title { font-size: var(--text-base); }
.wilaya-more { margin: 8px 0 32px; text-align: center; }
