/* =====================================================
   المقايضة الذكية - CSS للصفحات الجديدة
   (باقات، تسجيل، دخول، تواصل، FAQ)
   ===================================================== */

/* ===== باقات الاشتراك ===== */
.hwk-plans-page { padding: 20px 0; }

.hwk-plans-intro,
.hwk-register-intro,
.hwk-login-intro,
.hwk-contact-intro,
.hwk-faq-intro,
.hwk-wanted-intro,
.hwk-wanted-form-intro {
    color: var(--hwk-text-dim);
    margin-bottom: 24px;
    font-size: 15px;
}

.hwk-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.hwk-plan-card {
    background: var(--hwk-card);
    border: 1px solid var(--hwk-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hwk-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hwk-shadow-hover);
}

.hwk-plan-card.featured {
    border-color: var(--plan-color, var(--hwk-accent));
    border-width: 2px;
}

.hwk-plan-card.current {
    background: #f0fdf4;
    border-color: var(--hwk-success);
}

.hwk-plan-ribbon {
    position: absolute;
    top: 14px;
    left: -28px;
    background: var(--plan-color, var(--hwk-accent));
    color: #fff;
    padding: 4px 32px;
    font-size: 11px;
    font-weight: 700;
    transform: rotate(-45deg);
    text-align: center;
    width: 110px;
}

.hwk-plan-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--hwk-border);
    margin-bottom: 16px;
}

.hwk-plan-title {
    font-size: 20px;
    color: var(--hwk-primary);
    margin: 0 0 8px;
}

.hwk-plan-price {
    margin: 8px 0;
}

.hwk-price-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--plan-color, var(--hwk-accent));
}

.hwk-price-cur {
    font-size: 16px;
    color: var(--hwk-text-dim);
    margin-right: 6px;
}

.hwk-price-free {
    font-size: 30px;
    font-weight: 700;
    color: var(--hwk-success);
}

.hwk-plan-duration {
    color: var(--hwk-text-dim);
    font-size: 13px;
}

.hwk-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex-grow: 1;
}

.hwk-plan-features li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--hwk-border);
    color: var(--hwk-text);
    font-size: 14px;
}

.hwk-plan-features li i {
    color: var(--hwk-success);
    margin-left: 6px;
}

.hwk-plan-features li i.fa-times {
    color: var(--hwk-danger);
}

.hwk-plan-action {
    margin-top: auto;
}

.hwk-plan-desc {
    margin-top: 12px;
    color: var(--hwk-text-dim);
    font-size: 13px;
    text-align: center;
}

.hwk-plan-current-badge {
    display: inline-block;
    background: var(--hwk-success);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 8px;
}

.hwk-plans-note {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 13px;
}

.hwk-plans-note i { margin-left: 6px; }

/* قالب: gradient */
.hwk-template-gradient .hwk-plan-card.featured {
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
}

/* قالب: minimal */
.hwk-template-minimal .hwk-plan-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}
.hwk-template-minimal .hwk-plan-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.hwk-template-minimal .hwk-plan-ribbon { display: none; }

/* قالب: glass */
.hwk-template-glass .hwk-plan-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

