/* Components — Modern design system */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.7rem; border-radius: 14px; font-weight: 700; font-size: 0.88rem; border: none; font-family: inherit; transition: all var(--transition-spring); text-decoration: none; position: relative; overflow: visible; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #FF6B00); color: #0F1722; box-shadow: 0 8px 24px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 32px -6px var(--accent); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--text-1); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,159,28,0.3); transform: translateY(-2px); }
.btn-success { background: linear-gradient(135deg, var(--green), #22c55e); color: #000; box-shadow: 0 8px 24px -6px rgba(52,211,153,0.4); }
.btn-success:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 32px -6px rgba(52,211,153,0.5); }
.btn-success:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger { background: rgba(251,113,133,0.12); border: 1px solid rgba(251,113,133,0.3); color: var(--red); }
.btn-danger:hover:not(:disabled) { background: rgba(251,113,133,0.2); transform: translateY(-1px); }
.btn-admin { background: linear-gradient(135deg, var(--purple), #6366F1); color: #fff; box-shadow: 0 8px 24px -6px rgba(167,139,250,0.4); }
.btn-admin:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 32px -6px rgba(167,139,250,0.5); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }

/* Form inputs */
.form-input, .sort-select, .category-select, select.form-input, select, input.form-input[type="date"], input.form-input[type="number"] {
    padding: 0.7rem 1rem !important;
    border-radius: var(--radius-sm) !important;
    background: rgba(22,32,54,0.8) !important;
    color: var(--text-1) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    font-family: inherit !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    width: 100%;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
input.form-input[type="date"] { padding-right: 1.1rem !important; }
.form-input:focus, .sort-select:focus, .category-select:focus, select.form-input:focus, select:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(255,159,28,0.12) !important;
    background: rgba(22,32,54,1) !important;
}
.form-input::-ms-expand, .sort-select::-ms-expand, .category-select::-ms-expand, select::-ms-expand { display: none; }
.form-input::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }
.form-input option, .sort-select option, .category-select option, select option { background-color: #162036 !important; color: var(--text-1) !important; padding: 0.5rem !important; font-weight: 500; }
.form-input option:checked, .sort-select option:checked, .category-select option:checked, select option:checked { background: linear-gradient(135deg, var(--accent), #FF6B00) !important; background-color: var(--accent) !important; color: #000 !important; }
@-moz-document url-prefix() { .form-input, .sort-select, .category-select, select { text-indent: 0.01px; text-overflow: ''; } }
.form-input.text-input, input.form-input[type="text"], input.form-input[type="number"], input.form-input[type="password"], input.form-input[type="email"], input.form-input[type="search"], input.form-input[type="date"], textarea.form-input { background-image: none !important; background: rgba(22,32,54,0.8) !important; padding-right: 1.1rem !important; }
textarea.form-input { min-height: 100px; resize: vertical; }

/* Auth */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 2rem 0; }
.auth-card { width: 100%; max-width: 440px; padding: 2.5rem; border-radius: var(--radius-xl); }
.auth-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.4rem; text-align: center; }
.auth-card .sub { color: var(--text-3); text-align: center; margin-bottom: 1.8rem; font-size: 0.9rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; color: var(--text-3); margin-bottom: 0.4rem; font-weight: 500; }
.form-input { padding: 0.8rem 1.1rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-3); font-size: 0.88rem; }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Modals */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none; align-items: center; justify-content: center;
    padding: 0.5rem;
}
.modal-overlay.open { display: flex; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
    background: rgba(12,18,34,0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    max-width: 700px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    animation: modalIn .3s cubic-bezier(.2,.9,.4,1.1);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.03);
    -webkit-overflow-scrolling: touch;
}
@keyframes modalIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0;
    background: rgba(12,18,34,0.98);
    z-index: 2;
    backdrop-filter: blur(16px);
}
.modal-body { padding: 1.5rem; }
.close-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-2);
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.close-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.modal-product-image {
    height: 220px;
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 6rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, rgba(255,159,28,0.08), rgba(167,139,250,0.08));
    background-size: cover; background-position: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
}
.modal-product-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-product-image.fruits { background: linear-gradient(135deg, rgba(251,113,133,0.15), rgba(255,159,28,0.15)); }
.modal-product-image.raids { background: linear-gradient(135deg, rgba(167,139,250,0.18), rgba(99,102,241,0.15)); }
.modal-product-image.boosts { background: linear-gradient(135deg, rgba(96,165,250,0.18), rgba(59,130,246,0.15)); }
.modal-product-image.bounty { background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(245,158,11,0.15)); }
.modal-product-image.mastery { background: linear-gradient(135deg, rgba(52,211,153,0.18), rgba(34,197,94,0.15)); }
.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.modal-features { margin: 1rem 0; }
.modal-features li { list-style: none; padding: 0.4rem 0; color: var(--text-2); display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.modal-features li i { color: var(--green); }
.modal-reviews { margin-top: 1.5rem; }
.modal-reviews h4 { margin-bottom: 0.8rem; font-size: 1rem; }
.review-mini { padding: 0.7rem; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); margin-bottom: 0.5rem; font-size: 0.85rem; }
.review-mini-stars { color: var(--accent); font-size: 0.75rem; margin-bottom: 0.2rem; }
.review-mini-author { color: var(--text-3); font-size: 0.75rem; margin-top: 0.3rem; }

