.pub-page { min-height: 100vh; background: var(--bg); }

.pub-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: var(--bg-white);
    box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100;
}
.pub-back {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}
.pub-back svg { width: 22px; height: 22px; color: var(--text-primary); }
.pub-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.pub-placeholder { width: 36px; }

.pub-tabs {
    display: flex; background: var(--bg-white); padding: 4px;
    margin: 12px 15px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.pub-tab {
    flex: 1; text-align: center; padding: 10px 0; font-size: 13px;
    color: var(--text-tertiary); border-radius: 10px; cursor: pointer;
    transition: all 0.2s; font-weight: 500;
}
.pub-tab.active {
    color: white; background: var(--primary-gradient);
    font-weight: 600; box-shadow: var(--shadow-primary);
}

.pub-list { padding: 0 15px 20px; }

.pub-empty { text-align: center; padding: 60px 20px; color: var(--text-tertiary); font-size: 15px; }

.pub-card {
    background: var(--bg-white); border-radius: var(--radius-lg);
    padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}
.pub-card:active { transform: scale(0.985); }

.pub-card-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.pub-card-title {
    font-size: 16px; font-weight: 600; color: var(--text-primary);
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pub-card-status {
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 600; color: white; white-space: nowrap; margin-left: 10px;
}
.pub-card-status.pending { background: linear-gradient(135deg, #9CA3AF, #B0B7C3); }
.pub-card-status.ongoing { background: linear-gradient(135deg, #4B7BEC, #6C8FF2); }
.pub-card-status.confirming { background: linear-gradient(135deg, #FF6B35, #FF8F5E); }
.pub-card-status.completed { background: linear-gradient(135deg, #26DE81, #6DD5A0); }
.pub-card-status.cancelled { background: #9CA3AF; }

.pub-card-desc {
    font-size: 13px; color: var(--text-secondary); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 10px;
}

.pub-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.pub-card-reward {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 700; margin-bottom: 10px;
}
.pub-card-reward.cash { background: rgba(255,184,0,0.1); color: #D4960A; }
.pub-card-reward.points { background: rgba(75,123,236,0.1); color: var(--accent-blue); }
.pub-card-reward.free { background: rgba(38,222,129,0.1); color: var(--accent-green); }

.pub-card-servers {
    background: var(--bg); border-radius: var(--radius-md);
    padding: 12px; margin-bottom: 10px;
}
.pub-card-servers-title {
    font-size: 12px; color: var(--text-tertiary); margin-bottom: 8px; font-weight: 600;
}
.pub-card-server {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0;
}
.pub-card-server + .pub-card-server { border-top: 1px solid var(--border-light); }
.pub-card-server-left { display: flex; align-items: center; gap: 8px; }
.pub-card-server-avatar {
    width: 28px; height: 28px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, #4B7BEC, #6C8FF2);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 12px; font-weight: 600;
}
.pub-card-server-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.pub-card-server-status { font-size: 12px; color: var(--text-tertiary); }
.pub-card-server-btns { display: flex; align-items: center; gap: 8px; }
.pub-card-server-action {
    padding: 5px 14px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600; color: white;
    background: var(--primary-gradient); cursor: pointer;
}
.pub-card-server-action.disabled {
    background: var(--border-light); color: var(--text-tertiary); pointer-events: none;
}
.pub-card-server-view {
    padding: 5px 14px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600; color: var(--primary);
    background: rgba(255,107,53,0.08); cursor: pointer;
    border: 1px solid rgba(255,107,53,0.2);
}

.pub-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; border-top: 1px solid var(--border-light);
}
.pub-card-time { font-size: 12px; color: var(--text-tertiary); }
.pub-card-detail {
    font-size: 13px; color: var(--primary); font-weight: 500; cursor: pointer;
    display: flex; align-items: center; gap: 2px;
}
.pub-card-detail svg { width: 14px; height: 14px; }

.pub-card-rating {
    display: flex; align-items: center; gap: 4px; margin-top: 8px;
}
.pub-card-rating-stars { color: var(--accent-gold); font-size: 14px; letter-spacing: 2px; }
.pub-card-rating-text { font-size: 12px; color: var(--text-tertiary); }

.confirm-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200;
    display: none; align-items: flex-end; justify-content: center;
}
.confirm-modal.show { display: flex; }
.confirm-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.confirm-content {
    position: relative; width: 100%; max-height: 85vh; background: var(--bg-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 20px calc(24px + var(--safe-bottom));
    overflow-y: auto; animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.confirm-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.confirm-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.confirm-close {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full); background: var(--border-light);
}
.confirm-close svg { width: 18px; height: 18px; color: var(--text-tertiary); }

.confirm-task-info {
    background: var(--bg); border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px;
}
.confirm-task-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.confirm-task-reward { font-size: 13px; color: var(--text-secondary); }

.confirm-server-info {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
    padding: 12px; background: var(--bg); border-radius: var(--radius-md);
}
.confirm-server-avatar {
    width: 40px; height: 40px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, #4B7BEC, #6C8FF2);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 16px; font-weight: 600;
}
.confirm-server-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.confirm-server-label { font-size: 12px; color: var(--text-tertiary); }

.confirm-rating { margin-bottom: 16px; }
.confirm-rating-label { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.star-row { display: flex; gap: 8px; margin-bottom: 6px; }
.star-row .star {
    font-size: 36px; color: var(--border); cursor: pointer; transition: color 0.15s, transform 0.15s;
}
.star-row .star.active { color: var(--accent-gold); transform: scale(1.1); }
.star-hint { font-size: 13px; color: var(--text-tertiary); }

.confirm-comment {
    width: 100%; min-height: 80px; padding: 12px; border: 1.5px solid var(--border);
    border-radius: var(--radius-md); font-size: 14px; resize: none; margin-bottom: 20px;
    transition: border-color 0.2s;
}
.confirm-comment:focus { border-color: var(--primary); }

.confirm-actions { display: flex; gap: 12px; }
.confirm-cancel {
    flex: 1; padding: 14px; border-radius: var(--radius-full);
    background: var(--border-light); color: var(--text-secondary);
    font-size: 15px; font-weight: 600; text-align: center;
}
.confirm-submit {
    flex: 2; padding: 14px; border-radius: var(--radius-full);
    background: var(--primary-gradient); color: white;
    font-size: 15px; font-weight: 600; text-align: center;
    box-shadow: var(--shadow-primary);
}
.confirm-submit:active { transform: scale(0.97); }

.server-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200;
    display: none; align-items: flex-end; justify-content: center;
}
.server-modal.show { display: flex; }
.server-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.server-content {
    position: relative; width: 100%; max-height: 85vh; background: var(--bg-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 20px calc(24px + var(--safe-bottom));
    overflow-y: auto; animation: slideUp 0.3s ease-out;
}
.server-modal-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.server-modal-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.server-modal-close {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full); background: var(--border-light);
}
.server-modal-close svg { width: 18px; height: 18px; color: var(--text-tertiary); }

.server-loading {
    text-align: center; padding: 40px 20px; color: var(--text-tertiary); font-size: 14px;
}

.sv-profile {
    display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.sv-avatar {
    width: 56px; height: 56px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, #4B7BEC, #6C8FF2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.sv-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.sv-avatar-text { font-size: 22px; font-weight: 700; color: white; }
.sv-info { flex: 1; }
.sv-nickname { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.sv-credit-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600;
}

.sv-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}

.sv-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-bottom: 16px;
}
.sv-stat-item {
    text-align: center; padding: 12px 4px;
    background: var(--bg); border-radius: var(--radius-md);
}
.sv-stat-value {
    font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sv-stat-label { font-size: 11px; color: var(--text-tertiary); }

.sv-call-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, #26DE81, #2EC6B6);
    color: white; font-size: 16px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(38,222,129,0.3);
    text-decoration: none; margin-bottom: 16px; transition: transform 0.2s;
}
.sv-call-btn:active { transform: scale(0.96); }
.sv-call-btn svg { width: 20px; height: 20px; }
.sv-call-btn.disabled {
    background: var(--border-light); color: var(--text-tertiary);
    box-shadow: none; pointer-events: none;
}

.sv-section-title {
    font-size: 15px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 10px; padding-top: 4px;
}

.sv-review-item {
    padding: 12px; background: var(--bg); border-radius: var(--radius-md);
    margin-bottom: 8px;
}
.sv-review-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.sv-review-title {
    font-size: 13px; font-weight: 500; color: var(--text-primary);
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sv-review-stars { color: var(--accent-gold); font-size: 12px; letter-spacing: 1px; flex-shrink: 0; margin-left: 8px; }
.sv-review-comment {
    font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 4px;
}
.sv-review-time { font-size: 11px; color: var(--text-tertiary); }