/* قالب: dark */
.hwk-template-dark .hwk-plan-card {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #374151;
}
.hwk-template-dark .hwk-plan-title { color: #fff; }
.hwk-template-dark .hwk-plan-features li { border-bottom-color: #374151; color: #d1d5db; }
.hwk-template-dark .hwk-plan-duration { color: #9ca3af; }

/* قالب: cards */
.hwk-template-cards .hwk-plan-card {
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
}
.hwk-template-cards .hwk-plan-header {
    background: var(--plan-color, var(--hwk-accent));
    color: #fff;
    border-radius: 0;
    padding: 24px;
}
.hwk-template-cards .hwk-plan-title,
.hwk-template-cards .hwk-price-num,
.hwk-template-cards .hwk-price-cur,
.hwk-template-cards .hwk-price-free { color: #fff; }
.hwk-template-cards .hwk-plan-duration { color: rgba(255,255,255,.85); }
.hwk-template-cards .hwk-plan-card { padding: 0; }
.hwk-template-cards .hwk-plan-features,
.hwk-template-cards .hwk-plan-action,
.hwk-template-cards .hwk-plan-desc { padding: 0 24px 20px; }
.hwk-template-cards .hwk-plan-action { padding-bottom: 24px; }

/* قالب: comparison */
.hwk-plans-comparison { overflow-x: auto; }
.hwk-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--hwk-shadow);
}
.hwk-compare-table th,
.hwk-compare-table td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid var(--hwk-border);
}
.hwk-compare-table .hwk-compare-feature {
    text-align: right;
    font-weight: 600;
    background: #f9fafb;
}
.hwk-compare-table .hwk-compare-plan {
    position: relative;
    vertical-align: top;
    background: #fff;
}
.hwk-compare-table .hwk-compare-plan.featured {
    background: #fef3c7;
}
.hwk-compare-table .hwk-compare-name {
    display: block;
    font-weight: 700;
    color: var(--hwk-primary);
    font-size: 16px;
    margin-bottom: 6px;
}
.hwk-compare-table .hwk-compare-price {
    display: block;
    color: var(--hwk-accent);
    font-weight: 700;
    font-size: 18px;
}
.hwk-compare-table .hwk-compare-duration {
    display: block;
    color: var(--hwk-text-dim);
    font-size: 12px;
    margin-bottom: 10px;
}
.hwk-compare-table .green { color: var(--hwk-success); }
.hwk-compare-table .red { color: var(--hwk-danger); }
.hwk-plan-ribbon {
    background: var(--hwk-accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 6px;
}

/* ===== التسجيل ===== */
.hwk-register-page,
.hwk-login-page,
.hwk-contact-page,
.hwk-wanted-form-page { padding: 20px 0; }

.hwk-form-section {
    background: var(--hwk-card);
    border: 1px solid var(--hwk-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.hwk-form-section h3 {
    margin: 0 0 18px;
    color: var(--hwk-primary);
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--hwk-border);
}

.hwk-form-section h3 i { color: var(--hwk-accent); margin-left: 6px; }

.hwk-form-row {
    margin-bottom: 16px;
}

.hwk-form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .hwk-form-row.two-col { grid-template-columns: 1fr; }
}

.hwk-field {
    margin-bottom: 14px;
}

.hwk-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--hwk-text);
}

.hwk-field .req { color: var(--hwk-danger); }

.hwk-field input[type="text"],
.hwk-field input[type="email"],
.hwk-field input[type="password"],
.hwk-field input[type="tel"],
.hwk-field input[type="number"],
.hwk-field input[type="date"],
.hwk-field input[type="url"],
.hwk-field select,
.hwk-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--hwk-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s;
    background: #fff;
}

.hwk-field input:focus,
.hwk-field select:focus,
.hwk-field textarea:focus {
    outline: none;
    border-color: var(--hwk-accent);
    box-shadow: 0 0 0 3px rgba(255,159,28,.15);
}

.hwk-field .description {
    color: var(--hwk-text-dim);
    font-size: 12px;
    margin-top: 4px;
}

.hwk-checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    cursor: pointer;
}

.hwk-checkbox-line input[type="checkbox"] {
    margin-top: 3px;
}

.hwk-form-actions { margin-top: 16px; }

.hwk-form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--hwk-text-dim);
    font-size: 14px;
}

.hwk-form-footer a { color: var(--hwk-accent); font-weight: 600; }

.hwk-register-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.hwk-plan-pick {
    cursor: pointer;
    display: block;
}
.hwk-plan-pick input[type="radio"] { display: none; }
.hwk-plan-pick-inner {
    display: block;
    padding: 16px;
    border: 2px solid var(--hwk-border);
    border-radius: 12px;
    background: #fff;
    transition: all .2s;
    text-align: center;
}
.hwk-plan-pick input[type="radio"]:checked + .hwk-plan-pick-inner {
    border-color: var(--plan-color, var(--hwk-accent));
    background: #fef3c7;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.hwk-plan-pick.featured .hwk-plan-pick-inner { border-color: var(--plan-color); }
.hwk-pp-title { display: block; font-weight: 700; color: var(--hwk-primary); }
.hwk-pp-price { display: block; color: var(--hwk-accent); font-weight: 700; margin: 4px 0; }
.hwk-pp-meta { display: block; color: var(--hwk-text-dim); font-size: 12px; }

.hwk-pay-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.hwk-pay-method { cursor: pointer; display: block; }
.hwk-pay-method input[type="radio"] { display: none; }
.hwk-pay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    border: 2px solid var(--hwk-border);
    border-radius: 10px;
    transition: all .2s;
}
.hwk-pay-method input[type="radio"]:checked + .hwk-pay-inner {
    border-color: var(--hwk-accent);
    background: #fef3c7;
}
.hwk-pay-inner i { font-size: 22px; color: var(--hwk-accent); margin-bottom: 6px; }