/* Toasts */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
    background: rgba(10,14,23,0.95);
    backdrop-filter: blur(20px);
    padding: 0.85rem 1.3rem;
    border-radius: 14px;
    border-left: 3px solid var(--accent);
    font-weight: 500; font-size: 0.88rem;
    display: flex; align-items: center; gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: slideIn .3s ease;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.06);
    word-break: break-word;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--blue); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { to { transform: translateX(100%); opacity: 0; } }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-3); }
.empty-state i { font-size: 3.5rem; color: var(--text-3); margin-bottom: 1rem; opacity: 0.4; display: block; }
.empty-state h3 { color: var(--text-2); margin-bottom: 0.5rem; }

/* Role badges */
.role-badge { display: inline-block; font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); margin-left: 0.3rem; }
.role-badge.super { background: linear-gradient(135deg, #FBBF24, #FFA500); color: #000; font-weight: 800; }
.role-badge.admin { background: rgba(167,139,250,0.15); color: #C4B5FD; font-weight: 700; }
.role-badge.worker { background: rgba(96,165,250,0.15); color: #93C5FD; font-weight: 700; }
.role-badge.user { background: rgba(148,163,184,0.15); color: var(--text-2); }

/* Star input */
.star-input { display: flex; gap: 0.3rem; margin: 1rem 0; justify-content: center; }
.star-input i { font-size: 1.8rem; color: var(--text-3); transition: all var(--transition-fast); }
.star-input i.active, .star-input i:hover { color: var(--accent); transform: scale(1.15); }

/* Request rows */
.req-actions { display: flex; gap: 0.3rem; flex-wrap: nowrap; }
.req-status { display: inline-block; font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); font-weight: 700; }
.req-status.new { background: rgba(251,191,36,0.15); color: #FBBF24; }
.req-status.accepted { background: rgba(52,211,153,0.15); color: var(--green); }
.req-status.rejected { background: rgba(251,113,133,0.15); color: var(--red); }
.req-row-accepted { opacity: 0.55; }
.req-row-rejected { opacity: 0.5; background: rgba(251,113,133,0.03) !important; }
.req-message-cell { max-width: 280px; word-wrap: break-word; }
.req-reply-preview { font-size: 0.72rem; color: var(--green); margin-top: 0.3rem; font-style: italic; }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: 0;
    background: rgba(6,8,13,0.98);
    backdrop-filter: blur(24px);
    z-index: 150;
    display: none; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1.5rem; overflow-y: auto;
    padding: 2rem 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu button {
    background: none; border: none;
    color: var(--text-1); font-size: 1.4rem;
    font-weight: 700; font-family: inherit;
    padding: 0.5rem 1rem;
    min-height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Payment */
.payment-receipt { background: rgba(52,211,153,0.05); border-left: 3px solid var(--green); padding: 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }
.payment-receipt .label { font-size: 0.78rem; color: var(--text-3); margin-bottom: 0.3rem; }
.payment-receipt .value { font-family: 'Courier New', monospace; font-size: 1rem; font-weight: 700; color: var(--accent); user-select: all; word-break: break-all; }
.payment-receipt .value.big { font-size: 1.3rem; }
.copy-btn {
    background: rgba(255,159,28,0.12);
    border: 1px solid rgba(255,159,28,0.25);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition-fast);
    margin-top: 0.5rem;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.copy-btn:hover { background: rgba(255,159,28,0.2); }
.copy-btn.copied { background: var(--green); color: #000; border-color: var(--green); }
.payment-success-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #22c55e);
    color: #000; font-size: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    margin: 1rem auto;
    animation: popIn .4s cubic-bezier(.2,.9,.4,1.1);
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.payment-method-info { font-size: 0.82rem; color: var(--text-3); line-height: 1.5; }
.payment-instruction { background: rgba(96,165,250,0.05); border-left: 3px solid var(--blue); padding: 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; font-size: 0.88rem; }
.payment-instruction ol { margin-left: 1.2rem; margin-top: 0.5rem; }
.payment-instruction ol li { margin-bottom: 0.3rem; }
.payment-loading { text-align: center; padding: 2rem 1rem; }
.payment-loading .spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.08); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 1rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Transactions */
.transactions-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 500px; overflow-y: auto; }
.transaction {
    padding: 0.8rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
    display: flex; align-items: center; gap: 0.8rem;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}
.transaction:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.04); }
.transaction-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.transaction-icon.income { background: rgba(52,211,153,0.12); color: var(--green); }
.transaction-icon.expense { background: rgba(251,113,133,0.12); color: var(--red); }
.transaction-info { flex: 1; min-width: 0; }
.transaction-title { font-weight: 600; font-size: 0.88rem; }
.transaction-meta { font-size: 0.75rem; color: var(--text-3); }
.transaction-amount { font-weight: 800; }
.transaction-amount.income { color: var(--green); }
.transaction-amount.expense { color: var(--red); }

/* Wallet */
.wallet-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.wallet-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    position: relative; overflow: hidden;
    transition: all var(--transition-spring);
    border: 1px solid transparent;
}
.wallet-card:hover { transform: translateY(-3px); }
.wallet-card.main { background: linear-gradient(135deg, rgba(255,159,28,0.12), rgba(167,139,250,0.08)); border-color: rgba(255,159,28,0.2); }
.wallet-card.worker { background: linear-gradient(135deg, rgba(96,165,250,0.12), rgba(59,130,246,0.08)); border-color: rgba(96,165,250,0.2); }
.wallet-card.admin { background: linear-gradient(135deg, rgba(167,139,250,0.12), rgba(99,102,241,0.08)); border-color: rgba(167,139,250,0.2); }
.wallet-card-label { font-size: 0.85rem; color: var(--text-3); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.wallet-card-balance { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.8rem; background: linear-gradient(135deg, #FFF, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wallet-card-actions { display: flex; gap: 0.5rem; }
.wallet-card-btn { padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition-fast); }
.wallet-card-btn.deposit { background: var(--green); color: #000; }
.wallet-card-btn.withdraw { background: rgba(255,255,255,0.08); color: var(--text-1); border: 1px solid rgba(255,255,255,0.08); }
.wallet-card-btn:hover { transform: scale(1.05); }

/* Payments */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; margin-bottom: 1.5rem; }
.pay-method {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    transition: all var(--transition-fast);
    text-align: center;
}
.pay-method:hover { border-color: rgba(255,159,28,0.3); background: rgba(255,159,28,0.03); }
.pay-method.active { border-color: var(--accent); background: rgba(255,159,28,0.08); box-shadow: 0 0 24px rgba(255,159,28,0.15); }
.pay-method-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.pay-method-name { font-size: 0.85rem; font-weight: 600; }
.pay-method-fee { font-size: 0.7rem; color: var(--text-3); margin-top: 0.2rem; }
.pay-amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.pay-amount {
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center; cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 700;
}
.pay-amount:hover { background: rgba(255,159,28,0.08); border-color: rgba(255,159,28,0.3); }
.pay-amount.active { background: linear-gradient(135deg, var(--accent), #FF6B00); color: #000; border-color: transparent; box-shadow: 0 4px 16px rgba(255,159,28,0.3); }

/* Profile */
.profile-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.profile-info { flex: 1; min-width: 0; text-align: left; }
.profile-info h2 { font-size: 1.5rem; margin-bottom: 0.3rem; text-align: left; }
.profile-info .role-line { color: var(--text-3); margin-bottom: 0.2rem; }
.profile-info .username-line { color: var(--text-3); font-size: 0.85rem; }

/* Profile Refactor */
.pf-hero { position: relative; border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 2rem; }
.pf-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,159,28,0.12), rgba(167,139,250,0.1), rgba(12,18,34,0.95)); }
.pf-hero-content { position: relative; display: flex; align-items: center; gap: 1.5rem; padding: 2.5rem 2.5rem 1.5rem; }
.pf-avatar-wrap { position: relative; flex-shrink: 0; }
.pf-avatar {
    width: 90px; height: 90px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), #FF6B00);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: #000; font-size: 2.2rem;
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(255,159,28,0.2);
}
.pf-avatar.worker { background: linear-gradient(135deg, #60A5FA, #3B82F6); color: #fff; box-shadow: 0 8px 24px rgba(96,165,250,0.2); }
.pf-avatar.admin { background: linear-gradient(135deg, var(--purple), #6366F1); color: #fff; box-shadow: 0 8px 24px rgba(167,139,250,0.2); }
.pf-avatar.super { background: linear-gradient(135deg, var(--gold), #FFA500); color: #000; box-shadow: 0 0 28px rgba(251,191,36,0.35); }
.pf-avatar-badge { position: absolute; bottom: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; border: 2px solid #0C1222; }
.pf-info { flex: 1; min-width: 0; }
.pf-name { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, #FFF, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.2rem; }
.pf-username { font-size: 0.9rem; color: var(--text-3); margin-bottom: 0.5rem; }
.pf-role-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.5rem; margin-right: 0.4rem;
    font-weight: 600;
}
.pf-role-pill.role-super { color: #FBBF24; background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.25); }
.pf-role-pill.role-admin { color: #C4B5FD; background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.25); }
.pf-role-pill.role-worker { color: #93C5FD; background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.25); }
.pf-role-pill.role-developer { color: var(--accent); background: rgba(255,159,28,0.12); border: 1px solid rgba(255,159,28,0.25); }
.pf-role-pill.role-user { color: var(--text-2); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); }
.pf-tg-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; color: #38BDF8;
    background: rgba(56,189,248,0.1);
    border: 1px solid rgba(56,189,248,0.2);
    padding: 0.3rem 0.8rem; border-radius: 20px;
    text-decoration: none; font-weight: 600;
    transition: background var(--transition-fast);
}
.pf-tg-pill:hover { background: rgba(56,189,248,0.18); color: #7DD3FC; }
.pf-link-box {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.82rem; color: var(--text-3);
    flex-wrap: wrap;
}
.pf-link-box i { color: var(--accent); }
.pf-link-val { color: var(--accent); font-weight: 600; text-decoration: none; word-break: break-all; }
.pf-link-val:hover { text-decoration: underline; }
.pf-stats { position: relative; display: flex; align-items: center; gap: 0; padding: 1rem 2.5rem; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.04); }
.pf-stat { flex: 1; text-align: center; }
.pf-stat-val { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.pf-stat-lbl { font-size: 0.72rem; color: var(--text-3); margin-top: 0.15rem; }
.pf-stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.06); flex-shrink: 0; }
.pf-alert { background: rgba(251,191,36,0.08); border-left: 3px solid #FBBF24; padding: 0.8rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.85rem; }
.pf-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.pf-tab {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-2);
    font-weight: 600; font-size: 0.85rem;
    transition: all var(--transition-fast);
    font-family: inherit;
    display: inline-flex; align-items: center; gap: 0.4rem;
    cursor: pointer;
}
.pf-tab:hover { color: var(--accent); border-color: rgba(255,159,28,0.3); }
.pf-tab.active {
    background: linear-gradient(135deg, var(--accent), #FF6B00);
    color: #000; border-color: transparent;
    box-shadow: 0 4px 16px rgba(255,159,28,0.3);
}
.pf-tab i { font-size: 0.8rem; }
.pf-tab-content { max-width: 800px; margin: 0 auto; }
.pf-wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.pf-info-line { font-size: 0.82rem; color: var(--text-3); padding: 0.6rem 0; display: flex; align-items: center; gap: 0.4rem; }
.pf-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.pf-section-header h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.pf-empty { text-align: center; padding: 2rem; color: var(--text-3); font-size: 0.9rem; background: rgba(255,255,255,0.02); border-radius: var(--radius-lg); }
.pf-tx-list { display: flex; flex-direction: column; gap: 0.5rem; }
.pf-tx {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    transition: border-color var(--transition-fast);
}
.pf-tx:hover { border-color: rgba(255,159,28,0.15); }
.pf-tx-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.pf-tx-icon.income { background: rgba(52,211,153,0.12); color: var(--green); }
.pf-tx-icon.expense { background: rgba(251,113,133,0.12); color: var(--red); }
.pf-tx-info { flex: 1; min-width: 0; }
.pf-tx-title { font-weight: 600; font-size: 0.88rem; }
.pf-tx-meta { font-size: 0.75rem; color: var(--text-3); }
.pf-tx-amount { font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.pf-tx-amount.income { color: var(--green); }
.pf-tx-amount.expense { color: var(--red); }
.pf-form { max-width: 500px; }
.pf-form .form-group { margin-bottom: 1.2rem; }
.pf-form .form-group label { display: flex; align-items: center; gap: 0.4rem; }
.pf-form .form-group label i { color: var(--accent); font-size: 0.8rem; }
.pf-promo-desc { color: var(--text-3); font-size: 0.88rem; margin-bottom: 1rem; line-height: 1.5; }
@media (max-width: 768px) {
    .pf-hero-content { flex-direction: column; text-align: center; padding: 2rem 1.5rem 1rem; }
    .pf-avatar { width: 70px; height: 70px; font-size: 1.8rem; }
    .pf-name { font-size: 1.4rem; }
    .pf-stats { padding: 0.8rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
    .pf-stat { min-width: 80px; }
    .pf-stat-divider { display: none; }
    .pf-stat-val { font-size: 1.1rem; }
    .pf-tabs { justify-content: center; }
    .pf-wallets { grid-template-columns: 1fr; }
    .pf-form { max-width: 100%; }
}

/* Support Chat */
.support-chat-wrap { max-width: 900px; margin: 0 auto; width: 100%; }
.support-chat-main {
    display: flex; flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 70vh; min-height: 450px;
}
.support-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}
.support-chat-header-left { display: flex; align-items: center; gap: 0.8rem; }
.support-operator-avatar {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255,159,28,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--accent);
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.support-operator-avatar.online {
    border-color: var(--green);
    box-shadow: 0 0 16px rgba(52,211,153,0.25);
}
.support-operator-avatar.online::after {
    content: '';
    position: absolute; bottom: -2px; right: -2px;
    width: 12px; height: 12px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid var(--bg-1);
    animation: pulse-online 2s infinite;
}
@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}
.support-chat-name { font-weight: 700; font-size: 0.95rem; color: var(--text-1); }
.support-chat-status { font-size: 0.78rem; color: var(--text-3); }
.support-chat-status.online { color: var(--green); }
.support-chat-status.offline { color: var(--text-3); }
.support-chat-messages {
    flex: 1; overflow-y: auto; padding: 1.5rem;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.support-chat-messages::-webkit-scrollbar { width: 4px; }
.support-chat-messages::-webkit-scrollbar-track { background: transparent; }
.support-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.support-chat-input {
    display: flex; gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}
.support-chat-input .chat-input { flex: 1; }
.chat-msg-sender { font-size: 0.7rem; color: var(--accent); margin-bottom: 0.2rem; font-weight: 600; }
.chat-msg.in[style*="border-left"] {
    background: rgba(167,139,250,0.05);
}
.chat-msg.in .chat-msg-sender {
    font-weight: 600;
}

/* Animations */
@keyframes shrink { from { width: 100%; } to { width: 0; } }
@keyframes fadeSlideIn { 0% { opacity: 0; transform: translateY(20px) scale(0.97); } 80% { transform: translateY(-2px) scale(1.01); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeSlideOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(20px) scale(0.97); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 20px rgba(255,159,28,0.15); } 50% { box-shadow: 0 0 40px rgba(255,159,28,0.3); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes scaleIn { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.toast-container { animation: fadeSlideIn 0.5s ease; }
.toast-container .toast { animation: fadeSlideIn 0.5s ease; }
.toast-container .toast.closing { animation: fadeSlideOut 0.4s ease forwards; }

.feature-card, .stat-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1); }
.btn, .button-primary { transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1); }
.btn:active, .button-primary:active { transform: translateY(0); }

.glass-shimmer { position: relative; overflow: hidden; }
.glass-shimmer::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent); animation: shimmer 3s ease-in-out infinite; }
.modal-overlay.open { animation: fadeSlideIn 0.3s ease; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.9, 0.4, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.product-image img, .listing-image img { transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1); }

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

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.025) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.025) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: var(--radius-sm); }

a, button, .btn, .icon-btn, .product-card, .tab-pill, .nav-link, .mobile-menu button, .fav-btn, .buy-btn-direct, .pay-method, .wallet-card, .role-filter-pill, .deposit-filter-pill, .team-tab, .ud-item, .chat-list-item, .adm-btn, .adm-icon-btn, .adm-sidebar-item, .adm-pill, .pf-tab, .wallet-card-btn, .calc-pick-item, .calc-tab { touch-action: manipulation; }

@media (hover: hover) and (pointer: fine) {
    .product-card:hover { transform: translateY(-6px); border-color: rgba(255,159,28,0.2); box-shadow: 0 24px 56px -16px rgba(255,159,28,0.2); }
    .review-card:hover { transform: translateY(-4px); border-color: rgba(255,159,28,0.15); }
    .feature-card:hover { transform: translateY(-4px); border-color: rgba(255,159,28,0.15); }
    .feature-card:hover .feature-icon { transform: scale(1.1) rotate(10deg); }
    .listing-card:hover { transform: translateY(-6px); border-color: rgba(255,159,28,0.2); box-shadow: 0 20px 48px -12px rgba(255,159,28,0.18); }
    .wallet-card:hover { transform: translateY(-4px); }
    .product-card:hover .product-image img { transform: scale(1.06); }
    .listing-card:hover .listing-image img { transform: scale(1.06); }
    .feature-card:hover, .stat-card:hover { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.08); transform: translateY(-4px); }
    .btn:hover, .button-primary:hover { transform: translateY(-2px); }
}
.product-card, .listing-card, .review-card, .feature-card, .wallet-card { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .particle { display: none !important; }
    .marquee-track { animation: none !important; }
}
