/* SAFI STORE — صفحات الحسابات للبيع */

.accounts-page {
    padding: 12px 0 80px;
    background:
        radial-gradient(circle at 12% 0%, rgba(140, 82, 255, 0.16), transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(0, 243, 255, 0.1), transparent 38%);
    min-height: 100vh;
}

.accounts-page .container {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding-inline: 12px;
}

.accounts-hero {
    padding: 64px 0 18px;
    text-align: center;
}

.accounts-hero .hero-inner {
    max-width: 780px;
    margin: 0 auto;
}

.accounts-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 10px;
}

.accounts-hero p {
    color: var(--gray-medium);
    margin-bottom: 18px;
    line-height: 1.8;
}

.accounts-hero .hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.accounts-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(140, 82, 255, 0.14);
    border: 1px solid rgba(140, 82, 255, 0.35);
    color: #cbb6ff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.account-card {
    position: relative;
}

.account-card .product-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.account-features-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
    min-height: 28px;
}

.account-chip {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.18);
    color: var(--neon-blue, #00f3ff);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-chip.more {
    color: var(--gray-medium);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.account-card.is-sold {
    opacity: 0.72;
}

.account-card .compare-btn.is-on,
.circle-btn.compare-btn.is-on {
    background: linear-gradient(135deg, #8c52ff, #00f3ff);
    color: #0b0618;
}

.accounts-compare-bar {
    position: sticky;
    bottom: 16px;
    z-index: 40;
    margin: 28px auto 0;
    width: min(1100px, calc(100% - 24px));
    background: rgba(12, 16, 32, 0.94);
    border: 1px solid rgba(140, 82, 255, 0.35);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    border-radius: 18px;
    padding: 12px 14px;
    display: none;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(16px);
}

.accounts-compare-bar.is-on {
    display: flex;
}

.accounts-compare-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.accounts-compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
}

.accounts-compare-chip img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
}

.accounts-compare-chip button {
    border: 0;
    background: transparent;
    color: var(--gray-medium);
    cursor: pointer;
}

.accounts-compare-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.account-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: start;
    padding: 24px 0 40px;
}

.account-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.account-feature-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
}

.account-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.account-share .share-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 16px;
}

.account-meta-pill {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(140, 82, 255, 0.12);
    color: #d6c7ff;
}

.compare-page {
    padding: 72px 0 60px;
}

.compare-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.compare-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--gray-medium);
}

.compare-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.compare-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.details-thumbnails img.active {
    outline: 2px solid var(--neon-blue, #00f3ff);
}

.compare-scroller::-webkit-scrollbar {
    height: 10px;
}
.compare-scroller::-webkit-scrollbar-thumb {
    background: rgba(140, 82, 255, 0.55);
    border-radius: 999px;
}

.compare-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(10, 14, 28, 0.78);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.compare-table th,
.compare-table td {
    min-width: 220px;
    max-width: 280px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
    position: sticky;
    right: 0;
    z-index: 3;
    min-width: 92px;
    max-width: 110px;
    background: #101627;
    text-align: center;
    font-size: 12px;
}

.compare-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #141b31;
}

.compare-table thead th:first-child {
    z-index: 4;
}

.compare-head-card {
    text-align: center;
}

.compare-head-card img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 8px;
}

.compare-head-card h3 {
    font-size: 15px;
    margin: 0 0 6px;
}

.compare-head-card .price {
    color: var(--neon-green, #00ff9d);
    font-weight: 800;
}

.compare-row-shared td {
    background: rgba(0, 255, 157, 0.045);
}

.compare-row-unique td {
    background: transparent;
}

.compare-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.55;
}

.compare-cell .fa-check-circle {
    color: #00ff9d;
}

.compare-cell.empty {
    color: rgba(255, 255, 255, 0.18);
    justify-content: center;
}

.compare-kind {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.compare-kind.shared { color: #00ff9d; }
.compare-kind.unique { color: #cbb6ff; }

.home-accounts {
    padding: 48px 0 20px;
}

.home-accounts .products-grid,
.accounts-page .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.home-accounts .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.sa-admin-note {
    background: rgba(255, 204, 0, 0.08);
    border: 1px dashed rgba(255, 204, 0, 0.35);
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    color: #ffe28a;
}

.sa-feature-count {
    font-size: 12px;
    color: var(--gray-medium);
    margin-top: 6px;
}

.sa-admin-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.sa-admin-card h4 {
    margin: 0 0 8px;
}

body[data-theme="light"] .accounts-compare-bar,
body[data-theme="light"] .compare-scroller,
body[data-theme="light"] .compare-table th:first-child,
body[data-theme="light"] .compare-table td:first-child,
body[data-theme="light"] .compare-table thead th {
    background: #fff;
    color: #111827;
}

body[data-theme="light"] .account-chip {
    color: #2563eb;
}

@media (max-width: 900px) {
    .account-details-layout {
        grid-template-columns: 1fr;
    }
    .accounts-compare-bar {
        flex-direction: column;
        align-items: stretch;
        bottom: 10px;
    }
    .compare-table th,
    .compare-table td {
        min-width: 180px;
    }
}