/* ===== الدخول ===== */
.hwk-form-card {
    background: var(--hwk-card);
    border: 1px solid var(--hwk-border);
    border-radius: 16px;
    padding: 28px;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: var(--hwk-shadow);
}

.hwk-pass-input { position: relative; }
.hwk-pass-input input { padding-left: 44px !important; }
.hwk-toggle-pass {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--hwk-text-dim);
    cursor: pointer;
    padding: 6px;
}
.hwk-form-row.inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0;
}
.hwk-link-sm { font-size: 13px; color: var(--hwk-accent); }

/* ===== التواصل ===== */
.hwk-contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .hwk-contact-grid { grid-template-columns: 1fr; }
}

.hwk-contact-info {
    background: var(--hwk-card);
    border: 1px solid var(--hwk-border);
    border-radius: 12px;
    padding: 20px;
}

.hwk-contact-info h3 {
    color: var(--hwk-primary);
    margin: 0 0 14px;
    font-size: 16px;
}

.hwk-contact-info h3 i { color: var(--hwk-accent); margin-left: 6px; }

.hwk-contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.hwk-contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--hwk-border);
    font-size: 14px;
}

.hwk-contact-info li i { color: var(--hwk-accent); width: 18px; text-align: center; }
.hwk-contact-info li span { color: var(--hwk-text-dim); margin-left: 4px; }

.hwk-contact-faq-link {
    background: #f0fdf4;
    padding: 14px;
    border-radius: 10px;
    margin-top: 14px;
}

.hwk-contact-faq-link h4 { margin: 0 0 4px; color: var(--hwk-primary); }
.hwk-contact-faq-link p { margin: 0 0 10px; font-size: 13px; color: var(--hwk-text-dim); }

/* ===== FAQ ===== */
.hwk-faq-search {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    max-width: 500px;
}

.hwk-faq-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--hwk-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

.hwk-faq-search button {
    background: var(--hwk-primary);
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 10px;
    cursor: pointer;
}

.hwk-faq-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hwk-faq-cat {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--hwk-border);
    border-radius: 20px;
    color: var(--hwk-text);
    text-decoration: none;
    font-size: 13px;
    transition: all .2s;
}

.hwk-faq-cat:hover,
.hwk-faq-cat.active {
    background: var(--hwk-primary);
    color: #fff;
    border-color: var(--hwk-primary);
}

.hwk-faq-accordion { margin-bottom: 30px; }

.hwk-faq-group { margin-bottom: 24px; }

.hwk-faq-group-title {
    color: var(--hwk-primary);
    font-size: 17px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hwk-faq-count {
    background: var(--hwk-accent);
    color: #1f2937;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.hwk-faq-item {
    background: var(--hwk-card);
    border: 1px solid var(--hwk-border);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.hwk-faq-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.04); }

.hwk-faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    text-align: right;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--hwk-text);
}

.hwk-faq-q-text { flex: 1; }

.hwk-faq-icon { color: var(--hwk-accent); transition: transform .2s; }

.hwk-faq-item.open .hwk-faq-icon { transform: rotate(180deg); }

.hwk-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
}

.hwk-faq-answer-inner {
    padding: 0 20px 16px;
    color: var(--hwk-text-dim);
    font-size: 14px;
    line-height: 1.7;
}

.hwk-faq-no-results {
    text-align: center;
    padding: 40px;
    color: var(--hwk-text-dim);
}

.hwk-faq-no-results i { font-size: 36px; color: var(--hwk-accent); margin-bottom: 12px; }

