.choices-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    direction: rtl;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-header__title h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #111827;
}

.page-header__title p {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 15px;
}

/* Summary Card */
.user-summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-item .label {
    color: #6b7280;
    font-size: 14px;
}

.summary-item .value {
    font-weight: 700;
    color: #1f2937;
    font-size: 15px;
}

.summary-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
}

.btn-edit-query {
    margin-right: auto;
    color: #4f46e5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: #eeef2;
}

/* Toolbar */
.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.results-count {
    font-size: 15px;
    color: #374151;
}

.results-search input {
    width: 280px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.results-search input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Choice Cards */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.choice-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 50px 1.5fr 1fr 140px;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.choice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.choice-card__rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-card__rank .index {
    font-weight: 700;
    color: #9ca3af;
    font-size: 16px;
}

.major-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    color: #0f172a;
}

.meta-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Stats */
.choice-card__stats {
    display: flex;
    gap: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

.stat-value {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}

.text-success {
    color: #16a34a;
}

.text-danger {
    color: #dc2626;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.badge--very-close {
    background: #dcfce7;
    color: #15803d;
}

.badge--close {
    background: #e0f2fe;
    color: #0369a1;
}

.badge--medium {
    background: #fef3c7;
    color: #b45309;
}

.badge--far {
    background: #f3f4f6;
    color: #4b5563;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.empty-state__icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 850px) {
    .choice-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .choice-card__rank {
        justify-content: flex-start;
    }

    .summary-divider {
        display: none;
    }

    .results-search input {
        width: 100%;
    }
}