.hwk-faq-cta {
    background: linear-gradient(135deg, var(--hwk-primary) 0%, var(--hwk-primary-light) 100%);
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-top: 30px;
}

.hwk-faq-cta h3 { color: #fff; margin: 0 0 8px; }
.hwk-faq-cta p { margin: 0 0 16px; opacity: .9; }

/* ===== المفضلة ===== */
.hwk-favorites-page { padding: 20px 0; }

.hwk-fav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.hwk-fav-count {
    color: var(--hwk-text-dim);
    font-size: 14px;
}

.hwk-fav-card {
    background: var(--hwk-card);
    border: 1px solid var(--hwk-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.hwk-fav-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hwk-shadow-hover);
}

.hwk-pc-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    background: #f3f4f6;
}

.hwk-pc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hwk-pc-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--hwk-text-dim);
    font-size: 36px;
}

.hwk-fav-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,.9);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--hwk-danger);
    font-size: 16px;
    transition: transform .15s;
}
.hwk-fav-toggle:hover { transform: scale(1.1); }
.hwk-fav-toggle.active i { color: var(--hwk-danger); }

.hwk-pc-body { padding: 12px 14px; }
.hwk-pc-title { margin: 0 0 8px; font-size: 14px; }
.hwk-pc-title a { color: var(--hwk-text); text-decoration: none; }
.hwk-pc-title a:hover { color: var(--hwk-accent); }
.hwk-pc-points { color: var(--hwk-accent); font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.hwk-pc-points i { margin-left: 4px; }
.hwk-pc-location { color: var(--hwk-text-dim); font-size: 12px; margin-bottom: 10px; }
.hwk-pc-location i { margin-left: 4px; color: var(--hwk-accent); }

/* ===== المنتجات المطلوبة ===== */
.hwk-wanted-list-page,
.hwk-wanted-form-page { padding: 20px 0; }

.hwk-wanted-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.hwk-wanted-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.hwk-wanted-filters input,
.hwk-wanted-filters select {
    padding: 8px 12px;
    border: 1px solid var(--hwk-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
}

.hwk-filter-urgent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.hwk-wanted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.hwk-wanted-card {
    background: var(--hwk-card);
    border: 1px solid var(--hwk-border);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}

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

.hwk-wanted-card.urgent {
    border-color: var(--hwk-danger);
    border-width: 2px;
}

.hwk-wanted-card.expired { opacity: .55; }

.hwk-wanted-urgent-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--hwk-danger);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.hwk-wanted-expired-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--hwk-text-dim);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.hwk-wanted-title {
    margin: 0 0 10px;
    font-size: 15px;
}

.hwk-wanted-title a {
    color: var(--hwk-primary);
    text-decoration: none;
}

.hwk-wanted-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--hwk-text-dim);
}

.hwk-wm-item i { color: var(--hwk-accent); margin-left: 3px; }

.hwk-wanted-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.hwk-cat-tag {
    background: #e0e7ff;
    color: var(--hwk-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    text-decoration: none;
}

.hwk-wanted-excerpt {
    color: var(--hwk-text-dim);
    font-size: 13px;
    margin: 0 0 12px;
    line-height: 1.5;
}

.hwk-wanted-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.hwk-wanted-owner-tag {
    background: #f3f4f6;
    color: var(--hwk-text-dim);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.hwk-pagination {
    margin-top: 24px;
    text-align: center;
}

.hwk-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--hwk-border);
    border-radius: 8px;
    margin: 0 3px;
    text-decoration: none;
    color: var(--hwk-primary);
}

.hwk-pagination .page-numbers.current {
    background: var(--hwk-primary);
    color: #fff;
    border-color: var(--hwk-primary);
}

/* ===== لوحة المتصدرين ===== */
.hwk-leaderboard-page { padding: 20px 0; }

.hwk-lb-intro { color: var(--hwk-text-dim); margin-bottom: 20px; }

.hwk-levels-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.hwk-level-pill {
    background: #fff;
    border: 2px solid var(--pill-color, var(--hwk-accent));
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform .2s;
}

.hwk-level-pill.mine {
    background: var(--pill-color);
    color: #fff;
}

.hwk-level-pill:hover { transform: translateY(-2px); }

.hwk-level-pill i {
    font-size: 22px;
    color: var(--pill-color);
}

.hwk-level-pill.mine i { color: #fff; }

.hwk-pill-info strong { display: block; font-size: 13px; }
.hwk-pill-info span { font-size: 11px; color: var(--hwk-text-dim); }
.hwk-level-pill.mine .hwk-pill-info span { color: rgba(255,255,255,.85); }

.hwk-my-card {
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
    border: 2px solid var(--level-color, var(--hwk-accent));
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hwk-my-rank {
    font-size: 28px;
    font-weight: 700;
    color: var(--level-color);
    min-width: 60px;
    text-align: center;
}

.hwk-my-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--level-color);
}

.hwk-my-info { flex: 1; }

.hwk-my-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--hwk-primary);
    margin-bottom: 4px;
}

.hwk-verified-badge { color: #0ea5e9; margin-right: 4px; }

.hwk-my-level {
    color: var(--level-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.hwk-progress-bar {
    background: #e5e7eb;
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.hwk-progress-bar div { height: 100%; transition: width .4s; }

.hwk-my-info span { font-size: 12px; color: var(--hwk-text-dim); }

.hwk-my-score {
    text-align: center;
    color: var(--level-color);
    min-width: 80px;
}

.hwk-my-score strong { display: block; font-size: 26px; }
.hwk-my-score span { font-size: 11px; }

.hwk-lb-list {
    background: var(--hwk-card);
    border: 1px solid var(--hwk-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.hwk-lb-head {
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid var(--hwk-border);
}

.hwk-lb-head h3 {
    margin: 0;
    color: var(--hwk-primary);
    font-size: 16px;
}

.hwk-lb-rows { padding: 8px; }

.hwk-lb-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background .2s;
}

.hwk-lb-row:hover { background: #f9fafb; }
.hwk-lb-row.me { background: #fef3c7; }

.hwk-lb-rank {
    font-weight: 700;
    color: var(--hwk-text-dim);
    min-width: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.hwk-lb-row.gold .hwk-lb-rank i { color: #d97706; font-size: 18px; }
.hwk-lb-row.silver .hwk-lb-rank i { color: #6b7280; font-size: 18px; }
.hwk-lb-row.bronze .hwk-lb-rank i { color: #b45309; font-size: 18px; }

.hwk-lb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--rank-color, var(--hwk-border));
}

.hwk-lb-info { flex: 1; }

.hwk-lb-name {
    color: var(--hwk-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hwk-lb-name:hover { color: var(--hwk-accent); }

.hwk-lb-me-tag {
    background: var(--hwk-accent);
    color: #1f2937;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
}

.hwk-lb-level {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.hwk-lb-score {
    text-align: center;
    color: var(--rank-color, var(--hwk-accent));
    min-width: 60px;
}

.hwk-lb-score strong { display: block; font-size: 18px; }
.hwk-lb-score span { font-size: 11px; color: var(--hwk-text-dim); }

.hwk-lb-howto {
    background: var(--hwk-card);
    border: 1px solid var(--hwk-border);
    border-radius: 12px;
    padding: 20px 24px;
}

.hwk-lb-howto h3 {
    color: var(--hwk-primary);
    margin: 0 0 14px;
}

.hwk-lb-howto h3 i { color: var(--hwk-accent); margin-left: 6px; }

.hwk-howto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.hwk-howto-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.hwk-howto-card i {
    font-size: 28px;
    color: var(--hwk-accent);
    margin-bottom: 8px;
}

.hwk-howto-card h4 {
    margin: 0 0 4px;
    color: var(--hwk-primary);
    font-size: 14px;
}

.hwk-howto-card p {
    margin: 0;
    color: var(--hwk-text-dim);
    font-size: 12px;
}

@media (max-width: 600px) {
    .hwk-my-card { flex-direction: column; text-align: center; }
    .hwk-my-info { text-align: center; }
    .hwk-my-info .hwk-my-name { justify-content: center; }
    .hwk-lb-row { flex-wrap: wrap; }
    .hwk-lb-info { order: -1; flex-basis: 100%; }
}
